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.

All other Modules /

Discuss all other Modules here.

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

styling individual fields in userforms


Go to End


2 Posts   961 Views

Avatar
EricJ

Community Member, 1 Post

16 June 2016 at 12:59pm

Here is my dilemma. I'm fairly new to the SS platform and I need to go about changing the template files for the output of all created userforms. Our client is not savvy adding extra classes via the CMS and I don't want them to need to know what class to apply to a checkbox or a textfield. These need to be generated at the template level. I know that userforms defaults to page.ss and I can create a UserDefinedForm.ss to override page.ss. How about each individually generated form field? Thanks!

Avatar
martimiz

Forum Moderator, 1391 Posts

26 June 2016 at 11:35pm

try putting them in your theme directory - that should overrule the ones in the module I think. Be sure to keep the same directory structure though, and don't forget to flush :)