URL and path partial matching
Permalink
I am looking for a way to make one page in C5 be served for a URL/path and all descendant paths. For example, if the page is at
http://myurl.com/handlerpage
then it should also be shown for:
http://myurl.com/handlerpage/something...
http://myurl.com/handlerpage/something-else...
http://myurl.com/handlerpage/something/further/down...
and so on.
I know how to do this using mod_rewrite, but would like to find or develop a solution completely within C5. Ideally, the solution could be configured to apply to any page (or single page). Code within a C5 single page, or a specific block within a regular C5 page, would then handle whatever needed to be done with the rest of the path.
What I am aiming for is a general purpose mechanism to embed complete path structures of content from other sources within C5, with navigation handled by C5.
Any ideas on how to achieve this?
As a secondary requirement, could the page be made to be regarded from within C5 as an automatically and dynamically generated set of many C5 pages? (For example, what would a comment and rating block on the page refer to, just one page, or separate ratings and comments for all descendant pages)
http://myurl.com/handlerpage
then it should also be shown for:
http://myurl.com/handlerpage/something...
http://myurl.com/handlerpage/something-else...
http://myurl.com/handlerpage/something/further/down...
and so on.
I know how to do this using mod_rewrite, but would like to find or develop a solution completely within C5. Ideally, the solution could be configured to apply to any page (or single page). Code within a C5 single page, or a specific block within a regular C5 page, would then handle whatever needed to be done with the rest of the path.
What I am aiming for is a general purpose mechanism to embed complete path structures of content from other sources within C5, with navigation handled by C5.
Any ideas on how to achieve this?
As a secondary requirement, could the page be made to be regarded from within C5 as an automatically and dynamically generated set of many C5 pages? (For example, what would a comment and rating block on the page refer to, just one page, or separate ratings and comments for all descendant pages)
Additional URLs may do what I want if it can be made to alias all and any pages beneath the page without having to specify them individually (can Additional URLs be made to accept wild cards?).
To clarify my initial problem, I am looking for a way for a particular page to respond for all descendant pages, whatever they are, without having to specify them individually before hand. There could be thousands of such descendant pages it has to handle. The list could grow at any time without C5 being warned about it.
To clarify my initial problem, I am looking for a way for a particular page to respond for all descendant pages, whatever they are, without having to specify them individually before hand. There could be thousands of such descendant pages it has to handle. The list could grow at any time without C5 being warned about it.
But you can make the same page accessible using the "Additional Page URL's"
ie
yoururl.com/pageone
could also be accessed through
yoururl.com/p1
or
yoururl.com/pageone/next_level
yoururl.com/pageone/next_level/etc_etc
Though any pages added in this manner would not be visible in an autonav/page list.
Your other option could be to add alias to the page you would like to have added, this way page_one will be available in as many locations as you want but will also show up in any auto navigation or page lists that the page resides within.
This will allow the urls to be served but I don't think these will work for all descendants
hmm it would appear that the additional urls will only work up to the url not after.
So it may be an option but would be very hacky if you decided to go down this route, sorry couldn't be of any more help.