Pretty URLs - removing parent from URL on CMSMS

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
starfire
New Member
New Member
Posts: 3
Joined: Tue Jul 26, 2011 12:04 pm

Pretty URLs - removing parent from URL on CMSMS

Post by starfire »

Hi,

I also have this problem but have the latest version of CMSMS (1.11.7) installed.

I've read that $config['use_hierarchy'] = false; is obsolete. So what is the method to remove the parent hierarchy from URLs now?

Thanks,
Titus
felek
New Member
New Member
Posts: 9
Joined: Fri Jul 12, 2013 8:23 pm

Re: Pretty URLs - removing parent from URL on CMSMS 1.8.1

Post by felek »

Hello - This is not answer.. this is another question about pretty urls.

I want to remove some parts of url:

Code: Select all

http://dobry-dentysta.org/lista-stomatologow/mazowieckie/warszawa/luxdentic/
/lista-stomatologow/ - this is section header and i don't want it in my url
/mazowieckie/ i want this if i am on /mazowieckie/ website but if i am going deeper i just want to leave

Code: Select all

http://dobry-dentysta.org/warszawa/luxdentic/
or

Code: Select all

http://dobry-dentysta.org/warszawa/
My question is - is it possible to do it without any changes in core code?
If it's possible where can I get documentation or any information about it?

Thanks for information.
Best regards
Andrzej Pająk
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Pretty URLs - removing parent from URL on CMSMS 1.8.1

Post by calguy1000 »

CMSMS 1.10.x + have the ability to specify individually the primary URL for every content page.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Pretty URLs - removing parent from URL on CMSMS

Post by Rolf »

Set "Flat URLs" in Global Settings (I think...)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
starfire
New Member
New Member
Posts: 3
Joined: Tue Jul 26, 2011 12:04 pm

Re: Pretty URLs - removing parent from URL on CMSMS

Post by starfire »

Hi Rolf,

I tested with these settings whilst clearing the cache but didn't have any effect.

Hi Calguy,

Thank you very much. This works. I didn't realise we had to individually specify the preferred URL for each page. (Still a bit odd that we can't just have the simpler method of setting this in the config file though.)

Cheers both,
Titus
Post Reply

Return to “CMSMS Core”