I have had a lot of requests for the code examples from the original DOM tutorial. These have since been removed from the SVN channel because people were complaining, rightfully so, about all of the extra page types it was creating. For reference, the original code and templates are here:
<br >
<br >http://www.carlinowebdesign.com/assets/dataobjectmanager_examples.zip
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
DataObjectManager Module /
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
DataObjectManager Code Examples
and add this to ResourcePage.php to get it working:
class ResourcePage_Controller extends Page_Controller {
}
Thank you! I'll add that in.
Actually, I just had a look and it's already there. Am I missing something?
DataObjectManager Video/Audio Code Examples
http://www.carlinowebdesign.com/assets/DataObjectManager_media_examples.zip
Hi Uncle Cheese thanks for the great work done on Gallery and DataObjectManager. I am currently using both which are fine. I have a request. I am using the resourcepage example which is working fine. I have put catergories in CMS and want to split the PDF datasheets into these categories on the site itself. How would I go about doing this?
Steve
I've explained this a number of times. I think it definitely belongs in a sticky.
Try this..
MyResourceHolder_Controller extends Page_Controller
{
function category()
{
$resources = DataObject::get("MyResourceObject","Category='".$this->urlParams['ID']."'");
if($resources) {
return $this->customise(array(
'Resources' => $resources,
'CategoryTitle' => $this->urlParams['ID']
));
}
return false;
}
}
/my-resource-holder/category/foo
MyResourceHolder_category.ss
$CategoryTitle
<% control Resources %>
<% end_control %>
Thank you my good man. Will get this up and running in no time.