Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

give a dataObject a template and url

Go to End



Community Member, 5 Posts

29 May 2008 at 4:22pm

I have a specialized sort of gallery that I need to work on.

gallery holders (page_type) can hold other gallery holders and can hold galleries
galleries can hold many pictures
pictures can be in many galleries (many to many)

Each Picture needs its own page as it has pricing information and background info, etc. However, for convenience sake and because each "picture" can belong in other "galleries", I find the datatype interface of a complextable a bit easier for both the client and I to understand.

Is there a way to assign a url to the datatype and have it be read by silverstripe, as well as assign a template to the datatype?