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



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

Re: Smarty logic help needed
by russtik on 2005/2/22 18:54:50

I've no idea what went wrong the first time around

For sake of argument, the theme is in a folder called 'default' (it's actually called something else but I am renaming the path accordingly). Thanks for helping me out here, much appreciated.

Just gotta find a tag to output the module name now.
Re: Smarty logic help needed
by rowdie on 2005/2/22 18:44:18

Quote:

russtik wrote:
Rowdie,

Your suggestion works as far as excluding the template from the homepage, but upon navigating to a module it chokes. Taking a look at the source of the rendered page shows that it just stops at the point where I pasted your code.


yeah, it would - sorry, I posted too quickly that last time, it's not possible to have one Smarty tag inside another.

What was wrong with the initial code I posted? I can't understand why it wouldn't work Is the theme you are working on in a folder called "default"? The first part of the include file url should be the theme folder name.

Edit - um, I took too long to post, you beat me to it

Glad it's finally working.
Re: Smarty logic help needed
by russtik on 2005/2/22 18:35:14

Hold the phone !

I reverted the path back to the one I originally used (instead of <{$xoops_imageurl}>) and it's working a treat !

Thanks for all your help.




P.s. Mithrandir you were right in that 'Contact Us' is the last module in the list. Any idea how I can output the current module name as it is in the main menu (not it's folder name)?
Re: Smarty logic help needed
by russtik on 2005/2/22 18:18:32

Rowdie,

Your suggestion works as far as excluding the template from the homepage, but upon navigating to a module it chokes. Taking a look at the source of the rendered page shows that it just stops at the point where I pasted your code.
Re: Smarty logic help needed
by rowdie on 2005/2/22 18:05:13

Mine works for me, I tested before I posted it.

I think the problem must be the linked file. Try using the complete url :

<{if $xoops_contents}>
<{include file="<{$xoops_imageurl}>default/theme_contentcenter.html"}>
<{/if}>

That's provided you have a folder called "default" in your theme folder. If the included file is in the root of your theme folder then use: <{$xoops_imageurl}>theme_contentcenter.html


In fact, if the included file doesn't exist at the location you've given, that would explain the blank page you get with Mith's solution.

Rowd

Who's Online

258 user(s) are online (204 user(s) are browsing Support Forums)


Members: 0


Guests: 258


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