Duplicate page aliases
Posted: Sat Nov 17, 2007 3:39 am
Dunno if this is on the map for 2.0 or not...
whether or not an alias is a 'duplicate' (and thus, not allowed) should consider the "full path" to the page instead of just the 'root' alias; i.e:
instead of this page..
/projects/2007/gallery/
having a $page_alias of just "gallery", it should have (something like) a $full_alias of...
projects/2007/gallery
and be able to co-exist with other pages with the same (root) $page_alias of "gallery"
this would allow URLs such as....
/projects/2008/gallery/
/projects/2007/gallery/
/projects/2006/gallery/
which are currently NOT possible... you have to get a little creatively redundanttm with your page aliases; right now it's like (just some simple examples; they get pretty long and convoluted on a couple sites i maintain):
/projects/2008/2008-gallery/
/projects/2007/2007-gallery/
/projects/2006/2006-gallery/
etc..
how to handle when hierarchy is not enabled? if dashes ("-") replace spaces in (root) aliases, the "/" could be represented by an underscore "_" (projects_2008_gallery.htm for example); and you prohibit the underscore in a page's (root) alias so that it can be reserved for this function instead (why one would use "_" instead of "-" in an alias anyway is beyond me; but the characters used to to replace spaces and separate levels could be configurable in config.php).. and when mod_rewrite isn't enabled, then it could be something like index.php?page=projects/2008/gallery (which is similar to how another CMS i work with handles hierarchy when mod_rewrite is not enabled).
whether or not an alias is a 'duplicate' (and thus, not allowed) should consider the "full path" to the page instead of just the 'root' alias; i.e:
instead of this page..
/projects/2007/gallery/
having a $page_alias of just "gallery", it should have (something like) a $full_alias of...
projects/2007/gallery
and be able to co-exist with other pages with the same (root) $page_alias of "gallery"
this would allow URLs such as....
/projects/2008/gallery/
/projects/2007/gallery/
/projects/2006/gallery/
which are currently NOT possible... you have to get a little creatively redundanttm with your page aliases; right now it's like (just some simple examples; they get pretty long and convoluted on a couple sites i maintain):
/projects/2008/2008-gallery/
/projects/2007/2007-gallery/
/projects/2006/2006-gallery/
etc..
how to handle when hierarchy is not enabled? if dashes ("-") replace spaces in (root) aliases, the "/" could be represented by an underscore "_" (projects_2008_gallery.htm for example); and you prohibit the underscore in a page's (root) alias so that it can be reserved for this function instead (why one would use "_" instead of "-" in an alias anyway is beyond me; but the characters used to to replace spaces and separate levels could be configurable in config.php).. and when mod_rewrite isn't enabled, then it could be something like index.php?page=projects/2008/gallery (which is similar to how another CMS i work with handles hierarchy when mod_rewrite is not enabled).