Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Dynamic Title
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SimonHodgkiss
Starting Member

United Kingdom
4 Posts

Posted - January 11 2010 :  10:37:40  Show Profile  Visit SimonHodgkiss's Homepage  Reply with Quote
I was wondering if anyone could help me change the dynamic title of the page.

I want it to display the Product name / Cat name before it displays the Store name.

<title>%shopdynamictitle "title"%>/title>

Thanks

Simon

g3nnin
VP-CART Super User

209 Posts

Posted - January 11 2010 :  14:58:27  Show Profile  Reply with Quote
Hi,

in version 7, the dynamic title for categories is located in this code in shopheaders.asp:

# line 106 & 111:
SetSess "Dynamictitle",GetConfig("xtitle") & " - " & RemoveHtmlheaders(tempname, "<br />")

Try to change it into this code:

SetSess "Dynamictitle",RemoveHtmlheaders(tempname, "<br />") & " - " & GetConfig("xtitle")


As for the product page, it's located in this code:

#line 182:
SetSess "Dynamictitle",GetConfig("xtitle") & " - " & tempname

Try to change it into the following code:

SetSess "Dynamictitle", tempname & " - " & GetConfig("xtitle")


Hope this helps.
Go to Top of Page

SimonHodgkiss
Starting Member

United Kingdom
4 Posts

Posted - January 11 2010 :  15:38:26  Show Profile  Visit SimonHodgkiss's Homepage  Reply with Quote
Any chance this will work on version 6.5?

Thanks

Simon
Go to Top of Page

devshb
Senior Member

United Kingdom
1904 Posts

Posted - January 12 2010 :  05:18:51  Show Profile  Visit devshb's Homepage  Reply with Quote
This link explains it in detail (this is relevant to 6.5), you can just ignore the bits which mention addons, those are just mentioned in passing, the notes are relevant to generic vpasp....

How can I set/change the title/description meta tags on my product/category/content pages?:

http://www.bigyellowzone.com/support/issue_view.asp?ID=1465

g3nnin's reply explains the syntax you'd use to swap the title/name round the other way and is basically what you're after, our page/link explains more details about how it all works and exactly which bits to change for which types of pages and how to create an extra fall-through etc.

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons

Edited by - devshb on January 12 2010 05:23:08
Go to Top of Page

SimonHodgkiss
Starting Member

United Kingdom
4 Posts

Posted - January 13 2010 :  17:21:08  Show Profile  Visit SimonHodgkiss's Homepage  Reply with Quote
It worked fine.

Many thanks.

Simon Hodgkiss
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00