Webmastersite.net
Register Log In

Customized page title on customized
on customized templates

Comments on Customized page title on customized

mc19
Forum Regular

Usergroup: Customer
Joined: May 14, 2006

Total Topics: 41
Total Comments: 103
mc19
Posted Jun 28, 2007 - 1:18 AM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 28, 2007 - 11:49 AM:

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.
mc19
Forum Regular

Usergroup: Customer
Joined: May 14, 2006

Total Topics: 41
Total Comments: 103
mc19
Posted Jun 28, 2007 - 7:39 PM:

Every site should contains of privacy, tos etc.. legal document pages.

I put this in .htaccess, but it doesn't work.

RewriteRule ^([-_/\+A-Za-z0-9äüößèà]+)/$ index.php?custom=yes&TID=$1


if I change the above code to this, it will work, but how about if we have many customized templates.
RewriteRule ^privacy/?$ index.php?custom=yes&TID=privacy
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 29, 2007 - 12:36 PM:

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.
ingenious22
Beginner

Usergroup: Customer
Joined: Jul 08, 2007

Total Topics: 0
Total Comments: 3
Posted Jul 10, 2007 - 9:21 AM:

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...
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 11, 2007 - 5:47 AM:

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.
ingenious22
Beginner

Usergroup: Customer
Joined: Jul 08, 2007

Total Topics: 0
Total Comments: 3
Posted Jul 12, 2007 - 8:38 PM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 13, 2007 - 11:58 AM:

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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.