I am using the Smart Admin Theme Ajax version in a project, and I cannot figure out how template data gets added to the theme.
- There is a main index view and
- Page sections stored inside the ajax folder of the theme
When I click on menu link, it just loads the section in to the div#content
which is the main body. The application has different roles and each one has access to different resources. I would like to do the same with the menu items. If a user is in role X, then certain menu items are either included or excluded.
My Question's:
How would i go about achieving this?
How do I template data using JavaScript?
(Are there libraries which will make this easier and does Smart admin already ship with a feature that will help me template the data?)