| 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:
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 |