Start ::
Developers Corner ::
0.8 Theme Design ::
Smarty question in PN.8 RC2
Moderated by: Support Team
-
- rank:
-
pnHelper
- registered:
- March 2005
- Status:
- offline
- last visit:
- 30.04.08
- Posts:
- 124
Im trying to change a navigation bar based on if the user is logged in. This is working from a modified Andreas theme. I get the following Smarty error at line 28, which is at the section:
System Error
Critical error
An unknown error has occured. The following error message was returned by the system
Smarty error: [in master.htm line 28]: syntax error: invalid attribute name: '=' (Smarty_Compiler.class.php, line 1547) (in file C:\Program Files\xampp\htdocs\dco\includes\classes\Smarty\Smarty.class.php on line 1095)
HELP!!!, I know this is something simple and I'm a total n00b at Smarty. -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 24.04.08
- Posts:
- 7647
The problem is the pnuserloggedin($loggedin) part of your template logic. You're mixing the use of template functions and template variables.
If using the pnuserloggedin tag you'd use it like
However you don't need to do this since we assign you the result of pnuserloggedin by default. See this list of default theme template variables. So you can simply use
See our Theme authoring documentation for additional information on the theming system.
-Mark -
- rank:
-
pnProfessional
- registered:
- December 2003
- Status:
- offline
- last visit:
- 08.05.08
- Posts:
- 2635
http://community.postnuke...wtopic-topic-52535.htm
Here is an example of how the logic can extend.
-----
-- David Pahl -- (PostNuke Support Team)
<div id="me" class="none" style="none" />
-
- rank:
-
pnHelper
- registered:
- March 2005
- Status:
- offline
- last visit:
- 30.04.08
- Posts:
- 124
Mark, this did not work. I looked through the links and based on what I've seen, that would be the correct syntax, but it simply is not doing what it should be. Am I missing something? I can send someone the entire template to look at if needed. -
- rank:
-
pnProfessional
- registered:
- December 2003
- Status:
- offline
- last visit:
- 08.05.08
- Posts:
- 2635
As far as I can see the loggedin part should work...
I do not think you can do that.... modname is Content not the complete path.
-----
-- David Pahl -- (PostNuke Support Team)
<div id="me" class="none" style="none" />
-
- rank:
-
pnSoftmore
- registered:
- July 2004
- Status:
- offline
- last visit:
- 23.03.08
- Posts:
- 89
AmmoDump is right.
Please look here, too: http://community.postnuke...-start-0.htm#pid233327
-----
www.carsten-volmer.de
Unternehmensberatung Volmer
Start ::
Developers Corner ::
0.8 Theme Design ::
Smarty question in PN.8 RC2
