[TYPO3-UG Italy] menu con la lista dei contenuti
Mauro Lorenzutti
mauro.lorenzutti at webformat.com
Thu Sep 27 15:15:26 CEST 2012
Ciao Paolo,
benvenuto nel favoloso mondo dell'if :-)
non ho provato ma così dovrebbe andare:
[...]
stdWrap.if.value = 1
stdWrap.if.isGraterThan.numRows {
table = tt_content
select {
where = sectionIndex!=0
andWhere = colPos =0
andWhere = hidden =0
pidInList = this
pidInList.override.field = pages
}
}
[...]
Ciao,
--
Mauro Lorenzutti
CTO / Software Architect
mauro.lorenzutti at webformat.com
Tel. +39-0427-926.389
WEBFORMAT srl -- www.webformat.com
Via S. Francesco d'Assisi, 6 -- 20122 MILANO
Corte Europa, 12 - 33097 SPILIMBERGO (PN)
*** TYPO3 Certified Integrator ***
Il 27/09/2012 14:50, Paolo Bragagni ha scritto:
> Per fare un menu laterale con la lista dei contenuti della pagina ho
> inserito il TS sottostante.
>
> Il problema pero e' che lo visualizza anche se c'e' solo un contenuto
> nella colonna.
> c'e' il modo per wrappare solo se ci sono piu di x contenuti?
>
> saluti,
> PB
>
> ----------------------
> menu.navpag < styles.content.get
> menu.navpag {
> stdWrap.wrap = <div class="span3 bs-docs-sidebar"><ul
> data-spy="affix" data-offset-top="40" data-offset-bottom="700"
> class="nav nav-list bs-docs-sidenav">|</ul></div>
> select.andWhere = sectionIndex!=0
> select.pidInList.override.field = pages
> renderObj = TEXT
> renderObj {
> noBlur = 1
> fieldRequired = header
> trim=1
> field = header
> htmlSpecialChars = 1
> wrap = <li>|</li>
> ATagParams = class="navlink"
> typolink.parameter.field = pid
> typolink.section.field = uid
> }
> stdWrap.if.isTrue.numRows {
> table = tt_content
> select {
> where = sectionIndex!=0
> andWhere = colPos =0
> andWhere = hidden =0
> pidInList = this
> pidInList.override.field = pages
> }
> }
> }
> ----------------------
> _______________________________________________
> TYPO3-UG-Italy mailing list
> TYPO3-UG-Italy at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-italy
More information about the TYPO3-UG-Italy
mailing list