help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
Howto Override: eventslist-view
Howto Override: eventslist-view
9 years 11 months ago - 9 years 11 months ago
Did do a search but seems we didn't post any information about how to use overrides in general. There is a topic about css but you know whe should definately cleanup things here or make info more visible.
as the topic is mentioning will try to give some information about using overrides for the eventslist and will keep it basic (html-part).
First of all: read this Joomla article
it will give you insight in how overrides are used and will make it better to understand how the following works.
at default the eventslist view looks like img1, you can modiy the css but if you to complete alter the view it will be possible by using an override and make that file to look like you want.
copy: components/com_jem/views/eventslist/tmpl/default_events_table.php
and copy it to: templates/protostar/html/com_jem/eventslist/default_events_table.php
to check if the file in the template directory is really overriding the "original" file located in the component folder you could edit the file and check it out.
for example you can add
and when viewing the file you'll see it will output the info, see img2.
//
editing files can be done by a text editor like notepad+/wordpad/notepad etc....
locations for
- event-view will be: templates/protostar/html/com_jem/event/
- module-basic: templates/protostar/html/mod_jem/
etc...
as the topic is mentioning will try to give some information about using overrides for the eventslist and will keep it basic (html-part).
First of all: read this Joomla article
it will give you insight in how overrides are used and will make it better to understand how the following works.
at default the eventslist view looks like img1, you can modiy the css but if you to complete alter the view it will be possible by using an override and make that file to look like you want.
copy: components/com_jem/views/eventslist/tmpl/default_events_table.php
and copy it to: templates/protostar/html/com_jem/eventslist/default_events_table.php
to check if the file in the template directory is really overriding the "original" file located in the component folder you could edit the file and check it out.
for example you can add
Code:
echo 'foobar';
and when viewing the file you'll see it will output the info, see img2.
//
editing files can be done by a text editor like notepad+/wordpad/notepad etc....
locations for
- event-view will be: templates/protostar/html/com_jem/event/
- module-basic: templates/protostar/html/mod_jem/
etc...
Last edit: 9 years 11 months ago by Bluefox.
Please Log in or Create an account to join the conversation.
Re: Howto Override: eventslist-view
9 years 11 months ago - 9 years 11 months ago
hmm,
didn't knew it but according to this Joomla article and this one it's "relative easy" to create overrides by using the template manager (Joomla 3) so would say to definately try it out.
tried it out and yep it's a nice way to create and make overrides..
- go to template manager
- tick com_jem, select the eventslist view
a green message will appear if the fiels could be copied..
- all available files for that view have then be copied to the templates directory
- and those files, located in the template directory, can then be edited by using the template manager
didn't knew it but according to this Joomla article and this one it's "relative easy" to create overrides by using the template manager (Joomla 3) so would say to definately try it out.
tried it out and yep it's a nice way to create and make overrides..
- go to template manager
- tick com_jem, select the eventslist view
a green message will appear if the fiels could be copied..
- all available files for that view have then be copied to the templates directory
- and those files, located in the template directory, can then be edited by using the template manager
Last edit: 9 years 11 months ago by Bluefox.
Please Log in or Create an account to join the conversation.
Re: Howto Override: eventslist-view
9 years 11 months ago
Wow! Thanks a lot, Bluefox! That makes creating overrides much easier than it was before!
Please Log in or Create an account to join the conversation.
Re: Howto Override: eventslist-view
9 years 11 months ago
What's about updates? Does the template manager supports merging? This would be a dream! :woohoo: :kiss:
Please Log in or Create an account to join the conversation.
Time to create page: 0.557 seconds