Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi, I made a website for at client http://movelife.dk/. I has 3 templates, an index.php (forside) page.php (page), employee.php (employee).

The page.php is a nested clonable page, which I use as masterpage for breadcrumbs and navigation.

After enabling pretty urls I get a structure like this:
http://movelife.dk/page/forside/behandl ... ldtraning/

but what I would like is
http://movelife.dk/behandlinger/holdtraning/
or
http://movelife.dk/forside/behandlinger/holdtraning/

is that possible?
Hi gibso80,

'index.php' is the only template that does not show up in the prettyURLs.
So I think if instead of 'page.php', you had used 'index.php' as the nested template, you'd get URLs such as the following (notice that there is no 'index' in there) -
http://movelife.dk/forside/behandlinger/holdtraning/

Following thread discusses a similar problem where 'service.php' had to be changed to 'index.php'
viewtopic.php?p=18601#p18601

Please see if the solution suits your need.
In short it would involve
1. Renaming the physical templates - changing the name of the current 'index.php' to 'home.php' and then renaming 'page.php' to 'index.php'
2. Changing the names in database ('couch_templates' table).

Do make sure to first take a database backup before making changes to the database.

Hope it helps.
2 posts Page 1 of 1