[Solved] adding custom info into a module smarty tag depending on page.

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
perseus
New Member
New Member
Posts: 5
Joined: Thu Apr 19, 2007 7:27 pm

[Solved] adding custom info into a module smarty tag depending on page.

Post by perseus »

I've been looking through the forum and I can't find an answer to this question. I hope there is one though. If I missed it or you think this topic is bad I hope you can forgive a beginer at CMS.

I'm running cms 1.5.3.
I have a module tag with inputs. It so happens to be a module not in the core cms package but the question is general for all moduls. The tag is this: {cms_module module='SimpleSlider' show='showname'}

My question is this: Is there a way for you to tell the tag differnet shownames on diffrent pages. For example have shownames that are the same as the page alias. So I like to be able to do something like this:
{cms_module module='SimpleSlider' show=pageAlias}
and depending on what page I'm on it will be the show for "home", "contact", "about me" and so on.

Can you do it somehow? I've tried the basic things like doing it all in a udt but the built string is not read as a "smarty tag" on the page. so it just comes up as a text lite exactly what it looks like. Is there a way to make it read it as a tag instead of just normal text?

I hope I'm doing this right.
Thanks for any help
Last edited by perseus on Thu Apr 09, 2009 10:13 pm, edited 1 time in total.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: adding custom info into a module smarty tag depending on page.

Post by tyman00 »

You are close. Try:

Code: Select all

{cms_module module='SimpleSlider' show=$page_alias} 

This may be helpful for you too: http://calguy1000.com/Blogs/12/60/basic ... kills.html
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
perseus
New Member
New Member
Posts: 5
Joined: Thu Apr 19, 2007 7:27 pm

Re: [Solved] adding custom info into a module smarty tag depending on page.

Post by perseus »

Thank you. I guess I was just not a good detective :)
Post Reply

Return to “CMSMS Core”