Support Forums

Old 10-06-2006, 01:16 PM   #1
Senior Member
 
 
Join Date: Sep 2006
Location: USA
Posts: 116
Rep Power: 14
BigOrange will become famous soon enough
Default Looking for list of variables.

Is there a list posted anywhere with variables that can be used in templates?

Example:
Title: {$title}
Name: {$name}
Address: {$address}

I know, some of themm are obvious but a list sure would be useful when modifying templates. Right now I'm looking throught the code to find them when I need to reference one of them and it is time consuming.

Thanks!
__________________
V3.1.5 Designer

"I have not failed. I've just found 10,000 ways that won't work."
THOMAS ALVA EDISON
BigOrange is offline   Reply With Quote
Old 10-06-2006, 01:29 PM   #2
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45
Maffo is just really niceMaffo is just really nice
Default

open layout.tpl and type {debug} with the brackets

Go to any page on your website and a popup will appear with a list of variables
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Old 10-06-2006, 01:30 PM   #3
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,214
Rep Power: 61
juven14 is a jewel in the rough
Default

The variable change per page so a list would be quite long. The best method you can use would be the debug window.

Just append this to the url: debug=true ie
viewlisting.php?view=1&debug=true

or you can place {debug} within the template and it will initiate the same popup with all the variables and data being passed to that page.
__________________
John Snyder
PHP Developer
juven14 is offline   Reply With Quote
Old 10-06-2006, 02:17 PM   #4
Senior Member
 
 
Join Date: Sep 2006
Location: USA
Posts: 116
Rep Power: 14
BigOrange will become famous soon enough
Default

{debug} works for showing the variables. I know variables can change. Maybe what I should have said I am looking for is a list of constants. A list of things I can insert into the template files. I'm sure there is a master list somewhere that the developers like you guys refer to:

Title: {$title}
Name: {$name}
Address: {$address}
? website name
? website url
? things like this

Do others not keep a master list of varible names instead of poping up windows all the time? Does that make any more sense?

Thanks for your help.
__________________
V3.1.5 Designer

"I have not failed. I've just found 10,000 ways that won't work."
THOMAS ALVA EDISON
BigOrange is offline   Reply With Quote
Old 10-06-2006, 02:35 PM   #5
Coder
 
Join Date: Mar 2006
Posts: 4,516
Rep Power: 110
Lhotch is just really niceLhotch is just really nice
Default

Constants are defined in 2 places, one is the language file and you can see a lits of all the names there. The other is in the database table class_admin for things that are set from within admin such as site title, keywords etc.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 10-06-2006, 02:38 PM   #6
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,214
Rep Power: 61
juven14 is a jewel in the rough
Default

Nope, no list I work off of.

It might be much easier to just state exactly what you are trying to display and those variables can be listed. It will go a long way if you study the variables availible within the template files, ie keywords, description, etc.
__________________
John Snyder
PHP Developer
juven14 is offline   Reply With Quote
Old 10-06-2006, 02:50 PM   #7
Senior Member
 
 
Join Date: Sep 2006
Location: USA
Posts: 116
Rep Power: 14
BigOrange will become famous soon enough
Default

The last one I was looking for was {$smarty.const.URL}.

I can find them as I need them. I just assumed there was a list. Thanks to everyone for pointing me in the right direction.
__________________
V3.1.5 Designer

"I have not failed. I've just found 10,000 ways that won't work."
THOMAS ALVA EDISON
BigOrange is offline   Reply With Quote
Old 10-06-2006, 02:55 PM   #8
Coder
 
Join Date: Mar 2006
Posts: 4,516
Rep Power: 110
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by BigOrange View Post
The last one I was looking for was {$smarty.const.URL}.
That one is in the database.
__________________
Larry.
Lhotch is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Variables HotAir v3.1 Questions & Support 3 01-08-2007 08:45 AM
List of Smarty Variables and Arguments? bgordon v3.1 Modules & Modifications 5 09-12-2006 03:06 PM
Smarty Variables for Featured Listings? bgordon v3.1 Questions & Support 7 09-12-2006 12:50 PM
Help with emailing global variables ichversuchte v3.1 Questions & Support 0 08-20-2006 10:30 PM
using passed variables gregbatch v3.1 Modules & Modifications 7 06-20-2006 08:37 PM


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


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