This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal
Friday 15 March 2013 4:40:56 pm - 3 replies
Good evening guys,
today I started a new project, using EzPublish v2012.8 and a very strange thing happened.
I created two objects under node #2 (home), a folder and an article.
When I try to fetch the folder, everything is OK. But if I try to get the list of my articles (one or more...), nothing is fetched.
{def $menu_items=fetch('content','list', hash( 'parent_node_id', 2,
'class_filter_type', 'include',
'class_filter_array', array( 'article' ) ) )}
What's wrong?? I'm not so expert with EZPublis, this is my second project, but I believe to be able to get a simple fetch!
Any suggestions?
Thanks
Saturday 16 March 2013 9:09:12 pm
Quote from Farhan Syed :The code looks fine
I would test the following
1) clear cache
2) check the $menu_items values using {$menu_items|attribute(show,1)}
Cache cleared.
$menu_items is empty
No results even with different classes (events for example). only folders are fetched.
Monday 18 March 2013 11:44:27 am
To better explain my problem, I can add that if I try to execute this fetch
{def $n = fetch( 'content', 'node', hash( 'node_id', 59))} {$n|attribute(show)}
where 59 is the node ID of my article element, I receive NULL. It's just like articles and every other contents different from Folder, are not loaded by EzPublish.
I also tried with an older version, 2012.5, just to be sure that there were no bugs with that specific release.
I really need some help!
[EDIT]
I believe I've found the problem: there's some language issues.
If I try to fetch my articles by language, fetch works fine.
{def $menu_items=fetch('content','list', hash( 'parent_node_id', 2, 'class_filter_type', 'include', 'class_filter_array', array('article'),
'language','ita-IT' ) )}
{$menu_items|attribute(show)}
Modified on Monday 18 March 2013 12:40:22 pm by Simone Conti
You must be logged in to post messages in this topic!