Joomla! 3 template AngularJS friendly. (But not Joomla!-templater-beginner friendly :D)
It’s just a first test af template for using AngularJS. It’s far form being clean but ... well it will be !
- display a unique main-menu, put your main-menu in the "data-loader" position
- display a search module, put your search module in the "data-loader" position
- display search results page
- display featured page
- display category as a blog page
- display single article page
- display contact page (info and form, the form is at the moment untested)
- Manage "mod_custom" module as a data loader.
At the moment all the rest works as Joomla! normal elements (use the positions)
- if you put the class 'quick' in your menu item, the text of the item won’t show up (ideal for icon only items)
Create a mod_custom module in the potition "data-loader". Name it "json_config". Disable the editor and enter some javascript data. example :
{"banner":"someurl", "logo":"someurl"}
This will generate :
<script>var json_config = {"banner":"someurl", "logo":"someurl"};</script>
Note that all the html tags will be removed. It’s cool to avoid editor auto correction, but in the other hand you can’t put some html in yout data set. (use markdown if needed :)
This exmaple allow the banner display of your site. But you can use th module to add everything you need.
If you want to add other custom modules to manage when the data are loaded for example, you create custom modules, the title is the variable name, the content is the value. Then you must add to your MainCtrl (js/app/controllers.js) something like :
if(typeof my_data_set !== 'undefined'){ $scope.whatever = my_data_set;}
It just generates raw and simple html structured page, it’s up to you ! (put your styles in site.less) I’ve put some greyscales colors + the main menu hidding to the left of the screen.
- js
- angularjs
- angular-sanitize (to disply html)
-
- an angular app starter (with app / empty controller / directives / filter)
- lodash
- momentjs
- jquery
- lpn-utils.js : string.latinize() and string.slug-it() to convert a accentuated string into something usable :)
- php
- lessphp from leafo.net
- less/css
- fontAwesome
- reset.less from alsacreation.fr if my memories are good.
- after-reset.less (a sort of personal bootstrap... very simple, but not perfect)
as always in Joomla! :
- Manage extensions > install from file (lpn-j3.zip)
- Make "lpn-j3" your default template
Basically it’s designed for Joomla!3, but I think it’s really easy to transpose to at least Joomla!2.5.