1
imurphy
List of variables available in a template
  • 2003/11/6 10:09

  • imurphy

  • Just popping in

  • Posts: 4

  • Since: 2003/7/11



Does anyone know of a list of XOOPS variables available in a template?

I would like to pull elements like the site banner and place it onto the template but can't work out how you know what is available and what they relate to.

What I'm referring to are the <{$xoops_banner}> type variables which are picked up by Smarty.

Regards

Ian Murphy

2
skalpa
Re: List of variables available in a template
  • 2003/11/6 10:53

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


1) insert <{debug}> in your template, or in system admin / preferences set debug to "Smarty templates"

2) Read this: http://smarty.php.net/docs.php
You may find other interesting things there.

Skalpa.>

3
Mithrandir
Re: List of variables available in a template

Quote:
{$smarty.const}

You can access PHP constant values directly.

Example 4-8. using {$smarty.const}

{$smarty.const._MY_CONST_VAL}

Bleh and here I have been assigning language variables for just this particular thing!!!

4
Mithrandir
Re: List of variables available in a template

Except that I get a
Fatal error: Smarty: [in db:team_teamadmin.html line 70]: syntax error: unrecognized tag: smarty.const._AM_TEAMUPDATE (Smarty_Compiler.class.php, line 382) in

5
imurphy
Re: List of variables available in a template
  • 2003/11/7 17:20

  • imurphy

  • Just popping in

  • Posts: 4

  • Since: 2003/7/11


Late last night while trying to figure out how why some other things were not working I found the debug feature in preferences. It displays quite a long list of variables available.

thanks for the info... I'll try reading up on Smarty.

Regards
Ian

Login

Who's Online

144 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 144


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits