Forums / Extensions / Latest products added-extension?

Latest products added-extension?

Author Message

Vidar G

Monday 31 January 2011 1:56:30 am

Hello,

I'm coming from the Joomla/VirtueMart world and there it is very easy to display the latest products added to the shop, on the frontpage.

Does an extension like this exists for eZ? I've browsed and searched, but to no avail.

Karol Radziuk

Monday 31 January 2011 2:47:53 am

Hi

You can use fetch function in template:

fetch( 'content', 'list',
 hash( 'parent_node_id',          --- parent_node_id ---,
     'sort_by',                     array('published', false()),
     'limit',                       1,
     'class_filter_type',           'include',
     'class_filter_array',          array('product') ) )

{$me|attribute(show,1)}

Vidar G

Wednesday 02 February 2011 1:17:39 am

Thanks for the reply,

Can you please elaborate a bit?

All I can see is that a list of child objects are created from a parent. Or something like that.