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 :)

olacom
 
andrew replied on at Permalink Best Answer Reply
andrew
Create a package as you would normally do. You can find some information on that here:

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.
olacom replied on at Permalink Reply
olacom
Thanks alot! :-D

Can I submit auto-nav and page_list templates package in the marketplace ? Just curious.

Cheers,
Carl