![]() |
Custom Titles On Custom .ASP Pages |
Post Reply ![]() |
Author | ||
JWL ![]() Senior Member ![]() Joined: 15-August-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 18-August-2008 at 6:14pm |
|
Anyone know an easy way to do this? I thought, I had it, but this didn't work. I created another header file, where I removed the Title code, and then I changed the blank .asp template page like this. See, this would allow you to put individual Title's on each custom .asp page, instead of it pulling in the same default title for every page. But, it still pulls in the default title anyway... I think maybe because this: <%Session.LCID = 1033
if pcv_PageName<>"" then%> - is still in the code, but if I remove that - the page doesn't load. Anyone, have any ideas? Thanks.
New header
See, I tried to remove the title code from the header, so I could manually put the title on the custom asp page. Edited by JWL - 18-August-2008 at 7:22pm |
||
![]() |
||
worldofrugs ![]() Senior Member ![]() ![]() Joined: 24-April-2008 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
|
This is how I've done it... I combined the header.asp and footer.asp and stripped out the top code...
Implemented the title and meta tags, so it can me manually adjusted... In general here's the result: -------------- <% response.Buffer=true %> <!--#include file="../includes/settings.asp"--> <!--#include file="../includes/storeconstants.asp"--> <!--#include file="../includes/emailsettings.asp"--> <!--#include file="../includes/languages.asp" --> <!--#include file="../includes/opendb.asp"--> <!--#INCLUDE file="../includes/stringfunctions.asp"--> <!--#include file="../includes/currencyformatinc.asp"--> <!--#include file="../includes/validation.asp" --> <!--#include file="../includes/SearchConstants.asp"--> <% on error resume next '******************************* ' Page Name '******************************* Dim pcStrPageName pcStrPageName = "ThisPageName.asp" %> <!--#include file="pcStartSession.asp"--> <% Dim query, conntemp, rs, rstemp call openDb() %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Title here</title> <meta tags and scripts here> </head> <body> In the body I used basically an exact copy of the body of the header.asp file. etc.... </body> </html> ----------------------- Perhaps I might have been able to clear it up some more, but all works perfectly, so I didn't bother... As I use DreamWeaver and have multiple custom asp pages, I made a template out of it with editable regions for the body, title and meta tags... Edited by worldofrugs - 19-August-2008 at 4:39pm |
||
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |