Jump to content

Override form.tpl for specific AdminController


ezzYY

Recommended Posts

Hello

 

I have a controller called "AdminFieldController". For this Controller I want to extend the form.tpl.

 

So I created a form.tpl in mymodule/views/templates/admin/field/helpers/form with the following content:

{extends file="helpers/form/form.tpl"}

{block name="after"}
    <p>testetstetstest</p>
{/block}

But my test string didnt't appear on the end of the form. What I am doing wrong?

  • Sad 1
Link to comment
Share on other sites

  • 2 years later...
On 21/09/2015 at 1:05 PM, ezzYY said:

Hello

 

I have a controller called "AdminFieldController". For this Controller I want to extend the form.tpl.

 

So I created a form.tpl in mymodule/views/templates/admin/field/helpers/form with the following content:


{extends file="helpers/form/form.tpl"}

{block name="after"}
    <p>testetstetstest</p>
{/block}

But my test string didnt't appear on the end of the form. What I am doing wrong?

I have the exact same problem but with "list" instead of "form"...please some one could help me !

/modules/bundlemanager/controllers/admin/AdminBundleManagerKeys.php

/modules/bundlemanager/views/templates/admin/bundle_manager_keys/helpers/list/list.tpl

Edited by ManuStrozor
forgot paths (see edit history)
Link to comment
Share on other sites

I tried:

.../_configure/helpers/list/list.tpl

.../bundle_manager_keys/helpers/list/list.tpl

.../bundle_manager_keys_field/helpers/list/list.tpl (not sure _field is a good solution but i tried)

.../bundle_manager_keys_configure/helpers/list/list.tpl

none of these solutions worked with me, i did'nt see anything in my list page controlled by AdminBundleManagerKeysController (AdminBundleManagerKeys.php)

Edited by ManuStrozor
more precision (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...