|
|
#1 |
|
Senior Member
Join Date: Sep 2006
Location: USA
Posts: 116
Rep Power: 14 ![]() |
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 |
|
|
|
|
|
#2 |
|
The Master
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45 ![]() ![]() |
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. |
|
|
|
|
|
#3 |
|
Moderator
|
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 |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Sep 2006
Location: USA
Posts: 116
Rep Power: 14 ![]() |
{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 |
|
|
|
|
|
#5 |
|
Coder
Join Date: Mar 2006
Posts: 4,516
Rep Power: 110 ![]() ![]() |
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.
|
|
|
|
|
|
#6 |
|
Moderator
|
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 |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Sep 2006
Location: USA
Posts: 116
Rep Power: 14 ![]() |
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 |
|
|
|
|
|
#8 |
|
Coder
Join Date: Mar 2006
Posts: 4,516
Rep Power: 110 ![]() ![]() |
That one is in the database.
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |