Support Forums

Title Tag in layout.tpl.php

This is a discussion on Title Tag in layout.tpl.php within the v3.1 Questions & Support forums, part of the Legacy Help & Support category; Last night I was going through some previous forums post, and came across about adding if/else statement in the title ...


Go Back   68 Classifieds Forums > Archives > Legacy Help & Support > v3.1 Questions & Support

Reply
 
Thread Tools Display Modes
Old 07-26-2008, 01:07 PM   #1
Member
 
Join Date: Nov 2007
Location: Metro Detroit
Posts: 65
Rep Power: 10
LittleRascal is on a distinguished road
Default Title Tag in layout.tpl.php

Last night I was going through some previous forums post, and came across about adding if/else statement in the title tag, well I did one small modification to it, in which I thought it made sense, it's doing what I want it to do, but I am not understanding the logic of it and where it's now living? In the database or file?

my orginal layout.tpl.php file.....

<head>

<title>MyDivorceSales - Sell & buy items - cars, homes, jewelry, electronics... anything</title>

<meta name="Keywords" content="divorced, divorce, unwanted items, breakup, splitup, sell, buy, classifieds, garage sales, estate sales, realtors, real estate, moving sales, selling, buying, used, new, storage, wedding, rings, electronics, cars, trucks, yard sales, boats," />

<meta name="Description" content="Post free ads and search through our classifieds ads for unwanted items and everything else." />

ok here is the code I found in a thread,

<title>{if $listingtitle}{$listingtitle}{$title}{else}{$title }{/if}<title>

here is what I did to modify it it for my website....

<title>{if $listingtitle == $title}{$listingtitle}{$title}{else}{$title}{/if}<title>

seems to work, but I took the code out and just left

<title>{$title}<title>

and I can not figure out how to get it back to normal just to the <title><$title></title> to get back to the main description of what I put in the administration side ...it is now permently listing the title and description title of an ad with this code that I went back to <title>{$title}<title>.


mysite is My Divorce Sales

Any help and logic why his is doing what its doing would be appreciated....
__________________
David Anthony Schnoblen
uSelliBuy.com
My Email
v 4.1.3 Developer
Templates: Default 3 Col

Last edited by LittleRascal; 07-26-2008 at 01:14 PM.
LittleRascal is offline   Reply With Quote
Old 07-27-2008, 11:28 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,293
Rep Power: 124
Eric Barnes is a jewel in the rough
Default

You may want to try deleting your templates_c folder and see if that sorts it out.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling URLs with title tags. seymourjames Modules / Plugins / Modifications 18 07-10-2008 10:17 AM
Category Title Tags anna245 Technical Support 6 06-30-2008 11:44 AM
How To Create A Dynamic Ad Title From Ad Fields? bgordon v3.1 Questions & Support 5 04-16-2007 07:33 PM
Problem getting page title flyingpylon v3.1 Questions & Support 5 10-19-2006 02:15 PM


All times are GMT -4. The time now is 12:04 PM.


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