[TYPO3-UG Italy] R: Menu typo3 con categorie

Cristian Buja (InteRa s.r.l.) cristian.buja at intera.it
Tue Mar 24 18:37:31 CET 2015


Penso che nell'esempio che ti funziona la categoria e' nella stessa 
pagina, mentre nell'altro no.

Se e' così probabilmente dovresti aggiungere l'uid dello 'storage' delle 
categorie alla select (nella proprieta pidInList probabilmente)
Ad esempio:
pidInList.field = pid
pidInList.wrap = |,[uid storage categorie]

http://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Select/Index.html#select

Ciao


Cristian Buja
cristian.buja at intera.it <mailto:cristian.buja at intera.it>

Intera - Web, grafica, comunicazione

Intera
Web, grafica, comunicazione
via Fratelli Lumiere, 46/a
48124 Fornace Zarattini (Ra), Italia
T: +39 0544 462628
F: +39 0544 467457
www.intera.it <http://www.intera.it>
intera at intera.it <mailto:intera at intera.it>


Il 24/03/2015 17:27, De Contardi Riccardo ha scritto:
> Ciao Roberto,
> No, il menu special=categories non mi convince
>
> Cambiamo approccio:  vorrei mettere la categoria dei tt_content (significa che assegno una categoria a un elemento tt_content ;) ) dentro una classe tramite typoscript.
>
> Il codice (che poi adatterò alle mie esigenze):
>
> lib.stdheader.50 = CONTENT
> lib.stdheader.50 {
>      wrap = <p class="categories">|</p>
>      if.isTrue.field = categories
>      table = tt_content
>      select {
>        uidInList.field = uid
>        join = sys_category_record_mm ON tt_content.uid = sys_category_record_mm.uid_foreign JOIN sys_category ON sys_category.uid = sys_category_record_mm.uid_local
>        orderBy = sys_category.sorting
>      }
>      renderObj = TEXT
>      renderObj {
>        field = title
>        wrap = |&nbsp;
>      }
>    }
>
> MI funziona in un ambiente, mentre in un altro.. no! E non capisco come mai... l'unica differenza tra i due ambienti è che il secondo (Dove non funziona) ho più di una pagina root (multisito) cioè ho una situazione di questo tipo
>
> [ID=1]pagina root sito 1
> [ID=10] pagina root sito 2
> [ID=14] pagina root sito 3
> [ID=15]pagina root sito 4 (dove uso le categorie)
>      |
>      +-- SYSFOLDER CON LE CATEGORIE
>
>
> Ecco, in questo caso la query di CONTENT non funziona... qualcuno riesce ad aiutarmi??
> Grazie
>
>
>
>
>
>
>
>
>
> --------------------------------------------
> Riccardo De Contardi – Web Developer
> B Human Srl - www.bhuman.it
> Riccardo.decontardi at bhuman.it
> Corso di Porta Nuova, 46 - 20121 Milano
> TEL +39-02-20.23.271 - FAX +39-02-20.240.561
> --------------------------------------------
>
> -----Messaggio originale-----
> Da: typo3-ug-italy-bounces at lists.typo3.org [mailto:typo3-ug-italy-bounces at lists.typo3.org] Per conto di Roberto Torresani
> Inviato: martedì 24 marzo 2015 15:00
> A: TYPO3 Usergroup Italy
> Oggetto: Re: [TYPO3-UG Italy] Menu typo3 con categorie
>
> Ciao Riccardo
> se ho compreso correttamente la tua esigenza forse potrebbe esserti di aiuto l'utilizzo dello special=categories nei menu?
>
> http://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Hmenu/Index.html#hmenu-special-categories
>
> Ciao
> Roberto
>
> Il giorno 24 marzo 2015 14:30, De Contardi Riccardo < Riccardo.DeContardi at bhuman.it> ha scritto:
>
>> Buongiorno,
>> sto cercando di seguire questo tutorial:
>> https://worksonmymachine.org/blog/onepage-design-with-fluidtypo3 che
>> funziona molto bene per ottenere un sito "one page" con TYPO3.
>>
>> A questo punto ho questo problema: vorrei associare ad ogni pagina una
>> categoria e poi utilizzarla come classe per le voci del menu, ma mi
>> sono bloccato... non so come fare :(
>>
>> Ho provato anche a passare attraverso il typoscript, prendendo ad
>> esempio
>> questo: http://typo3.org/documentation/snippets/sd/471/ e provando ad
>> adattarlo:
>>
>> lib.pagecategories = CONTENT
>> lib.pagecategories {
>>      if.isTrue.field = categories
>>      table = pages
>>      select {
>>        uidInList.field = uid
>>        join = sys_category_record_mm ON pages.uid =
>> sys_category_record_mm.uid_foreign JOIN sys_category ON
>> sys_category.uid = sys_category_record_mm.uid_local
>>        orderBy = sys_category.sorting
>>      }
>>      renderObj = TEXT
>>      renderObj {
>>        field = title
>>        noTrimWrap = | | |
>>      }
>>    }
>>
>> Ma senza fortuna :(
>>
>> Qualcuno ha dei suggerimenti? Grazie!
>>
>> --------------------------------------------
>> Riccardo De Contardi - Web Developer
>> B Human Srl - www.bhuman.it<http://www.bhuman.it/>
>> Riccardo.decontardi at bhuman.it
>> Corso di Porta Nuova, 46 - 20121 Milano TEL +39-02-20.23.271 - FAX
>> +39-02-20.240.561
>> --------------------------------------------
>>
>>
>> **************************************************
>>
>> Chi riceve il presente messaggio e' tenuto a verificare se lo stesso
>> non gli sia pervenuto per errore. In tal caso e' pregato di avvisare
>> immediatamente il mittente e, tenuto conto delle responsabilita'
>> connesse all'indebito utilizzo e/o divulgazione del messaggio e/o
>> delle informazioni in esso contenute, voglia cancellare l'originale e
>> distruggere le varie copie o stampe.
>>
>> The receiver of this message is required to check if he/she has
>> received it erroneously. If so, the receiver is requested to
>> immediately inform the sender and - in consideration of the
>> responsibilities arising from undue use and/or disclosure of the
>> message and/or the information contained therein - destroy the original message and any copy or printout thereof.
>> _______________________________________________
>> TYPO3-UG-Italy mailing list
>> TYPO3-UG-Italy at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-italy
>>
>
>
>
> --
> TYPO3 CMS 7.1 - Le novità <http://slidesha.re/17WfVqV> _______________________________________________
> TYPO3-UG-Italy mailing list
> TYPO3-UG-Italy at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-italy
>
> **************************************************
>
> Chi riceve il presente messaggio e' tenuto a verificare se lo stesso non gli sia pervenuto per errore. In tal caso e' pregato di avvisare immediatamente il mittente e, tenuto conto delle responsabilita' connesse all'indebito utilizzo e/o divulgazione del messaggio e/o delle informazioni in esso contenute, voglia cancellare l'originale e distruggere le varie copie o stampe.
>
> The receiver of this message is required to check if he/she has received it erroneously. If so, the receiver is requested to immediately inform the sender and - in consideration of the responsibilities arising from undue use and/or disclosure of the message and/or the information contained therein - destroy the original message and any copy or printout thereof.
>


More information about the TYPO3-UG-Italy mailing list