Sunday, 26 July 2015
  7 Replies
  2.6K Visits
0
Votes
Undo
Hello

Many thanks for letting us have this module for free!

Unfortunately I am having some issues with the custom layouts and templates.

First of all I notice that when I load my custom layouts the main field area does not load the text editor, and when I click on the select box to add a field nothing happens. Seems like it could be related to javascript?

Also I would like a simple block of upcoming events on my homepage, so I went to create a module using the Latest News. This works, however the code uses a table. It's 2015! I don't want tables in my html code. What I would like is a UL list. It should be feasible to do this, however the templating/layout within JEvents seems quite complicated and it doesn't seem obvious how I would be able to create a new custom template.

I've tried within the Custom Layouts by creating a custom List Row and named the Custom Module Identifier "T1". When I try to use this ID in the module settings nothing happens. No events are loaded. Maybe it could be related to the first problem above?

Anyway I'd appreciate any pointers as to what may be happening. Thanks!


PHP Version : 5.6.11
MySQL Version : 5.5.44-37.3-log
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : Yes
Load JEvents Bootstrap JS? : Yes
Max Input Vars ? : 1000
Club code set? : No
Joomla : 3.4.3
component_com_jevents : 3.2.19
component_com_sh404sef : 4.5.0.2655
component_com_jce : 2.3.4.4
module_mod_jevents_cal : 3.2.19
module_mod_jevents_custom : 3.2.19
module_mod_jevents_filter : 3.2.19
module_mod_jevents_latest : 3.2.19
module_mod_jevents_legend : 3.2.19
module_mod_jevents_switchview : 3.2.19
plugin_content_jevents : 3.2.19
plugin_finder_jevents : 3.2.19
plugin_search_eventsearch : 3.2.19
Monday, 27 July 2015 08:20
·
#152897
0
Votes
Undo
You can create a template override of your latest events output to remove any HTML tables or use the club layouts which don't use tables.

For your custom module - please note that this will only appear on the appropriate JEvents component page. It is designed as a mechanism to show part of the component output in a module position.

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!

Monday, 27 July 2015 12:59
·
#152898
0
Votes
Undo
Hi geraint

Many thanks for replying. Unfortunately I don't see how I can create a template override for the latest events output. I can't find a file to edit.

If it's in the custom layout section then I don't see the table HTML markup anywhere to edit.

I think I am having problems with the custom layout section as mention in my first post. What I see is not at all like the tutorial video I have watched.
Monday, 27 July 2015 13:30
·
#152899
0
Votes
Undo

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, 03 August 2015 21:39
·
#152900
0
Votes
Undo
Hi, I'm really sorry, but I simply cannot make this work.

I have tried the module override explained on that page, but it does not work. I am unable to override the default geraint layout. I must say it is not exactly clear what goes after this line of code:

 return parent::displayLatestEvents();


I tried to use code from the default geraint latest.php file, but just can't make it work.

I see the big link on that page to show me how to use the 'Custom Layouts' tool, which explains things very well. Unfortunately on my Jevents install this simply does not work. The custom layout field just does not load the text editor and I am unable any of the fields from the drop down list.

Any help will be gratefully received!
Tuesday, 04 August 2015 00:54
·
#152901
0
Votes
Undo
Hello,

Template overrides in JEvents are very simple just like the Joomla! Overrides. So you want to customise the latest events module? simple:

Copy:

/modules/mod_jevents_latest/tmpl/your_jevents_view/latest.php

to:

/templates/your_template/html/mod_jevents_latest/your_jevents_view/latest.php

At the top of the file (In this case the flat/latest.php) you will see:


class FlatModLatestView extends DefaultModLatestView


change it to:


class OverrideFlatModLatestView extends DefaultModLatestView


And then edit the file as you desire.

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!

Tuesday, 04 August 2015 08:36
·
#152902
0
Votes
Undo
Hi Tony

That's perfect, it works! Thank you very much.

Just in case anyone else is having similar problems, the instructions here are slightly different than the FAQ page. You only need that single line of code from the post above:

class OverrideFlatModLatestView extends DefaultModLatestView


remembering to change 'FlatMod' in the first part to the layout name you are overriding, e.g. GeraintMod, Extmod etc.

You should only need to take out the <table> markup in the latest.php file and replace it with whatever you require, in this case I wanted a <ul>. This will change the wrapper HTML, and you can then change the field display in the Module configuration in the Custom Format String field, where you can include HTML code to wrap fields if needed.

Hope this helps someone.
Tuesday, 04 August 2015 08:46
·
#152903
0
Votes
Undo
You are most welcome :-) I'll update the document to be more current.

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.