[TYPO3-german] tt_news - jeder news ein anderes layout ?
Basti
sebastian.schmal at gmx.de
Tue Feb 17 12:26:08 CET 2009
Ah super!
dann muss ich es wohl mit verschiedenen Cat´s bauen!
oder was ich noch für eine Idee hatte:
ich missbrauche das "Email" Feld für eine class einzubinden:
###NEWS_EMAIL### => news_rot
und im template:
<!-- ###NEWS### begin Template for a single item -->
<div class="###NEWS_EMAIL###">
<div class="news_box">
<!--###LINK_ITEM###-->###NEWS_IMAGE###<!--###LINK_ITEM###-->
<h2><!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></h2>
###NEWS_CONTENT###
<p><!--###LINK_ITEM###-->###MORE###<!--###LINK_ITEM###--></p> </div>
</div>
<!-- ###NEWS### end-->
sollte doch auch gehen oder?
------------------------------------------
TYPO3 - TIPS - ANLEITUNGEN - NEWS - TYPO3
unter: http://blog.ingeniumdesign.de/
------------------------------------------
Ramon Berndt schrieb:
> *alternatingLayouts:*
>
> Indicates how many alternating designs the news-script should expect in the
> html-template.
>
> Example:
>
> If you define a subpart like: "<!--###NEWS###--> ... <!--###NEWS###-->"this
> is used all the time.
>
> If you define a similar subpart:
>
> "<!--###NEWS_1###--> ... <!--###NEWS_1###-->"
>
> which might show another set of colors, this is used every second time
> instead of the default! This is because "alternateLayouts" is set to 2.
>
> If you define a similar subpart
>
> "<!--###NEWS_2###--> ... <!--###NEWS_2###-->" ...
>
> this will be used* every third time IF (!) "alternateLayouts" is set to 3*.
> If you do not set it to 3, the first two aternating designs will be used
> only.
>
>
> Wie du oben lesen kannst, wird mit der Option alternatingLayouts automatisch
> abwechselnd eine anderes Layout genommen. Willst du bestimmten News ein
> bestimmtes Layout verpassen, muss du News-Kategorien anlegen. Dann vergibst
> du z.B. einer News die Kategorie "rot". Im Template schreibst du dann:
>
> <div class="###NEWS_CATEGORY### news-list-container> ............. </div>
>
> Jetzt kannst du über css (.rot .news-list-header {definition}) z.B. die
> Überschrift kofigurieren.
>
>
>
> Am 17. Februar 2009 01:45 schrieb Basti <sebastian.schmal at gmx.de>:
>
>> Hallo und Danke für eure Antworten!
>>
>> so ganz verstehe ich das nun nicht: alternatingLayouts
>>
>> wie kann ich denn nun der einzelnen news sagen welche layout sie nehmen
>> soll?
>>
>> Grüße, Basti
>>
>> ------------------------------------------
>>
>> TYPO3 - TIPS - ANLEITUNGEN - NEWS - TYPO3
>>
>> unter: http://blog.ingeniumdesign.de/
>>
>> ------------------------------------------
>>
>> Steffen Gebert schrieb:
>>> Basti wrote:
>>>> wie könnte ich z.b. 5 verschiedene news in 5 verschiedenen layouts
>>>> anzeigen. aber aus einem tt_news plugin ( ausgabe )
>>>>
>>>> am besten wäre beim newsanlegen eine auswahl von 5 ca.
>> templates/layouts!
>>> Hi Basti,
>>>
>>> schau mal die Option alternatingLayouts [1] an.
>>>
>>> Steffen
>>>
>>> [1] http://typo3.org/documentation/document-library/extension-
>>> manuals/tt_news/2.5.2/view/1/7/
>>>
>> _______________________________________________
>> TYPO3-german mailing list
>> TYPO3-german at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german
>>
More information about the TYPO3-german
mailing list