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

Intro for templates


Go to End


3 Posts   3628 Views

Avatar
Stevan

Community Member, 3 Posts

20 October 2006 at 8:53am

Can I get more documentation on how to implement templates properly. So far i
managed to make a custom template (.ss file) and .php that extends SiteTree and
ContentController. Later i had to alter db to add this class properly to the sistem.
Is there a way to add this class to the DB via some action from Admin interface?

Avatar
Sam

Administrator, 690 Posts

20 October 2006 at 10:19am

Visit (site-root)/db/build and your database will be automatically updated. This is one of the key features of the system, sorry for not documenting it better! :)

I've added this page - http://doc.silverstripe.com/doku.php?id=db-build - and put a link to it from the getting started page.

Regarding templates, here's a fairly complete guide: http://doc.silverstripe.com/doku.php?id=templates

You'll also want to look at http://doc.silverstripe.com/doku.php?id=built-in-page-controls

Avatar
Nemus

Community Member, 20 Posts

20 October 2006 at 8:41pm

It's goot that this script exists...Maulaly changing stuff is not fun when adding more templates (well is not that hard either :))

I think it should be available somewhere in Admin interface...