Custom Article Sorting Menu Item

Author Message

Daniel Ferenc

Saturday 03 January 2009 9:12:21 am

Hi *!

I'm working on a recipe based site where I created a new content type (recipe) that is very similar to article but has some additional fields (food type, etc). I would like to sort the recipes by these properties by having a menu where a user can click ("chicken" for example) and the system lists all recipes containing the "chicken" property.

Can anyone point me to a good place in the documentation or provide some basic information on where to look and start working on this? I'm an experienced PHP coder but this is my first (but not last!) encounter with ez Publish and the whole code structure is very very new to me!

Thanks in advance,
V00D00

André R.

Saturday 03 January 2009 2:50:29 pm

Hi!

We setup a similar site a year a go, dinmat.no.
'Type', as in dinner/meat/chicken, is setup as placement*, to spread the recipes over several folders to make sure performance is not decreased as several thousands recipes are added over time.
And so that the site can use multiple node placement for recipes that goes into several category's.
For time use, as in 'made in 20 minutes', 'enhanced selection' extension is used(lets you rearrange selections later on). And for dinner Theme, like Christmas or single food, object relationlist is used with custom extended attribute filter(objectrealtionfilter extension) witch allows multiple selection.

* A subtree for the recipes is setup with a custom folder class called 'recipe folder' with a template that does a content tree fetch from the node your on and down. The input variables for the other filter types (time, theme, offset and a couple of others not is use currently) use view parameter (like '/(time)/ten'). And to keep template code as low as possible, all the fetch code with filtering is done by a template operator. And the code to determine what menus that are selected is done by another(only needed for object relations though, as they are multiple selction).

Example:
http://dinmat.no/Finn-oppskrifter/Oppskrifter/Middag/Kj%C3%B8tt/(tid)/ti/(tema)/178/177
As in (the numbers are for the object relations):
domain/find-recipes/recipes/dinner/meat/(time)/ten/(theme)/178/177

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.