Webmastersite.net
Register Log In

Editing header with custom template

Comments on Editing header with custom template

morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Jan 21, 2005 - 2:50 PM:

ok. here is the question.

i created a custom template called contact.php using this feature:-


ok i have the page contact.php accessible. but i would like to modify the header and main meta of the page as the page shows Mysite.com:Main. Which i would like to change the title of the page to Mysite.com:contact us and some other meta description and meta keywords. It seems like this custom template is from the main index page.How can i do this?

Thanks a lot.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 21, 2005 - 10:37 PM:

You should be able to change the title like this I think: $area = ': Contact';


To use unique meta data, you'd either need to use conditionals in your wrapper to show different bits on different pages or use a custom wrapper (which would involve adding a $customwrapper = 'newwrapper'; ).
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Jan 22, 2005 - 8:39 AM:

Paul, thanks for replying. But the $area = ': contact'; is still not working. How do i change the custom wrapper and inculde it into contact.php? Can you teach me how? Thanks a lot.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 24, 2005 - 5:09 PM:

Custom wrappers: scripts.webmastersite.net/w...nks/wsnmanual/articles/149

Including it in contact.php could be done with this:

$customwrapper = 'wrappername';
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Jan 24, 2005 - 9:24 PM:

$customwrapper = 'wrappername'; still does not do the work when i included into the contact.php. I have to use /contact.php?customwrapper=customwrappername link in order for the title and meta to show up. I tried creating a new language called {LANG_TITLE_CONTACT} but i am no programmer and duno how it works. Although now i can show the main title but it will be better without the ? sign and added i have to change the wrapper each time i make changes to the main wrapper. :<
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 28, 2005 - 2:40 AM:

Perhaps you also need
 $_GET['customwrapper'] = $customwrapper; $_REQUEST['customwrapper'] = $customwrapper;
below the $customwrapper line.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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