Hi, I know how to make overrides with css. But in some cases I would like to adapt more, which needs changes in the views/tmpl/default.php, e.g.:
in Switzerland the addresses are like that:
I think, in other countries, there are other systems. So this change should be only for me or some swiss people.
how and where I put this alternated default.php?
on JEM 2.3.3 stable in latest Joomla (3.10.2) Protostar php7.4.15
Personally I use t4_B5 template with t4_system plugin framework with bootstrap 5 and fontawesome)
(I prefer free "Signal" or paid "Threema" instead of "Whatsapp".)
If you want to use a custom/override default.php it can be done by adding it in the template folder. Creating a custom-menu item won't work for the moment.
Let's say you want to alter the eventslist view, in that case you copy "default_events_table.php+default.php" to "templates/*current template*/html/com_jem/eventslist" and try it out. it will overrule the default one.
For this one you can look at the
post of Davod
. But before it can be used the view.html files need to be adapted, see
about the address-notation:
keep in mind that the ical-output or mailer plugin probably need to be adjusted too and for those the above is not usefull.
Note: At the moment not all models provide all data so using these common files in other views may not show all data as expected (e.g. event images in day view - see
@Bluefox: In the path you wrote the "/html" part is missing before "/com_jem".
@Jojo: This sounds like a feature request "make address output configurable (like date/time)".
Something like date/time format or meta data where user can freely place tokens and free text.
This could be used for multi-line output but also as one-liner where linefeed is replaced by a comma (or a configurable separator).
If you find JEM useful and if you use it on your site, please consider a donation to the project.
You are not logged in.
JEM and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.