1
zyspec
[Core inconsistency] some Smarty variables - Skenow report
  • 2007/7/12 23:51

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I'm attempting to use "The Barn" theme (you can see the release article here) which is based on the Morphogenesis work. I'm using XOOPS 2.0.16 (with the default template set) but I'm having trouble with the xoImgUrl, xoImgApp, and several other Smarty variables not being set for some of the system templates (specifically system_siteclosed.html and system_redirect.html).

Xoops is finding the templates and it is overriding the default template set correctly.

Some of the variables are set correctly (xoops_langcode, xoops_charset, xoops_url, SCRIPT_NAME, sitename, xoops_imageurl, xoops_requesturi, xoops_rootpath, xoops_themecss, xoops_upload_url, xoops_version, etc...) but others are not (xoImgUrl, xoAppUrl, xoops_pagetitle, xoops_sitename, xoops_meta_robots, xoops_meta_keywords, xoops_meta_description, $xoops_meta_rating, $xoops_meta_author, $xoops_meta_copyright, etc...). I've verified that there are values in the keywords, sitename, etc. variables in Admin>Preferences.

I turned on Smarty debug to confirm the $Smarty variables aren't being set... I've searched the forums and also read the template overriding tutorial.

Any ideas/suggestions?
___________
*Mod 3 adjustment Title changed for cataloging purposes*

2
skenow
Re: Morphogenesis Smarty variables for template overriding
  • 2007/7/13 2:19

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


I have discovered not all the variables you expect are set for every page XOOPS generates. Take, for example, the site closed page - it uses $sitename instead of $xoops_sitename, $xoops_imageurl instead of xoImgUrl and none of the meta tags are available on that page. The same is true of the redirect page.

This is not a theme or template issue, but a core XOOPS issue. Some of these are reported in the bug tracker, however, others are not. There are various places throughout the code where these inconsistencies need to be addressed.

3
zyspec
Re: Morphogenesis Smarty variables for template overriding
  • 2007/7/13 12:01

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Thanks... I thought maybe it was just me

This was the first of the Morphogenesis "series" themes that I'd tried to use so I thought maybe I'd missed some patch/hack that I should have installed.

I can just hack the template to use variables that are available for now and hopefully this will get addressed in a future XOOPS release...

4
skenow
Re: Morphogenesis Smarty variables for template overriding
  • 2007/7/13 14:46

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17



Login

Who's Online

163 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 163


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