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.

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.

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


1357 Views

Avatar
cobiashi

Community Member, 5 Posts

29 May 2008 at 4:22pm

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

requirements:
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?

Thanks!