Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 4 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Morphogenesis Smarty variables for template overriding
by skenow on 2007/7/13 14:46:04

Original tracker - 1599929
New tracker - 1751011
Re: Morphogenesis Smarty variables for template overriding
by zyspec on 2007/7/13 12:01:19

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...
Re: Morphogenesis Smarty variables for template overriding
by skenow on 2007/7/13 2:19:22

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.
[Core inconsistency] some Smarty variables - Skenow report
by zyspec on 2007/7/12 23:51:12

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*

Who's Online

199 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 199


more...

Donat-O-Meter

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

Latest GitHub Commits