Page 1 of 1

CMSMS 0.13 & pretty URLs

Posted: Fri May 19, 2006 7:45 am
by pinthenet
Just upgraded a test installation from 0.12.2 to 0.13. It's running on EasyPHP (== Apache)

If I remove my old .htaccess and set 'internal_pretty_urls' & 'use_hierarchy' to true the generated URLs miss the top level hierarchy when I'm one or two levels down in the menu (I'm still using cssmenu - could that be it?). mod_rewrite is false

Eg
http://127.0.0.1/cms/index.php//Ausbild ... essur.html
instead of
http://127.0.0.1/cms/index.php/Angebot/ ... essur.html

If I switch 'use_hierarchy' to false, all the image URLs get messed up - eg
http://127.0.0.1/cms/index.php/uploads/ ... tall_1.JPG
instead of
http://127.0.0.1/cms/uploads/images/layout/Stall_1.JPG

If I view the generated page's source code the image is correctly defined
eg <img src="uploads/images/layout/Stall_1.JPG"

Do I need to change some other parameters? I've got the {metatags} in the template (why?)

John

Re: CMSMS 0.13 & pretty URLs

Posted: Fri May 19, 2006 10:11 am
by petert
it's {metatag}

This tag sets the base for all the files and images.
In the cmsms genrated source you should something like '' in the of your pages

Re: CMSMS 0.13 & pretty URLs

Posted: Fri May 19, 2006 10:42 am
by Ted
Actually, it's {metadata}.

Re: CMSMS 0.13 & pretty URLs

Posted: Fri May 19, 2006 11:48 am
by pinthenet
(sorry for the metadata confusion :-[)

The correct tag is there & I see the in , but I still get either the missing level (and double /), or incorrect image URLs

Re: CMSMS 0.13 & pretty URLs

Posted: Fri May 19, 2006 11:57 am
by pinthenet
Just seen something else (I switched to Menumanager with cssmenu.tpl)

I hope my terminology is understandable:

If I select a top-level only menu entry it's correct
eg http://127.0.0.1/cms/index.php/Home.html

If I select a menu entry from the second level of a menu entry that only has second level entries, it also works
eg http://127.0.0.1/cms/index.php/Reitbetrieb/Betrieb.html

But if I select a 2nd or 3rd level entry from a top-level entry that has a mix of sub and sub-sub menus it always loses the top level

eg
http://127.0.0.1/cms/index.php//Ferienbetreuung.html
and
http://127.0.0.1/cms/index.php//Ausbild ... essur.html

are under top-level menu 'Angebot'

Re: CMSMS 0.13 & pretty URLs

Posted: Fri May 19, 2006 12:05 pm
by Ted
Hmm.  I'll have to do some research on that one.  Sounds like a bug to me.

Re: CMSMS 0.13 & pretty URLs

Posted: Sat May 20, 2006 9:44 am
by pinthenet
I've fixed it! I thought the problem might be because my top-level entries with sub-menus were type 'Section Header' . I switched one to 'Content' and the URLs were then shown correctly. I then switched back to 'Section Header' and the URLs remained correct, even after a Clear Cache - seems it needed a kick.

Maybe I only needed to resubmit those pages?

John

Re: CMSMS 0.13 & pretty URLs

Posted: Sat May 20, 2006 10:02 am
by jeldert
pinthenet wrote: I've fixed it! I thought the problem might be because my top-level entries with sub-menus were type 'Section Header' . I switched one to 'Content' and the URLs were then shown correctly. I then switched back to 'Section Header' and the URLs remained correct, even after a Clear Cache - seems it needed a kick.

Maybe I only needed to resubmit those pages?

John
I can confirm this, and it can even be done simpler: Just click on the section header and click on submit. Now the URL's are all good.