Zum Inhalt springen

Menu aus passwortgescützen Bereichen wird angezeigt

Erstellt am 2. August 2005 · 2 Antworten · letzte Antwort am 9. August 2005

Tags: Frage

richi75 ·

Hi Community,

hätte da mal eine Frage zu Thema passwortgeschützte Seiten.
(Typo 3.8 läuft auf Suse Enterprise Server.)

Habe mir jetzt ein paar Passwortgeschützte Seiten angelegt. Schutz klappt auch ganz gut, soll heissen die Seiten sind geschützt, nur auf der Loginseite wird das Menu der passwortgeschützten Seiten angezeigt.

Hier mal TS des Menu Templates (+ext)

#-------------------------------------------
## Menu 2 cObject - vertical, one level menu
#-------------------------------------------
 temp.menu_2 = HMENU
 temp.menu_2.entryLevel = 1
  # First level menu-object, textual
 temp.menu_2.1 = TMENU
 temp.menu_2.1 {
    # Normal state properties
  NO.allWrap = <div class="menu2-level1-no"><img src="fileadmin/template/main/pics/pfeil_rechts.jpg" alt="" border="0" />   | </div>
  NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu2-level1-act"><img src="fileadmin/template/main/pics/pfeil_unten.jpg" alt="" border="0" />   | </div>
 }
 
  # Second level menu-object, textual
 temp.menu_2.2 = TMENU
 temp.menu_2.2 {
    # Normal state properties
  NO.allWrap = <div class="menu2-level2-no"> | </div>
  NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu2-level2-act"> | </div>
}

# ------------------------
# Path menu cObject
# ------------------------
temp.path = HMENU
temp.path.special = rootline
#on part de la racine jusqu'a la page en cours
temp.path.special.range = 0|-1
temp.path.1 = TMENU
temp.path.1.NO {
     #lien 1 coup sur 2
     linkWrap = <div class="path"><a href="index.php?id={elementUid}">|</a> > ||| > |*|<a href="index.php?id={elementUid}">|</a> > |*||</div>
     subst_elementUid = 1
     doNotLinkIt=0
}
#temp.path = HMENU
  # Setting the special property to "rootline" - this will produce a "Path-menu"
#temp.path.special = rootline

  # First level menu-object, textual
#temp.path.1 = TMENU
  # Wrapping value for the whole menu:
#temp.path.1.wrap = Path:   | 
#temp.path.1 {
    # Normal state properties appending " > " to all elements but the last one. 
    # (See "optionSplit")
#  NO.allWrap =   | >  |*||*|   | 
#}

#--------------------------------------
## Content area TEMPLATE cObject
#--------------------------------------
temp.contentarea = TEMPLATE
temp.contentarea {
  # Feeding the content from the Auto-Parser to the TEMPLATE cObject:
  # CREATES A COPY since we need to manipulate some properties!
   template < plugin.tx_automaketemplate_pi1

  # Reconfigurating the "tmplselect" plugin to select from the 
  # content area templates" in sub - folder instead of main templates:
  template.content.templateType = sub
  template.content.defaultTemplateFileName = ct_2.html
 
  # Since the template files are now located in other path
  # the relative prefix must be changed as well
   template.relPathPrefix = fileadmin/template/sub/
    
  # Clear the "elements" property
   template.elements >

  # Set the DIV und TD elements to be wrapped in subparts
  # Wrap the header section butremove <title> and <style> sections:
  template.elements {
      HEAD.all = 1
      HEAD.all.subpartMarker = DOCUMENT_HEADER
      HEAD.rmTagSections = title, style

      DIV.all = 1
      TD.all = 1
  }
   # Select only the content of the <div id="contentsection"> element
   workOnSubpart = contentsection

   subparts {
     colNormal < styles.content.get
     colLeft < styles.content.getLeft
     colRight < styles.content.getRight
     news-pi < plugin.tx_mininews_pi1
   }
}
plugin.tx_automaketemplate_pi1.content.defaultTemplateFileNameSub = ct_1

