Tag Enabler
BY GIACOMO FURLAN
This Ionize module allows the website to render a theme's custom view for tags. For tags I mean the ones you set in the article's editor under Options -> Attributes -> Tags.
Ionize's <ion:tag:url /> points to [/LANG]/tag/[TAG_NAME], which will render the default view (home page). This module intercepts this route and shows the theme's view.
It's a very simple module with no backend, but it works, at least with the following tested tags (others may work as well):
- <ion:article>
- <ion:home_url />
- <ion:media>
- <ion:meta_title />
- <ion:navigation />
- <ion:tag>
- <ion:theme_url />
LICENCE
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
HOW TO USE THIS MODULE
- place the Tag_enabler folder in the Ionize's modules one.
- enable the module via the backend, being sure the URI is set to "tag" (should be as default).
- create a view called tag.php in your current theme and write it as a normal view.
TODO
Please feel free to fork this project in order to make it better.
- create a backend
- (backend) a cool icon <-- essential!
- (backend) page name (now it's hardcoded as Tag - [TAG_NAME])
- (backend) theme's custom view choice (instead of hardcoded tag.php)