Jump to content

Custom form template within AdminModule


ezzYY

Recommended Posts

Hello

 

I would like to insert a custom template within the renderForm function of a AdminModule. Because the form heIper is not flexible enough for me. Need to add onClick methods, hidden fields etc. I already tried the following:

public function renderForm() {
    return $this->context->smarty->fetch(dirname(__FILE__) . '/../../templates/forms/field.tpl');
}

But I only get an blank page. Any suggestions?

Edited by ezzYY (see edit history)
Link to comment
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
×
×
  • Create New...