Tuesday 15 January 2008 8:16:39 am
<b>Problem</b> I'm building a news site and each author is getting it's own profile page. On this profile page I want to list the latest articles the author has written.
<b>Description</b> I'm migrating a lot of old content so the creator of the content node is not necessarily the same as the actual author. The standard "Article" class has a "author" property using the "ezauthor" datatype where I can store both name and email of one or more authors. I want to use this content to match against the list of users on the system. My current try (using content fetch tree with attribute filter):
{def $news_parent_id = ezini('News', 'ParentID', 'client.ini')}
{def $news = fetch('content', 'tree',
hash( 'parent_node_id', $news_parent_id,
'attribute_filter', array(array($node.data_map.user_account.content.email, 'in', 'article/author/email'))
))}
Obviously this does not work. Any ideas?
I've scanned through http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/list with no luck. Maybe I'm missing something...
|