#-------------------------------------------
##Main TEMPLATE cObject for the BODY
#-------------------------------------------
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    ## Feeding the content from the auto parser to the TEMPLATE Object:
    template =<  plugin.tx_automaketemplate_pi1 
    ##Select only the content between the <body>-tags
     workOnSubpart = DOCUMENT_BODY

     #Substitute the ##menu_1## subparts with dynamic menu:
 #    subparts.menu_1 < temp.menu_1

     #Substitute the ##menu_2## subparts with dynamic menu:
     subparts.menu_2 < temp.menu_2

     #Substitute the ##path## subparts with dynamic menu:
     subparts.path < temp.path

     #Substitute the ##path## subparts with the content area template:
     subparts.content < temp.contentarea
     #subparts.content < styles.content.get

     #-------------------------------------------
     ## Menu 1 cObject - horizontal, one level menu
     #-------------------------------------------
     subparts.nav = HMENU
     subparts.nav.1 = GMENU
     subparts.nav.1 {
       expAll = 1
       wrap =  |
       NO {
       XY = 100,20
       5 = IMAGE
#       5.file = fileadmin/simple_GMENU/template/img/nav_bg.gif
       5.file =  fileadmin/template/main/pics/gmenu/nav_bg_bmsoft.gif
       10 = TEXT
       10.text.field = title
       10.fontFile = fileadmin/fonts/georgiab.ttf 
       10.fontSize = 10
      # offset bestimmt die vertikale Ausrichtung der Schrift
      #10.offset = 0,22
      10.offset = 0,16
      10.fontColor = #FFFFFF
      10.align = center
      10.before.cObject = TEXT
      10.before.cObject.field = uid
      # in der folgenden Zeile wird der Seitentitel als title-Tag in den Link hinein
      #generiert
      10.before.cObject.dataWrap = <a href="index.php?id=|" title="{field:title}">
 } 

# hier wird der aktive Menüpunkt definiert, es wird alles von NO
#(Normalzustand) übernommen, nur die Grafik, Schriftfarbe und Position der
#Schrift wird verändert  
  ACT < .NO
#  ACT < NO
  ACT = 1
  ACT {
  #5.file = fileadmin/simple_GMENU/template/img/nav_bg_act.gif
  5.file = fileadmin/template/main/pics/gmenu/nav_bg_act_bmsoft.gif

  10.fontColor = #17096a
    #10.offset = 0,24
  10.offset = 0,16
}

# hier wird der Mouseover Zustand der nicht aktiven Menüpunkte definiert, es
#wird alles von NO (Normalzustand) übernommen, nur die Grafik und
#die Schriftfarbe wird verändert 
  RO < .NO
#  RO < NO

  RO = 1
  RO {
     #5.file = fileadmin/simple_GMENU/template/img/nav_bg_hover.gif
     5.file = fileadmin/template/main/pics/gmenu/nav_bg_hover_bmsoft.gif
     10.fontColor = #FFFFFF
  }
} 
}
#plugin.tx_mininews_pi1.userFunc = 
plugin.tx_mininews_pi1.userFunc = tx_mininews_pi1->main

Ich glaub man kann ganz einfach sagen, dass auf einer Seite das Menu nicht angezeigt werden soll, aber WIE?

Wäre für Hilfe sehr Dankbar!

MfG

Richi

Bebbi ·

Hi Richi

Seitentitel bearbeiten --> Allgemeine Optionen (ganz unten) --> Zugriff --> "bei jedem Login anzeigen"

Gruss

Bebbi

richi75 ·

Das ist nicht das problem sondern wenn ich mich auf der Login Seite befinde, wo ich mich einloggen muss, wird schon das Menu der passwortgeschützten Seiten angezeigt, welches sich im Page-ree unterhalb der Login Seite befindet.