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.
Odd problem with pretty urls and news
Re: Odd problem with pretty urls and news
concerning the detailtemplate, do you have that parameter set in your modulecall? like {news detailtemplate='thriplow4'}.
What happens when you delete that parameter there?
What happens when you delete that parameter there?
Re: Odd problem with pretty urls and news
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.
So I just need help in adding the category now.
Last edited by swarfega on Thu Jul 28, 2011 2:20 pm, edited 1 time in total.
Re: Odd problem with pretty urls and news
What happens to the urls when you delete that parameter there?
Re: Odd problem with pretty urls and news
I edited the previous postJos wrote:What happens to the urls when you delete that parameter there?

Re: Odd problem with pretty urls and news
I just need to replace the 61/59 in the url with the category name now.
Re: Odd problem with pretty urls and news
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.
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
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""
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
Or perhaps your page template lacks of the <head> and </head> elements?
Re: Odd problem with pretty urls and news
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
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