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.

Form Questions /

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

Template for $LoginForm only


Go to End


2 Posts   4975 Views

Avatar
grilldan

Community Member, 135 Posts

6 September 2009 at 5:05pm

Edited: 06/09/2009 5:06pm

What I need is a way to customize the form template when $LoginForm is called, but leave all other forms alone.

In logic, I want to be able to do something like this:

if form
...if loginform
......show 1
...else
......show 2
...end if
end if

In the Form.ss, it usually calls "$FieldHolder", I need it to call "$Field", but only when the $LoginForm is used.

Any suggestions?

Avatar
Heike-san

Community Member, 52 Posts

1 April 2010 at 3:23am

Have you found a work around your issue,, cause I think that I am having the same problem at the moment!