Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Howto Override: eventslist-view 8 years 1 month ago #16652

  • Bluefox
  • Bluefox's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 4523
  • Thank you received: 493
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
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...
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Bluefox.

Howto Override: eventslist-view 8 years 1 month ago #16654

  • Bluefox
  • Bluefox's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 4523
  • Thank you received: 493
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
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Bluefox.

Howto Override: eventslist-view 8 years 1 month ago #16661

  • jojo12
  • jojo12's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 3535
  • Thank you received: 400
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.

Howto Override: eventslist-view 8 years 1 month ago #16664

  • Hoffi
  • Hoffi's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 2279
  • Thank you received: 449
What's about updates? Does the template manager supports merging? This would be a dream! :woohoo: :kiss:
Pessimists are optimists with experience!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.487 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......