Jump to:

2002 Posts in 1422 Topics by 616 members

Form Questions

SilverStripe Forums » Form Questions » Hover image issue - ImageFormAction

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

Page: 1
Go to End
Author Topic: 580 Views
  • leafchild
    Avatar
    Community Member
    41 Posts

    Hover image issue - ImageFormAction Link to this post

    I am using

    ImageFormAction __construct( action $action, [title $title = ""], [image $image = ""], [hoverImage $hoverImage = null], [form $className = null], [ $form = null])
    (http://api.silverstripe.org/2.4/forms/actions/ImageFormAction.html#method__construct)

    Submit works fine, the submit image is displayed but NOT $hoverImage.
    Both submit and hover images are located at same directory.

    so code is like this:

    $actions = new FieldSet(
       new ImageFormAction('submit', 'Send', 'themes/test/images/contact_us/btn_send_normal.gif', 'themes/test/images/contact_us/btn_send_hover.gif')
    );

    How come hover image is not displayed properly??

    580 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.