How to create Package with autonav templates only?
Permalink
is it possible to create a package that will only add multiple /autonav/templates.
I have created many custom templates for autonav but I'm not sure about how to install only autonav templates in a PACKAGE format.
I want to do that this way so anyone could install or uninstall multiple autonav template in "Add Functionality Dashboard."
Any help is appreciated.
Thanks :)
I have created many custom templates for autonav but I'm not sure about how to install only autonav templates in a PACKAGE format.
I want to do that this way so anyone could install or uninstall multiple autonav template in "Add Functionality Dashboard."
Any help is appreciated.
Thanks :)
http://www.concrete5.org/help/building_with_concrete5/developers/pa...
However, if a custom template is all you want to provide in your package, even multiple custom templates, then you don't need to specify an install() method in your package's controller.php file. Instead, just create the templates in the filesystem, under your package's blocks/block_name/templates/ directory.
For example, we have a package which provides two custom templates for existing blocks. This is what that package looks like in the filesystem:
packages/ticker/
packages/ticker/controller.php
packages/ticker/blocks/page_list/templates/ticker/view.php
packages/ticker/blocks/rss_displayer/templates/ticker/view.php
Then these custom templates should show up when the package is installed, in the custom template dropdown for these two blocks.