Testun Posted November 29, 2018 Share Posted November 29, 2018 Hi, I wish some blocks disappear if no module is grafted. For example, no module is grafted to the position "header top" = this region does not appear. I would need a condition to put in the template, but I do not find which. For example: "if a module is grafted" mon code "else" code "endif). Do you know an identical condition? Tahnks in advance Link to comment Share on other sites More sharing options...
joseantgv Posted November 29, 2018 Share Posted November 29, 2018 3 minutes ago, Testun said: Hi, I wish some blocks disappear if no module is grafted. For example, no module is grafted to the position "header top" = this region does not appear. I would need a condition to put in the template, but I do not find which. For example: "if a module is grafted" mon code "else" code "endif). Do you know an identical condition? Tahnks in advance Try this: {if isset($HOOK_TOP)}{$HOOK_TOP}{else}whatever{/if} Link to comment Share on other sites More sharing options...
Testun Posted November 29, 2018 Author Share Posted November 29, 2018 Thanks, I tried, it makes the region disappear all the time, whether a module is attached or not. I would need this condition for the "displayTop" hook. For this hook the variable is $hook_top ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now