Page 1 of 1
Odd problem with pretty urls and news
Posted: Thu Jul 28, 2011 12:12 pm
by swarfega
Hi guys,
I have the odd situation where the urls are shown as:
http://thriplow.org.uk/cms/news/62/59/A ... riplow4.pc
note the d,thriplow4 at the end. I assume that means detailtemplate and the template name. I have no idea why that is showing but I would like to remove from the url.
I would also like to have the relevant category name included in the url, for example:
http://www.domain.com/news/categoryid/title.pc.
Re: Odd problem with pretty urls and news
Posted: Thu Jul 28, 2011 1:18 pm
by Jos
concerning the detailtemplate, do you have that parameter set in your modulecall? like {news detailtemplate='thriplow4'}.
What happens when you delete that parameter there?
Re: Odd problem with pretty urls and news
Posted: Thu Jul 28, 2011 2:16 pm
by swarfega
yes i do. Ah it was actually the summarytemplate. Ive removed both calls and that parts gone.
So I just need help in adding the category now.
Re: Odd problem with pretty urls and news
Posted: Thu Jul 28, 2011 2:18 pm
by Jos
What happens to the urls when you delete that parameter there?
Re: Odd problem with pretty urls and news
Posted: Thu Jul 28, 2011 2:20 pm
by swarfega
Jos wrote:What happens to the urls when you delete that parameter there?
I edited the previous post

Re: Odd problem with pretty urls and news
Posted: Thu Jul 28, 2011 7:18 pm
by swarfega
I just need to replace the 61/59 in the url with the category name now.
Re: Odd problem with pretty urls and news
Posted: Thu Jul 28, 2011 7:34 pm
by Jos
I don't know if you can do something with a smarty modifier. What I do know is that the part
http://thriplow.org.uk/cms/news/62/59/ is used for navigation.
All the rest:
A11-Six-Mile-Bottom-to-Junction-9a-of-M11-Stumps-Cross-Southbound-Repair-Works is for seo purposes and is not functional.
Re: Odd problem with pretty urls and news
Posted: Thu Jul 28, 2011 7:46 pm
by swarfega
I guess itl have to do for now.
My immediate problem now thats just come up is this. I added a redirect link that linked to another page. I then decided to convert it to a content page but I think the redirect is still active.
Im am getting this error:
string(51) "Smarty error: unable to read resource: "tpl_top:-1"" string(52) "Smarty error: unable to read resource: "tpl_head:-1"" string(52) "Smarty error: unable to read resource: "tpl_body:-1""
Re: Odd problem with pretty urls and news
Posted: Thu Jul 28, 2011 8:52 pm
by Jos
Or perhaps your page template lacks of the <head> and </head> elements?
Re: Odd problem with pretty urls and news
Posted: Thu Jul 28, 2011 10:23 pm
by dazzyweb
It's possible to change the URL of each article in the URL field of each article. Then the default detail page preference in the news options panel will be used and the detailpage defined in the template will be disabled.
It is fine if you dont' mind your detailpage to be the same for all articles.
CGBlog has a URL Template field in the options panel which looks good. I can't seem to get it working though.
If anyone knows how to get that working then that could resolve the problem.
I put a post on the forum for help here
http://forum.cmsmadesimple.org/viewtopi ... =7&t=55862
on this but still waiting for an answer so hopefully some help soon