This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Create a condition in master.ztml
#1
Create a condition in master.ztml
Hello Everybody,

 I know that to create a condition in a module is as follows :

File: controler.ext.php

Code:
    static function getMethodName()
    {
        return true;
    }


File: module.zpm

Code:
    <% if MethodName %>
    <% endif %>

There all right from here but how can do that in the file master.ztml? Huh


In my case i want to hide a html tag "div" block only if the URL varible is not set "module"

[Image: hide_block.png]
Reply
Thanks given by:
#2
RE: Create a condition in master.ztml
You can't with php, but it's possible with javascript it's maybe ugly but it works..

My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Reply
Thanks given by:
#3
RE: Create a condition in master.ztml
Thank you @Ron-e this is a good alternative solution for this problem.
Reply
Thanks given by:
#4
RE: Create a condition in master.ztml
Hey mate by the way... and off topic can you share that template? Looks amazing tho.. Wink
'' Life is full of important choices ''
Help Sentora Donate now => http://sentora.org/donate Blush
Reply
Thanks given by:
#5
RE: Create a condition in master.ztml
(07-11-2016, 09:59 AM)wormsunited Wrote: Hey mate by the way... and off topic can you share that template? Looks amazing tho.. Wink
Agreed


Sent from my SM-G900W8 using Tapatalk
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Cannot Create 2nd 'Addon' Domain In Sentora? Error: Invalid backend configuration. Re BattlinThrough 2 5 ,368 07-07-2020, 01:22 PM
Last Post: TGates
I want to create a subdomain using XMWS phuong112 1 4 ,281 11-13-2019, 09:25 AM
Last Post: TGates
How can I create panel link helenmai 1 5 ,764 10-16-2018, 02:47 PM
Last Post: fearworks

Forum Jump:


Users browsing this thread: 1 Guest(s)