Thursday, 08 December 2016
  2 Replies
  2K Visits
0
Votes
Undo
I'm looking at jEvents for displaying events, but I can't seem to figure out how to override the template for mod_jevents_latest to get rid of the default table structure and replace it with a more responsive DIV structure. I followed the instructions to copy the template files and start with:

class OverrideDefaultModLatestView extends DefaultModLatestView

Later in that file, I replaced the <table... tags with divs and got the basic structure to change, but getting into the nitty gritty seems impossible. It's not laid out simply like most other templates I've worked with. Instead of html and php, it seems that everything is done within the class file, which makes it super confusing to replace simple HTML elements. Any suggestions?
7 years ago
·
#180057
Accepted Answer
0
Votes
Undo
Thanks for the help. It was good to know I was kinda on the right track. I was able to put the changes to the overall structure (div tags) in the class file, as suggested, and then fill out the specific details of the event (date format, etc.) inside the module custom layout options. It was a little tricky, but I think it's working pretty well, now.

Thanks for the help.
7 years ago
·
#180057
Accepted Answer
0
Votes
Undo
Thanks for the help. It was good to know I was kinda on the right track. I was able to put the changes to the overall structure (div tags) in the class file, as suggested, and then fill out the specific details of the event (date format, etc.) inside the module custom layout options. It was a little tricky, but I think it's working pretty well, now.

Thanks for the help.
7 years ago
·
#179917
0
Votes
Undo
Hello,

Are you using the default layout? Where did you place it?

For example, if you are using the flat layout you would copy the file to:

/templates/your_template/html/mod_jevents_latest/flat/

Then the class would be:

class OverrrideFlatModLatestView extends FlatModLatestview

The default only applies to the default layout.

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.