[TYPO3-mvc] own widget.paginate and f.widget.paginate throws error
Johannes C. Schulz - EnzephaloN IT-Solutions
info at enzephalon.de
Fri Jun 17 16:34:09 CEST 2011
Hi Franz
I do not really understand what you mean... I think my variables / object is
simple as it can be.
Here is my Template:
{namespace enzteaserlist=Tx_EnzTeaserlist_ViewHelpers}
<f:layout name="default" />
<f:section name="main">
<f:flashMessages />
<enzteaserlist:widget.paginate objects="teaseritems" as="teasers"
configuration="{itemsPerPage:itemsperpage, insertAbove:0, insertBelow:1}">
<table>
<f:for each="{teasers}" as="titem">
<tr>
<td class="tx_enzteaserlist_col1">
<f:if condition="{titem.teaserimage} != ">
<f:if condition="{titem.linkdetail} == ">
<f:then>
<f:link.action action="showitem"
arguments="{teaseritem:titem.uid}" pageUid="{pageuid}">
<f:image
src="uploads/tx_enzteaserlist/images/{titem.teaserimage}"
alt="{titem.title}" width="120c" height="120c"></f:image>
</f:link.action>
</f:then>
<f:else>
<f:link.page pageUid="{titem.linkdetail}">
<f:image
src="uploads/tx_enzteaserlist/images/{titem.teaserimage}"
alt="{titem.title}" width="120c" height="120c"></f:image>
</f:link.page>
</f:else>
</f:if>
</f:if>
</td>
<td class="tx_enzteaserlist_col2">
<f:if condition="{titem.subtitle != ">
<div
class="tx_enzteaserlist_subtitle">{titem.subtitle}</div>
</f:if>
<div class="tx_enzteaserlist_title">
<f:if condition="{titem.linkdetail} == ">
<f:then>
<f:link.action action="showitem"
arguments="{teaseritem:titem.uid}"
pageUid="{pageuid}">{titem.title}</f:link.action>
</f:then>
<f:else>
<f:link.page
pageUid="{titem.linkdetail}">{titem.title}</f:link.page>
</f:else>
</f:if>
</div>
<div
class="tx_enzteaserlist_description">{titem.shortdescription}</div>
</td>
<td class="tx_enzteaserlist_col3">
<ul class="tx_enzteaserlist_addinfo">
<li>{titem.addinfo1}</li>
<li>{titem.addinfo2}</li>
<li>{titem.addinfo3}</li>
</ul>
<ul class="tx_enzteaserlist_addinfo">
<li>{titem.addinfotext}</li>
</ul>
<f:if condition="{titem.price}!=0.00">
<div class="tx_enzteaserlist_price">
{titem.price}
{titem.pricedescription}
</div>
</f:if>
<div class="tx_enzteaserlist_button">
<f:if condition=" {titem.linkdetail} !=">
<f:then>
<f:link.page pageUid="{titem.linkdetail}"><img
src="img/button_detail.png" border="0"></f:link.page>
</f:then>
<f:else>
<f:link.action action="showitem"
arguments="{teaseritem : titem}" pageUid="{pageuid}"><img
src="img/button_detail.png" border="0"></f:link.action>
</f:else>
</f:if>
<f:if condition="{titem.linkbooking} !=">
<f:then>
<f:if condition="{titem.linkbooking} <=
10000">
<f:then>
<f:link.page
pageUid="{titem.linkbooking}"><img src="img/button_booking.png"
border="0"></f:link.page>
</f:then>
<f:else>
<f:link.external
uri="{titem.linkbooking}" target="_blank"><img src="img/button_booking.png"
border="0"></f:link.external>
</f:else>
</f:if>
</f:then>
</f:if>
</div>
</td>
</tr>
</f:for>
</table>
</enzteaserlist:widget.paginate>
</f:section>
Hope this will help to explain my problem...
BUT: If I try to make print_r($query); my apache hang up... Maybe there's
something wrong with the repository?
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Franz Koch
Gesendet: Freitag, 17. Juni 2011 15:08
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: Re: [TYPO3-mvc] own widget.paginate and f.widget.paginate throws
error
Hey,
> Thanks!
> I replaced it, but error is still there :-(
have you checked the things Clause mentioned? How does your template
look like? Have you checked if you can iterate over the assigned
variable with the query result? Maybe you already have a typo on
assigning the variable.
--
kind regards,
Franz Koch
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list