Odd problem with pretty urls and news

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
swarfega
Forum Members
Forum Members
Posts: 174
Joined: Mon Sep 06, 2010 10:51 am

Odd problem with pretty urls and news

Post 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.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Odd problem with pretty urls and news

Post 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?
swarfega
Forum Members
Forum Members
Posts: 174
Joined: Mon Sep 06, 2010 10:51 am

Re: Odd problem with pretty urls and news

Post 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.
Last edited by swarfega on Thu Jul 28, 2011 2:20 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Odd problem with pretty urls and news

Post by Jos »

What happens to the urls when you delete that parameter there?
swarfega
Forum Members
Forum Members
Posts: 174
Joined: Mon Sep 06, 2010 10:51 am

Re: Odd problem with pretty urls and news

Post by swarfega »

Jos wrote:What happens to the urls when you delete that parameter there?
I edited the previous post :D
swarfega
Forum Members
Forum Members
Posts: 174
Joined: Mon Sep 06, 2010 10:51 am

Re: Odd problem with pretty urls and news

Post by swarfega »

I just need to replace the 61/59 in the url with the category name now.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Odd problem with pretty urls and news

Post 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.
swarfega
Forum Members
Forum Members
Posts: 174
Joined: Mon Sep 06, 2010 10:51 am

Re: Odd problem with pretty urls and news

Post 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""
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Odd problem with pretty urls and news

Post by Jos »

Or perhaps your page template lacks of the <head> and </head> elements?
dazzyweb
Forum Members
Forum Members
Posts: 29
Joined: Mon May 30, 2011 1:21 pm

Re: Odd problem with pretty urls and news

Post 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
Post Reply

Return to “The Lounge”