1
alexon
where can i find xoops smarty's variables?
  • 2004/3/2 11:09

  • alexon

  • Friend of XOOPS

  • Posts: 13

  • Since: 2004/2/28


where can i find XOOPS smarty's variables list and descriptions ($xoops_banner,$xoops_module_header,$xoops_crblocks, etc) ?

2
Dave_L
Re: where can i find xoops smarty's variables?
  • 2004/3/2 14:03

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


If you set Debug mode to "Smarty Templates Debug" in the general settings, you'll get a popup window displaying the currently available variables. (That window doesn't seem to display all the assigned variables, but I haven't figured out why yet.)

I don't know of a comprehensive list of all such variables with descriptions.

3
ladon
Re: where can i find xoops smarty's variables?
  • 2004/3/2 14:34

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Does anyone know if there are plans to make this list? I'm willing to make such a list if only someone could give me some directions on how to find all of them (Which files to check other then turing on smarty debug).

I think it will be very usefull to make such a list and put it on the wiki because I've seen this question before.

4
Dave_L
Re: where can i find xoops smarty's variables?
  • 2004/3/2 15:22

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Template variables are assigned by calling $xoopsTpl->assign or $xoopsTpl->append, so searching for all occurrences of those would probably be the only way. Keep in mind that a variable assigned in one place may not be available everywhere. For example, varables assigned in header.php are global, but variables assigned in modules/newbb/viewtopic.php would only be available in that particular area.

5
ladon
Re: where can i find xoops smarty's variables?
  • 2004/3/2 17:03

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


I just took a look at that so i had already figured that out, thanks for the information anyways. I guess i'll be able to figure out what all of them do.

As soon as I've got some real time on my hands I'll start working on it. I'll make sure to divide them into global and module variables. I'll only make a list off all variables which are either global or official XOOPS module variables.

I think i'll list it like this:
modulename
page/filename.php (or template/block files to be used in)
variablename
function explained

Seems ok like that? I don't have a lot of time on my hands so don't expect me to work on this real soon. I'll do my best though.

6
Vargr
Re: where can i find xoops smarty's variables?
  • 2004/3/2 17:42

  • Vargr

  • Not too shy to talk

  • Posts: 130

  • Since: 2003/6/19


Sounds good.

Any list will be useful.

7
tripmon
Re: where can i find xoops smarty's variables?
  • 2004/3/3 16:41

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


Sounds like a great contri.
It would really help people "freestyle" with XOOPS a bit more!

8
Mithrandir
Re: where can i find xoops smarty's variables?

These are the variables available on my site in a non-templated module page (so no page-specific variables in here)

I have also filtered out the contents variables such as $xoops_contents, $xoops_lblocks and $block since these hold the actual HTML code.

{$SCRIPT_NAME}    /modules/team/tactics.php
{$xoops_banner}     
{
$xoops_charset}    ISO-8859-1
{$xoops_footer}    Powered by XOOPS 2.0 2001-2003 <a h...
{
$xoops_imageurl}    http://modules.linux-gamers.net/theme...
{$xoops_isadmin}    1
{$xoops_isuser}    1
{$xoops_js}    //--></script><script type="text/java...
{$xoops_langcode}    en
{$xoops_meta_author}    Mithrandir
{$xoops_meta_copyright}    Copyright 2001-2003
{$xoops_meta_description}    XOOPS is a dynamic Object Oriented ba...
{
$xoops_meta_keywords}    newstechnologyheadlinesxoopsx...
{
$xoops_meta_rating}    general
{$xoops_meta_robots}    index,follow
{$xoops_notification}    Array (1)
show => 0
{$xoops_pagetitle}    Team
{$xoops_requesturi}    /modules/team/tactics.php?teamid=1
{$xoops_rootpath}    /xxx/xXx/Xxx/xx/...
{
$xoops_showcblock}    0
{$xoops_showrblock}    0
{$xoops_sitename}    Clan Modules
{$xoops_slogan}    XOOPS at its BEST
{$xoops_theme}    linux-gamers.net
{$xoops_themecss}    http://modules.linux-gamers.net/theme...
{$xoops_uname}    Mithrandir
{$xoops_upload_url}    http://modules.linux-gamers.net/uploads
{$xoops_url}    http://modules.linux-gamers.net
{$xoops_userid}    1
{$xoops_version}    XOOPS 2.0.5.1

9
davidmo
Re: where can i find xoops smarty's variables?
  • 2004/11/23 7:19

  • davidmo

  • Just popping in

  • Posts: 3

  • Since: 2004/11/23


I have been looking for it also... IMHO you CAN'T build nice template without this. I am surprised such a great documented CMS does not provide this kind of info... Probably most people do not heavily customize their website...

Too bad !

10
jdseymour
Re: where can i find xoops smarty's variables?

Lots of information about smarty in the API Doc.

Login

Who's Online

231 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 231


more...

Donat-O-Meter

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

Latest GitHub Commits