Jump to content

Theme Key


Heosforo
 Share

Recommended Posts

Hello guys.

I'm trying to resolve this from last night and still nothing.

HTML logic

If you need to check the value of a theme setting in an HTML logic tag (for example, to determine whether a block of HTML should be shown or not), a short-hand variable is available to you:

theme.your_theme_key


A real-world example:

{{if theme.forum_layout === 'grid'}}
    ...
{{else}}
	...
{{endif}}

 

I have created a number field and I have this:

{template="userPhoto" group="global" app="core" params="\IPS\Member::load( 1 )"}


How could I show the chosen number?

{template="userPhoto" group="global" app="core" params="\IPS\Member::load( {theme.your_theme_key} )"}
{template="userPhoto" group="global" app="core" params="\IPS\Member::load( {{if theme.your_theme_key}}{{endif}} )"}

It doesn't seem to work, what am I doing wrong?

Thanks for any help. :rofl:

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...