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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Make rightTitle show up in Mollom field?


Go to End


3 Posts   1022 Views

Avatar
flipsidenz

Community Member, 49 Posts

6 September 2012 at 10:30pm

I can't seem to get the right title to show up on a Mollom field?

$protector = SpamProtectorManager::update_form($form, null, $fieldMap, null, 'Please enter the value from the image below');

Am I doing something wrong? I thought the fifth expected variable was for the right title? It doesn't appear when using this code.

Any help would be welcome

Avatar
Willr

Forum Moderator, 5523 Posts

7 September 2012 at 9:27pm

That is the correct code, though the mollom module does not add the rightTitle to the HTML (https://github.com/silverstripe/silverstripe-mollom/blob/master/code/MollomField.php#L33).

You could add a LiteralField to your form for your label or patch the module to add rightTitle support.

Avatar
flipsidenz

Community Member, 49 Posts

26 September 2012 at 6:57am

Thanks for this, appreciated.