21309 Posts in 5738 Topics by 2603 members
Page: 1 2
|Go to End|
15 March 2011 at 7:00am
I would try and use the default DataObjectManager instead, as that will correctly define a direct relation between an individual Page and its DataObjects.
Hope that helps
15 March 2011 at 7:03am
OK - just saw your latest post fly in If the correct PageID is set in the DataObject, then how are you retrieving your dataobjects for your Page in the frontend?
15 March 2011 at 8:45am
Not entirely sure. It's only showing the one, as I've not added new items yet. I think it may be because I haven't added any items for that particular page (or I'm hoping). Still, even if that side really works, I'm still getting ALL dataobjects in the admin. The items now have checkboxes, so I can choose what to include on the current page, but what I really want is to not see those items created in the other page at all. Do you think that's possible by filtering somehow in the getCMSPopup function?
15 March 2011 at 11:50am Last edited: 15 March 2011 11:51am
Still not absolutely clear about what you're asking. Is your question really about the way the dataobjects are shared among pages within the cms? In that case: did you try using the regular DataObjectManager instead of the hasmany variant? Cause the regular one will display only those DataObjects that belong to your page as I guess you want...
if its about the way they are displayed on your website, The answer most likely lies in the way your template is set up, but you didn't respond to that so I figure that's not the problem?
15 March 2011 at 12:28pm
Yes I mean CMS.
I tried changing it, but the same still held (albeit with a different look and feel). The objects need a HTML editor in the popup, so I really need the DataObjectManager module for these.
15 March 2011 at 10:34pm
I still think (in fact I'm sure) the problem lies in your (initial) use of the HasManyDataObjectManager. The following will indeed give you the same look and feel, but will limit the display of DataObjects to the page they belong to:
$contentTablefield = new DataObjectManager(
'Title' => 'Title',
'Group' => 'Group Name',
'Content' => 'Content'
Page: 1 2
|Go to Top|