By justinlyon on Thursday, 08 December 2016
Replies 2
Likes 0
Views 2K
Votes 0
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?
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
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
7 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post