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

Pagetype and datatype


Go to End


2 Posts   1402 Views

Avatar
erwanpia

Community Member, 63 Posts

2 September 2008 at 9:22pm

Hi, is it possible in silverstripe to create a specific data type with specific fields AND let it choose the template ? the way I do it currently is by extending the Page and PageController and associationg with ss files but I would like to create page and pagecontroller that can choose their template ?

Avatar
Sean

Forum Moderator, 922 Posts

2 September 2008 at 9:37pm

If you extend Page you can use a specific template for that extension to it.

For example, MyCustomPage extends Page.

If you define MyCustomPage.ss then it will use that template.