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.

Template Questions /

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

Customizing third party plugin template


Go to End


2 Posts   1370 Views

Avatar
iroy2000

Community Member, 15 Posts

24 November 2010 at 12:17pm

Hi all,

I'm new to SilverStripe.

I have download a plugin, but I want to customize its template. Instead of going into the plugin template to change the file directly, what should I do, and what is the recommended way?

Thanks a lot.

Avatar
Willr

Forum Moderator, 5523 Posts

24 November 2010 at 4:39pm

You can make your own template / css file in your own theme or create a sub theme (http://doc.silverstripe.org/themes:developing#subthemes). For example if you want to theme the forum template (Forum.ss) you can either

* Copy the default Forum.ss from the module (forum/templates/Layout/Forum.ss) to your own themes layout folder (themes/yourtheme/templates/Layout/Forum.ss)

* Or, to keep your templates organized you can make a subtheme (themes/yourtheme_forum) which contains the Forum.ss file (themes/yourtheme_forum/templates/Layout/Forum.ss)