Jump to content
Zeka

Inputimage field on a process module page

Recommended Posts

Hi.

Is it possile to use Inputimagefield on a process module page? 

$f = $this->wire('modules')->get('InputfieldImage');
$f->setAttribute('name', 'image');
$f->label = $this->_('Image');
$f->columnWidth = 75;
$markup->add($f);

This code renders field but it obviously doesn't work) I have read somewhere on the forum that this input type intended to work in the context of page edit, so it's not possible to use it on a module config page, but process page is actually a page, so I thought there is might be the way how to get it working.

Thanks, Eugene.

 

Share this post


Link to post
Share on other sites

This post by Ryan shows how you can do it. I've never done it on my own, so I'd be happy to see a step by step guide that I might add to my custom admin pages tutorial!

  • Like 4

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...