Can I override helpers?
JEvents 2.0 was launched over 2 years ago and the latest stable version is version 2.2 which will run on Joomla 1.5 and Joomla 2.5. JEvents 1.5 is therefore no longer actively supported - you should upgrade to JEvents 2.2+ as soon as possible.
Forum rules
Please include as much detail in any test or bug reports for JEvents 1.5 as possible.
First of all, check if you are running the latest available version of Joomla! and JEvents. Posts for issues, where both systems are not updated, will be ignored.
We need the following at least:
* PHP version (e.g. 5.2.5). Note: Support for PHP4 is discontinued.
* Joomla! version
* JEvents version
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Database version
* memory_limit from your phpinfo
* Web browser and version
Please enable error reporting and include any error messages in your posting. You do this via the Joomla Configuration - set "error reporting" to "maximum" on the Server tab.
Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.
Please include as much detail in any test or bug reports for JEvents 1.5 as possible.
First of all, check if you are running the latest available version of Joomla! and JEvents. Posts for issues, where both systems are not updated, will be ignored.
We need the following at least:
* PHP version (e.g. 5.2.5). Note: Support for PHP4 is discontinued.
* Joomla! version
* JEvents version
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Database version
* memory_limit from your phpinfo
* Web browser and version
Please enable error reporting and include any error messages in your posting. You do this via the Joomla Configuration - set "error reporting" to "maximum" on the Server tab.
Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.
Can I override helpers?
by dbessinger » Mon Apr 13, 2009 5:42 pm
Each layout view has its own "helpers" directory. I'd like to modify the behavior of some of the helper functions, and would like to use overrides to do it. Is this possible? I've set up a helpers directory in my Joomla template's html directory, but it doesn't seem to work. Thanks!
- dbessinger
- Posts: 8
- Joined: Fri Apr 03, 2009 7:19 pm
Re: Can I override helpers?
by Geraint » Mon Apr 13, 2009 7:47 pm
Yes you can override templates. See viewtopic.php?f=17&t=1586&p=5300#p5300 for an example
Be careful about case sensitivity.
Geraint
Be careful about case sensitivity.
Geraint
------------
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!
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!
-

Geraint - Posts: 30507
- Joined: Fri Feb 15, 2008 6:14 pm
Re: Can I override helpers?
by dbessinger » Mon Apr 13, 2009 9:04 pm
There is another way of making this change - you could add a changed version of the helper defaultvieweventrownew.php in the folder /templates/{YOUR TEMPLATE}/html/com_jevents/helpers/
I tried this, but my changes don't show up in the event list. FYI, this is how I set it up:
- Code: Select all
/templates/[MY_TEMPLATE]/html/com_jevents/helpers/defaultvieweventrownew.php
I've also tried this:
- Code: Select all
/templates/[MY_TEMPLATE]/html/com_jevents/DefaultHelpers/defaultvieweventrownew.php
Either way, overriding a layout's helpers doesn't seem to work. Do you see anything that I've done incorrectly? Thanks!
- dbessinger
- Posts: 8
- Joined: Fri Apr 03, 2009 7:19 pm
Re: Can I override helpers?
by Geraint » Tue Apr 14, 2009 7:04 am
No - that is correct. I just tested it and it worked.
Make sure you have the latest build of JEvents and Joomla 1.5.10.
Geraint
p.s. you did change "[MY_TEMPLATE]" to ja_purity or whatever your template is didn't you?
Make sure you have the latest build of JEvents and Joomla 1.5.10.
Geraint
p.s. you did change "[MY_TEMPLATE]" to ja_purity or whatever your template is didn't you?
------------
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!
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!
-

