Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feature Roadmap etc Development Discussion
#15
I've got thru the documentation again. get_header() ain't that important. It's the link creating i18n replacements (like get_i18n_navigation(), get_i18n_link(), etc.) that need to be put instead of core functions for URIs to be "properly" generated and for %parents% tag to get parsed.

Still, those URIs won't work without some kind of a magical serverside rewrite, becasue GS expects to get a single slug (+params):
Code:
# get page id (url slug) that is being passed via .htaccess mod_rewrite
if (isset($_GET['id'])){
    $id = str_replace ('..','',$_GET['id']);
    $id = str_replace ('/','',$id);
    $id = lowercase($id);
Like the comment explains, on Apache this can be achieved within .htaccess, but on nginx this may be a problem because of how nginx server configuration is organized. I'm running an nginx server myself and I still can't figure out that rewrite rule (my regex-fu is pretty basic).

Even then it's a sort of cheat, because it doesn't matter if you go with:
Code:
http://site.com/page-with-children/child-page/subchild-page/
or
Code:
http://site.com/subchild-page/
coz' both will work.
Reply


Messages In This Thread
RE: Feature Roadmap etc Development Discussion - by Everyone - 2013-09-13, 06:48:43



Users browsing this thread: 1 Guest(s)