Jump to content

get name module


Recommended Posts

I want have for each module a header logo,

 

{if $module name == 'abc'}

 

<img src="header1.jpg">

 

{elseif $smodule name == 'def'}

<img src="header2.jpg">

.

.

.

{/if}

 

There is a code smarty for the module name or how I can get???

Link to comment
Share on other sites

If I understand, you want to add an image o top of some of your modules ?

If so, you should try editing your module tpl file.

 

If you want to do this the "clean" and correct way, you should override the default TPL instead of editing it directly.

 

To do so, copy the module's tpl file to the corresponding folder in your theme folder.

 

theme/yourTheme/modules/theModule/theModule.tpl

 

Then, edit this tpl file to add your images. Hope this helps

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...