typoscript - How to hide sub page of sub-domain tree from the main domain in typo3 8 LTS -


i have website page tree down bellow:

   - main domain 1 (main domain)      - home      -      - contact      - gallery      - sub domain 2 (sub-domain)          - home          -          - contact          - gallery 

now, while main domain active shows sub domain inner page too. need name of domain (sub domain 2). while click in link switch , redirect the sub-domain

here hmenu typoscript:

lib.nav = hmenu lib.nav.wrap = <nav id="primary-menu">|</nav> lib.nav{     special = directory     special.value = 6     # excludeuidlist = 6      1 = tmenu     1 {         wrap = <ul>|</ul>         expall = 1          no = 1         no {             10 = text             10.data = field:title // field:nav_title             10.wrap = |              wrapitemandsub = <li>|</li>             wrapitemandsub.override.cobject = coa             wrapitemandsub.override.cobject {                 if {                     value = 4                     equals.field = doktype                     istrue = 1                     istrue.if {                         value.data = tsfe:page|uid                         equals.field = shortcut                     }                 }                 10 = text                 10.value = <li class="current">|</li>             }          }          act = 1         act.atagbeforewrap = 1         act < .no         act.wrapitemandsub = <li class="current">|</li>          ifsub = 1         ifsub < .no         ifsub.wrapitemandsub = <li class="sub-menu" >|</li>     }      2 <.1     2{         wrap = <ul style="display: none;">|</ul>         no = 1         no {             10 = text             10.data = field:title // field:nav_title             10.wrap = |              wrapitemandsub = <li>|</li>             wrapitemandsub.override.cobject = coa             wrapitemandsub.override.cobject {                 if {                     value = 4                     equals.field = doktype                     istrue = 1                     istrue.if {                         value.data = tsfe:page|uid                         equals.field = shortcut                     }                 }                 10 = text                 10.value = <li class="current">|</li>             }          }          act = 1         act.atagbeforewrap = 1         act < .no         act.wrapitemandsub = <li class="current">|</li>          ifsub = 1         ifsub < .no         ifsub.wrapitemandsub = <li class="sub-menu" >|</li>             } } 

here redirect link works fine this, while i'm browsing main domain site shows sub page of sub domain. can me how fix it?

you can use excludeuidlist below.

excludeuidlist = 21,22  // sub-page uid comma seprated 

for example.

lib.nav = hmenu lib.nav.wrap = <nav id="primary-menu">|</nav> lib.nav{     excludeuidlist = 21,22     special = directory     special.value = 6     ....     ..... 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -