eZ Community » Forums » Setup & design » Objects relation problem
expandshrink

Objects relation problem

Objects relation problem

Thursday 07 March 2013 6:21:49 pm

Hello, my website is built with eZ publishI have many objects such as Projects and stones.- Stones contains types and each type contains a variety of stones.- Projects contains sections and each section contains projects listEach stone has a list of projects used this stone in template file.Same for projects, each project has a list of stones used in this project.All I wanna do is to add stones used to each project and I know that I can do this by making a relation between stones and projects. I already did that successfully.HOWEVER,Stones used in the project page never appear even 'projects use this stone' appear in the stone page.All the above steps were done by an expert in eZ publish. I wanted to add another object which is 'Homes' and it will be just like projects so I just created new content page that uses the same Projects template.Did the same thing with stone tagging. What confuses me that it appears with no problem.I hope I explained my problem correctly to allow you to understand it easily and I'm here for any further explanation.Code of the Stones used part in template: Stones Used {def $relatedStones = fetch( 'content', 'related_objects', hash( 'object_id', $image.contentobject_id, 'all_relations', true(), ))} {foreach $relatedStones as $stone} {attribute_view_gui attribute=$stone.data_map.image image_class=light-thumb} {/foreach} Sorry for the long question. I'm also very frustrated with the documentation of eZ publish so I'm very sorry if my solution is very simple but I really couldn't find it and i'm feeling very lost.Link of the website is: http://www.marmonil.comLink of Stones page: http://www.marmonil.com/index.php?/StonesLink of Projects page: http://www.marmonil.com/index.php?/ProjectsLink of Homes page: http://www.marmonil.com/index.php?/Homes

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from