Support Forums

Change meta description for extra pages

This is a discussion on Change meta description for extra pages within the Technical Support forums, part of the Technical Support Forums category; Hi, How can I change meta description for extra pages made in administration? I currently use Code: {elseif $body=='user/userjoin.tpl'} <meta ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 10-25-2008, 06:41 PM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,088
Rep Power: 35
bowers01 is on a distinguished road
Default Change meta description for extra pages

Hi,
How can I change meta description for extra pages made in administration?
I currently use
Code:
{elseif $body=='user/userjoin.tpl'}
	<meta name="Description" content="TruckAndMachinery.Com.Au - Register And Start Selling Free" />
{elseif $body=='user/userlogin.tpl'}
	<meta name="Description" content="TruckAndMachinery.Com.Au - Login To Your Account, Post Ads And Edit Listings" />
{elseif $body=='categories/browse.tpl'}
But wondered how to do it is they all use the same template file or dont even use one.
Cheers
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 10-25-2008, 07:52 PM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,410
Rep Power: 137
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

there is a "page number" passed to the script that displayes the page, just check for it and respond accordingly.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 10-26-2008, 03:35 AM   #3
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,088
Rep Power: 35
bowers01 is on a distinguished road
Default

Hi,
What .tpl file does extra pages pull?
Cheers
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 10-26-2008, 08:27 AM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,410
Rep Power: 137
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by bowers01
Hi,
What .tpl file does extra pages pull?
Cheers
You would use the same method to see the template and all the other variables here the same way I told you and hundreds others in the past.

http://www.68classifieds.com/forums/...on-fields.html
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 10-26-2008, 08:38 AM   #5
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,088
Rep Power: 35
bowers01 is on a distinguished road
Default

Ok,
Thanks
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 10-27-2008, 04:35 AM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,317
Rep Power: 82
seymourjames is a jewel in the rough
Default

You can test for a number of things to determine which page it is is.

One thing I do because i prefer it is to just test for the title (providing it is unique - and it is good practice to make sure it is anyway) of the page which you put into the page editor when creating the page. You can then test for it in the header of your layout.tpl in the same way. You can do things like this

{if $title == "blabla"}
{assign var=newtitle value=$title}
{assign var=desc value="Free to advertise xxxx and yyy with $newtitle"}
<meta name="Keywords" content= "K1,k2,k3, ..., $newtitle " />
{else}
.
.
.
<meta name="Description" content="{$desc}" />

The reason for assigning variables $newtitle and $desc (not necessary) is that doing it this way can make the logic simpler for lots of tests and secondly you can use the variables imaginatively on your pages (especially for search pages).
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline  
Old 10-27-2008, 04:43 AM   #7
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,088
Rep Power: 35
bowers01 is on a distinguished road
Default

Thanks
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where are extra pages? crystal Technical Support 8 07-14-2008 06:03 PM
Meta Description for Category Nudge Technical Support 2 03-02-2008 07:54 PM
Change Description Font Size Damon Templates, HTML, CSS, and Design Help 1 01-02-2008 04:53 PM


All times are GMT -4. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0