help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
Making new template views
Making new template views
9 years 10 months ago
Hi!
Not sure what is the exact name, but I was thinking to have alternative views for some of the components/modules. Those are currently into tmpl and named default.php. I would like to know how to use a new one, where to call it and whether it can be selected for Joomla! back-end or still somewhere in the code?
Thanks a lot.
Fred
Not sure what is the exact name, but I was thinking to have alternative views for some of the components/modules. Those are currently into tmpl and named default.php. I would like to know how to use a new one, where to call it and whether it can be selected for Joomla! back-end or still somewhere in the code?
Thanks a lot.
Fred
Please Log in or Create an account to join the conversation.
Re: Making new template views
9 years 10 months ago
Hi,
best is you start with a template override. How to create that you can find, but quickly said:
copy a wished default.php from the com_jem/views/e.g. eventslist/tmp folder to your template/html/views/e.g. eventslist/
then you can start to change the view of your e.g. eventslist.
It depends of your experience. If you get a view you like to share with others, please post it.
The second are css files in media/com_jem/ .
You can copy/paste and rename it and link in the settings to this new one. Now you can change with trial and error.
A big help would be in firefox the firebug add-on.
That's my way.
best is you start with a template override. How to create that you can find, but quickly said:
copy a wished default.php from the com_jem/views/e.g. eventslist/tmp folder to your template/html/views/e.g. eventslist/
then you can start to change the view of your e.g. eventslist.
It depends of your experience. If you get a view you like to share with others, please post it.
The second are css files in media/com_jem/ .
You can copy/paste and rename it and link in the settings to this new one. Now you can change with trial and error.
A big help would be in firefox the firebug add-on.
That's my way.
Please Log in or Create an account to join the conversation.
Re: Making new template views
9 years 10 months ago - 9 years 10 months ago
think Bfred is talking about the "Template style" option of a menu-item but never used it so not sure..
About the modules: it's possible to add a form field called "Modulelayout" and when that's added it will be possible to select in a dropdown in the module-settings the needed template.. did do it recently so yep do know a bit about that but can't post the complete code.
About the modules: it's possible to add a form field called "Modulelayout" and when that's added it will be possible to select in a dropdown in the module-settings the needed template.. did do it recently so yep do know a bit about that but can't post the complete code.
Last edit: 9 years 10 months ago by Bluefox.
Please Log in or Create an account to join the conversation.
Re: Making new template views
9 years 10 months ago
and yes if you made some views then you're welcome to share.
and if you have feedback then your welcome to let it know.
and if you have feedback then your welcome to let it know.
Please Log in or Create an account to join the conversation.
Re: Making new template views
9 years 10 months ago
Currently template overrides are supported (and should also work for modules). Alternative layouts are not supported yet (in JEM 2.x).
btw: In Jojo's post is a little typo, target path should be "your template/html/com_jem/e.g. eventslist/".
btw: In Jojo's post is a little typo, target path should be "your template/html/com_jem/e.g. eventslist/".
Please Log in or Create an account to join the conversation.
Re: Making new template views
9 years 10 months ago
Thank you guys! That is exactly what I was looking for. I guess I will use the template overrides if I go this path, and sharing my work shouldn't be a problem.
Please Log in or Create an account to join the conversation.
Time to create page: 0.398 seconds