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?
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'; ).
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.
$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. :<
Comments on Editing header with custom template
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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'; ).
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Custom wrappers: scripts.webmastersite.net/w...nks/wsnmanual/articles/149
Including it in contact.php could be done with this:
$customwrapper = 'wrappername';
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
$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. :<
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Perhaps you also need below the $customwrapper line.