LISE - pass custom var to template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
ooopie
Forum Members
Forum Members
Posts: 10
Joined: Mon Dec 19, 2011 7:19 pm

LISE - pass custom var to template

Post by ooopie »

When I call a LISE instance, is there a way I can pass a custom variable to the template?

For example:

Code: Select all

{LISEmymodule myFavoriteColor="purple"}
and then the template:

Code: Select all

<div style="color: {$myFavoriteColor}">
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: LISE - pass custom var to template

Post by Rolf »

This should do it:

Code: Select all

{$myFavoriteColor='purple' scope=global}
{LISEmymodule}
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”