[Neos] Show hideBefore Date and the first image in SecondLevelMenu

Patric Eckhart me at patric.at
Mon Nov 25 21:43:26 CET 2013


Hey,

I build my new website with TYPO3 Neos.

I will realize a "Teaser-Menu" an take the SecondLevelMenu from the Demo Package and modify it.
How i can read out the hideBefore Date (and divide it in day and month) and the first image from the target site?

Can anyone help me?

The Template Structure:
{namespace neos=TYPO3\Neos\ViewHelpers}

    
<f:render section="itemList" arguments="{items: items}" />

<f:section name="itemList">
	<f:if condition="{items}">
		<section id="grid">
		    <h1>Title</h1>
				<f:for each="{items}" as="item">
					<article>
                <div class="gridcontainer"><neos:link.node node="{item.node}">
                    <section class="titleimg">
                        <media:image image="{item.node.ContentCollection.Text}" class="img-responsive pull-left" alt="{item.node.properties.chapterImage.alternativeText}" title="{item.node.properties.chapterImage.title}" maximumWidth="{chapterImageWidth}" maximumHeight="{chapterImageHeight}" />
                    </section>
                    <section class="descr">
                        <span>{item.label} {item.node.properties.hiddenBeforeDateTime}</span>
                    </section>
                    <section class="date">
                        <span class="day">%d</span><span class="month">%b</span>
                    </section></neos:link.node>
                </div>
                    </article>
				</f:for>
		</section>
	</f:if>
</f:section>



More information about the Neos mailing list