[opencms-dev] XML Content brief listing in four columns
Marius Oancea
mar1u50 at yahoo.ca
Tue Jun 14 11:34:42 CEST 2005
Hi,
First I want to tank you all for good hints added to the mailinglist
ad XML content.
I just created my own schema and i created a list.jsp to lists all
instances i find in a directory. I did that by using something like that:
<cms:contentload collector="allInFolder" param="/galeries/|101" editable="true">
<div class="element">
<h3><cms:contentshow element="product.title" /></h3>
<p>
<cms:contentshow element="product.title" /></br>
<cms:contentloop element="product.image"><img border="0" src="<cms:link><cms:contentshow /></cms:link>" /></br>
</cms:contentloop>
<cms:contentshow element="product.price" /></br>
<small>
<a href="<cms:link><cms:contentshow element="${opencms.filename}" /></cms:link>">read more...</a>
</small>
</p>
</div>
</cms:contentload>
All works like a charm.
I want to present the products in another way now. I want to present
them in a table with four columns like below:
prod 1
prod 2
prod 3
prod 4
prod 5
prod 6
prod 7
...
A pager will be also interesting.
Any ideea how to do that ?
Is that another way that to use the scriptlets instead of taglib to be
able to have a productcounter and to check if my counter is divisible
with 4 and if yes to add a "<tr>" .... and so on ?
Or there is a more elegant way ?
Can I use contentLoad / contentShow taglib anymore ?
Best Regards
Marius
--
Let your workings remain a mystery.
Just show people the results,
Lao-Tsu,Tao Te Ching
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050614/f54bd721/attachment.htm>
More information about the opencms-dev
mailing list