Customized page title on customized on customized templates
RewriteRule ^([-_/\+A-Za-z0-9äüößèà ]+)/$ index.php?custom=yes&TID=$1
RewriteRule ^privacy/?$ index.php?custom=yes&TID=privacy
This thread is closed, so you cannot post a reply.
Comments on Customized page title on customized
Forum Regular
Usergroup: Customer
Joined: May 14, 2006
Total Topics: 41
Total Comments: 103
I follow this article to create privacy.php and privacy.tpl
scripts.webmastersite.net/wsnlinks/wsnmanual/articles/creating-a-custom-template-5.html
and I set up the 'Custom Titles' at admin/pagetitles.php.
If I go to static page, privacy.php, the page title is same as the defaul one.
If I go to index.php?custom=yes&TID=privacy, the page title is changed.
My question is, how can I get the customized page title if I go directly to privacy.php ?
I tried to include something like $pagetitles = 'Privacy Policy'; into the privacy.php file, but it doesn't work.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Why would you make a privacy.php? I don't see the point, it isn't any quicker and you can get the same privacy.php URL with url rewriting.
Forum Regular
Usergroup: Customer
Joined: May 14, 2006
Total Topics: 41
Total Comments: 103
Every site should contains of privacy, tos etc.. legal document pages.
I put this in .htaccess, but it doesn't work.
if I change the above code to this, it will work, but how about if we have many customized templates.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Don't modify the .htaccess, write privacy.php and index.php?custom=yes&TID=privacy in the boxes at Admin -> Settings -> SEO to let it do it.
Every site should contains of privacy, tos etc.. legal document pages.
And there already is one by default in 4.1, though I think it's only linked anywhere when COPPA is on.
Beginner
Usergroup: Customer
Joined: Jul 08, 2007
Total Topics: 0
Total Comments: 3
With regards to the original question, how would you customise the title page when a static page is created this way?
For both methods: creating php file or mod_rewriting...
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Either way you can type the non-rewritten URL on the custom page titles page: coppa.php?action=privacy if you use the default privacy page.
Beginner
Usergroup: Customer
Joined: Jul 08, 2007
Total Topics: 0
Total Comments: 3
Sorry, I'm not sure what you mean...
I am not referring to privacy pages, but any static pages, for eg, enter page, or about us, faq, etc.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
All are the same. Any page you create has a url... say, index.php?custom=yes&TID=yourtemplatename , which you can type in the box.
If your pages are actually static html then they aren't part of the script and naturally can't be titled by the script.