sNews Forum

sNews 1.6 (previous version) => sNews 1.6 Problem Solving => Topic started by: jjones3535a on February 27, 2008, 10:05:05 PM

Title: Permalink type url
Post by: jjones3535a on February 27, 2008, 10:05:05 PM
Is it possible to configure sNews have article urls like this:

/snews/2008/02/26/article-title

I'd like to move from wordpress to sNews, but I need a way to ensure my old urls will work with sNews.

Thanks.
Jim-
Title: Re: Permalink type url
Post by: deathcrot on February 27, 2013, 08:29:11 AM
i have same problem with u :( on this http://www.ngrambe.net (http://www.ngrambe.net) now i using blogspot :( :'(
Title: Re: Permalink type url
Post by: Keyrocks on February 28, 2013, 06:18:48 AM
More recent versions of WordPress do not generate URLs with dates in them anymore by default... instead they new use page IDs unless Permalinks is enabled.
WordPress URL Example - http://  mydomain.com/?page_id=19

Your site is generating links with dates as well as .html at the end of them. At any rate, it is not possible to do this with sNews. sNews generates search-engine-friendly URLs for better search engine optimization by adding the category and (if any) subcategory + the article or page title to the base URL ... without any file extention on the end.
Title: Re: Permalink type url
Post by: nukpana on March 01, 2013, 09:58:24 AM
Quote
More recent versions of WordPress do not generate URLs with dates in them anymore... instead they new use page IDs.
@Doug, Can you provide a link to this? AFAIK, this only happens on an install by default, then if you want the link with the date in it, you set it:
http://codex.wordpress.org/Using_Permalinks

For sNews, links like this is possible - MDJ started that path here: http://www.mdj.us/snews-cms/hacks-mods/compact-archives-for-snews-17/
Example on Sven's site: http://on-air.hiseo.fr/archive/
Incorporating it, that is a different story.
Title: Re: Permalink type url
Post by: Keyrocks on March 01, 2013, 08:28:26 PM
Quote
More recent versions of WordPress do not generate URLs with dates in them anymore... instead they new use page IDs.
@Doug, Can you provide a link to this? AFAIK, this only happens on an install by default, then if you want the link with the date in it, you set it:
http://codex.wordpress.org/Using_Permalinks

 :P Thanks for the reminder Jason, you're right. I haven't used day+name or month+name permalink settings. I've used the post-name setting which generates the URLs in the same format sNews uses - example: http://mydomainname.ca/sample-post/

For sNews, links like this is possible - MDJ started that path here: http://www.mdj.us/snews-cms/hacks-mods/compact-archives-for-snews-17/
Example on Sven's site: http://on-air.hiseo.fr/archive/
Incorporating it, that is a different story.

The URL links on MDJ's Archive page (http://www.mdj.us/archive/) and Sven's Archive page (http://on-air.hiseo.fr/archive/2010/) don't have dates inserted between the root URL and the category/title ... they appear to be normal sNews links when I mouse over them.

I think the issue jjones3535a had in his lead post (Feb.27.08) is that he probably have a number of URL links in his WordPress page or blog content that use day+name permalink structure ... and they would not work as-is (he would need to manually edit them all) if he migrated his data to an sNews site.

Now... if jjones3535a had chosen the post-name permalink setting when he enabled it, then all of his links would have been generated like sNews links from the start and those he copied and pasted into content would have been that way as well. He could have gone back into his W-P Admin >> Settings >> Permalinks panel and changed the setting from day+name to post-name, but he still would have had to edit each link manually in blog post and page content to match after doing it.

With respect to deathcrot's Blogspot site, I don't know how it manages link structure. But, in his case, he would have to manually edit any links he had within blog post or page content as well in order to connect with sNews articles and pages if he migrated the existing data from his Blogpost to an sNews site.
Title: Re: Permalink type url
Post by: nukpana on March 01, 2013, 11:45:31 PM
For sNews, links like this is possible - MDJ started that path here: http://www.mdj.us/snews-cms/hacks-mods/compact-archives-for-snews-17/
Example on Sven's site: http://on-air.hiseo.fr/archive/
Incorporating it, that is a different story.

The URL links on MDJ's Archive page (http://www.mdj.us/archive/) and Sven's Archive page (http://on-air.hiseo.fr/archive/2010/) don't have dates inserted between the root URL and the category/title ... they appear to be normal sNews links when I mouse over them.
Right, the functionality does not work right now, but it is possible to make them work based on MDJs findings as noted.