WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Editing header with custom template

Version:
printPrint


Editing header with custom template
morton82
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Posts: 102
Posted 01/21/05 - 12:50 PM:
quote post
#1
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.

Edited by morton82 on 01/21/05 - 01:45 PM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5965
Posted 01/21/05 - 08:37 PM:
quote post
#2
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'; ).

Edited by Paul on 01/24/05 - 03:06 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
morton82
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Posts: 102
Posted 01/22/05 - 06:39 AM:
quote post
#3
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5965
Posted 01/24/05 - 03:09 PM:
quote post
#4
Custom wrappers: http://scripts.webmastersite.net/wsnlinks/wsnmanu...

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

$customwrapper = 'wrappername';

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
morton82
Forum Regular
Avatar

Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Posts: 102
Posted 01/24/05 - 07:24 PM:
quote post
#5
$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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5965
Posted 01/28/05 - 12:40 AM:
quote post
#6
Perhaps you also need
$_GET['customwrapper'] = $customwrapper; $_REQUEST['customwrapper'] = $customwrapper;
below the $customwrapper line.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.