Monday, 08 February 2016
  5 Replies
  1K Visits
0
Votes
Undo
Hello,

I just installed JEvents to see if it fits my needs for a website I'm making. So far I like it a lot but there's ont thing I don't understand and that the overriding system. I want to override the the JEvents Latest module. I don't want it to display it as a "table" but as a "ul". After a bit of searching I found an article under FAQ (my account is not approved to post links?). However this only talk about how to make an override for one of the themes but I want to override the default one. In that article they say to change for example /mod_jevents_latest/geraint/latest.php
class GeraintModLatestView extends GeraintModLatestView 

to:
class OverrrideGeraintModLatestView extends GeraintModLatestView

So, for the default one I would expect that editing the /mod_jevents_latest/default/latest.php. However there is only
class DefaultModLatestView

I tried changing it to:
class OverrideDefaultModLatestView

When I edit something in this page it doesn't seem to change anything. Am I don't something wrong? Help would be really appreciated.

Gr, Thomas
Monday, 08 February 2016 14:47
·
#165002
0
Votes
Undo
Hello Thomas,

The problem is you are override the default theme which is a little more complex.

You would use the Geraint one for example, and set it to OverrideGeraintModLatestView

And it should be placed in:

/templates/your_template/html/mod_jevents_latest/geraint/

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Monday, 08 February 2016 15:29
·
#165003
0
Votes
Undo
Hi,

Thanks for the quick response!

Is there a way to override the default theme?

Gr, Thomas
Monday, 08 February 2016 19:40
·
#165004
0
Votes
Undo
Hello Thomas,

You can yes. Just copy the Geraint calendar.php and rename is as default where it says Geraint.

As the Default contains the majority of the code which we extend from for the other layouts.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Monday, 08 February 2016 23:24
·
#165005
0
Votes
Undo
Could you explain a bit more on how to override the default latest.php because I cannot seem to get it working. You're talking about thet Geraint calendar.php file but I cannot find that.

Thanks!
Tuesday, 09 February 2016 00:17
·
#165006
0
Votes
Undo
It's the same principle as most Joomla! overrides.

Copy:

/modules/mod_jevents_latest/tmpl/geraint/latest.php

to:

/templates/your_templates/html/mod_jevents_latest/default/latest.php

Edit latest.php

Change:

class GeraintModLatestView extends DefaultModLatestView

to:

class OverrideDefaultModLatestView extends DefaultModLatestView


And it should work.

Many thanks
TOny

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.