Jump to content

is it possible more than one


nowinz

Recommended Posts

Hi,

thanks for reply, this is not working for me 

 

{if $templatefile eq "login"  || $templatefile|strstr:"linkedaccounts" || $templatefile eq "just-one-more"}


<div class="sub-head">
        <div class="custom-width">
            <div class="row">
             <h2>{$companyname} - {$pagetitle}{if $kbarticle.title} - {$kbarticle.title}{/if}</h2>
             <p>{$breadcrumbnav}</p>
           <p></p>

                </div>
            </div>
        </div>
  {if $loggedin}
         <nav id="nav" class="navbar navbar-default navbar-main" role="navigation">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#primary-nav">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="primary-nav">
                <ul class="nav navbar-nav">

                </ul>
                <ul class="nav navbar-nav navbar-left">

                 {include file="$template/includes/navbar.tpl" navbar=$primaryNavbar}

                </ul>
            </div><!-- /.navbar-collapse -->
        </div>
    </nav>
 {/if}

{/if}

Link to comment
Share on other sites

On 6/6/2022 at 7:25 PM, nowinz said:

Hi Community 

 

Example


{if $templatefile == 'account-contacts-new'}

blala

{/if}

More than one ?

{if $templatefile == 'account-contacts-new, homepage etc...............'}

blala

{/if}

thanks 

{if $templatefile|in_array:['account-contacts-new','homepage']} for equal and $templatefile|strstr:”linkedaccounts” as @othellotech said for search.

Edited by pRieStaKos
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated