Usergroup: Customer
Joined: May 12, 2003
Total Topics: 7
Total Posts: 56
2 of 2 people found this post helpful Posted 10/14/04 - 07:02 AM:
#1
I don't know if this would qualify as a hack, It is more than likely a usability extension, I dodn't look to see if there was anything like this in the manual either. I don't think the method is beyond anybody.
I've been using the custom templates and mod_rewrite to make static pages. It consist of two step, creating a custon template and making an redirect to it with mod_rewrite.
I create the custom template with a descriptive name in the custom template folder then in the modrewrite I uses a unique 'rootname' along with the descriptive file name to create a redirect into the custom templates field.
Then when linking to these pages I use a url like view_mission_statement.html.
Because I love the meta tags I also wrote a small meta.php program. I have it in the root directory and I put conditionals to call it in the wrapper.tpl. this meta.php is only called when the wrapper is in a custom template.
{LANG_NAVORIGIN}{AREA} {MAINMETA}
sorry about the php code, i never got the hang of those template conditionals.
The meta.php simply takes the custom template TID and looks up the variable for it that has the title, metaname and metadescription html then writes that into the header of the custom pages. The attached file can be renamed to meta.php and edited to suit.
The meta.php might be better suited and more versitile as a function instead of just code lines.