Friday 24 September 2004 6:04:23 am
Nico, thanks for your reply. I've just tried what you suggested but no luck.
When I put, as you suggested (node 91 is a folder which contains all the newsletter articles):
{let node=fetch( 'content', 'node', hash( 'node_id', 91 ) )}
<h2>{attribute_view_gui attribute=$node.object.data_map.title}</h2>
<br />
it gives me nothing. :-( I slightly modified the code above into:
{let article_list = fetch( 'content', 'list', hash( 'parent_node_id', 91 ) ) }
{section var=article loop=$article_list}
<h2>{attribute_view_gui attribute=$article.object.data_map.title}</h2>
{/section}
{/let}
and that gives me the list of article titles. To be honest, I don't know why the first example won't work - still a lot to learn about eZpublish.
Does $node.object.data_map.title which you suggested refer to a title of every single article, or that's the title of the folder containing articles?
Anyway, all the examples above were done as admin, i.e. no viewing restrictions.
If I try to do it as a guest, I see no article titles at all. All the articles
reside in newsletter folder/newsletter section which is visible only to
subscribers. So, I suppose the result (nothing) is expected as guests don't have viewing permissions of the articles. Am I wrong here?
I'm not completely sure what you have in mind. Should I have this structure
with newsletter folder/section and articles in it? Should it be restricted
only to privileged users (subscribers, admins, editors, but not to guests, anonymous users)? So, I'm still not there. :-(
Thanks in advance. Marko
|