Page 1 of 1
ListIt2 and module_custom
Posted: Thu Jun 26, 2014 11:43 pm
by psy
Been trying to create a customised admin template for a ListIt2 instance but cannot get it to work. Folder structure is:
module_custom
- ListIt2
--framework
---templates
then my altered itemtab.tpl
Does LI2 support module_custom and if so, what should I be doing differently?
Re: ListIt2 and module_custom
Posted: Fri Jun 27, 2014 3:23 am
by chandra
Think default path is /module_custom/ListIt2/templates. Have you tried that?
Re: ListIt2 and module_custom
Posted: Fri Jun 27, 2014 3:57 am
by psy
Thanks but that's the path to the ListIt2 module itself, not a custom instance.
I need to change the custom ListIt2 instance itemtab.tpl which is in the framework templates directory.
The changes can apply to all ListIt2 instances on the site. The template has to display data from another module for field types FEUDropDown and XLink, instead of simply the associated id when they're specified to show in the Item tab list.
That bit I've figured out how to do but I do not want to change the original itemtab.tpl file.
Re: ListIt2 and module_custom
Posted: Fri Jun 27, 2014 5:02 am
by chandra
The path with framework inside is not supported by module_custom.
Have you tried /module_custom/ListIt2Instance_name/templates?
Re: ListIt2 and module_custom
Posted: Fri Jun 27, 2014 5:54 am
by uniqu3
module_custom is supported, like chandra explained "module_custom/ListIt2Whatever/templates/" or directly in instance module folder "modules/ListIt2Whatever/templates".
Re: ListIt2 and module_custom
Posted: Fri Jun 27, 2014 6:00 am
by psy
Thanks Chandra and Uniq3