Geraint - Posts: 30507
- Joined: Fri Feb 15, 2008 6:14 pm
Re: Can I override helpers?
by dbessinger » Tue Apr 14, 2009 2:24 pm
I upgraded to RC build 1413, and the helper override works as advertised. However, I saw that there is a note that, from 1409 forward, template override directories should be like this:
When I changed to this, JEvents stopped using the overrides. I changed them back to the way they were:
and everything works again. So, no problems, just check the note that's under the release link in the forum. Thanks for all the help!
- Code: Select all
templates/[my_template]/html/com_jevents/[layout]/[view]/
When I changed to this, JEvents stopped using the overrides. I changed them back to the way they were:
- Code: Select all
templates/[my_template]/html/com_jevents/[LayoutView]/
and everything works again. So, no problems, just check the note that's under the release link in the forum. Thanks for all the help!
- dbessinger
- Posts: 8
- Joined: Fri Apr 03, 2009 7:19 pm
Re: Can I override helpers?
by Geraint » Tue Apr 14, 2009 3:26 pm
My mistake I hadn't changed all the references to the "[LayoutView]" type paths
This will be changed for the next release.
Geraint
This will be changed for the next release.
Geraint
------------
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!
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!
-

Geraint - Posts: 30507
- Joined: Fri Feb 15, 2008 6:14 pm
Re: Can I override helpers?
by dgg » Mon Nov 15, 2010 4:06 pm
Has there been a change to how helpers are overridden since this thread?
I'm using the ext template, which uses the default template's helper file for the DefaultViewEventRowNew() function here:
/components/jevents/views/default/helpers/defaultvieweventrownew.php
(I've made edits to this file to confirm it is the one effecting the pages)
I can't seem to override it though, I've placed the overridden version in these locations:
/templates/<template>/html/jevents/default/helpers/defaultvieweventrownew.php
/templates/<template>/html/jevents/ext/helpers/defaultvieweventrownew.php
/templates/<template>/html/jevents/DefaultHelpers/defaultvieweventrownew.php
/templates/<template>/html/jevents/ExtHelpers/defaultvieweventrownew.php
but it still uses the original file in the components folder.
I've successfully overridden actual template files (/templates/<template>/html/jevents/ext/year/listevents_body.php for example) without issue, so I'm at a loss.
Any help would be appreciated, Thanks!
* PHP version --> 5.2.9
* Joomla! version --> 1.5.21
* JEvents version --> 1.5.4
* Web Server software: Apache 2.2.11
* Server Operating system --> Linux
* Web browser and version --> All browsers
I'm using the ext template, which uses the default template's helper file for the DefaultViewEventRowNew() function here:
/components/jevents/views/default/helpers/defaultvieweventrownew.php
(I've made edits to this file to confirm it is the one effecting the pages)
I can't seem to override it though, I've placed the overridden version in these locations:
/templates/<template>/html/jevents/default/helpers/defaultvieweventrownew.php
/templates/<template>/html/jevents/ext/helpers/defaultvieweventrownew.php
/templates/<template>/html/jevents/DefaultHelpers/defaultvieweventrownew.php
/templates/<template>/html/jevents/ExtHelpers/defaultvieweventrownew.php
but it still uses the original file in the components folder.
I've successfully overridden actual template files (/templates/<template>/html/jevents/ext/year/listevents_body.php for example) without issue, so I'm at a loss.
Any help would be appreciated, Thanks!
* PHP version --> 5.2.9
* Joomla! version --> 1.5.21
* JEvents version --> 1.5.4
* Web Server software: Apache 2.2.11
* Server Operating system --> Linux
* Web browser and version --> All browsers
- dgg
- Posts: 5
- Joined: Mon Nov 15, 2010 3:50 pm
Re: Can I override helpers?
by Geraint » Mon Nov 15, 2010 5:51 pm
Try /templates/<template>/html/jevents/helpers/defaultvieweventrownew.php
------------
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!
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!
-

Geraint - Posts: 30507
- Joined: Fri Feb 15, 2008 6:14 pm
Re: Can I override helpers?
by cmb » Tue Sep 04, 2012 10:11 pm
Geraint wrote:Try /templates/<template>/html/jevents/helpers/defaultvieweventrownew.php
For anyone reading this thread and using a later version of Joomla, note that the path to the override file should be
- Code: Select all
/templates/<template>/html/com_jevents/helpers/defaultvieweventrownew.php
Note the addition of com_ in the path.
I'm using JEvents v2.2.3 in Joomla 2.5.6.
- cmb
- Posts: 2
- Joined: Thu Aug 30, 2012 10:36 pm
11 posts
• Page 1 of 2 • 1, 2
Return to JEvents 1.5 (No longer actively supported)
Who is online
Users browsing this forum: Google [Bot]

