Sunday, 01 October 2017
  4 Replies
  1.4K Visits
0
Votes
Undo
Hey,

I'm digging in the forums and also on the web but it's impossible to find out how the component overwrite acutally works. The descriptions are misleading and also incorrect. Sorry to say that but the public documentation is also sometimes wrong or it does not work how it is stated there. However, nevermind. So I want do kindly ask that you please tell me how to overwrite a component php file for a theme e.g. "default". I know that the overrides should be placed in the template folder

e.g.
/template/html/com_events/...


so far so good but how is the relative path from this location?! I want to override:

/components/com_jevents/views/default/icalevent/tmpl/detail_body.php


I tried nearly every path under the above decribed template location but nothing works and I'm really tired of trial and error every possiblity because the component path overrides seem to not follow any typical rules. So please tell me where to place php files from a jevents theme in the template folder.

because what not works is

/template/html/com_events/views/default/icalevent/tmpl

/template/html/com_events/default/icalevent/tmpl

/template/html/com_events/icalevent


and many others I already tried. I do understand that you need memberships to support your work and to further get money for the development of this great plugin. However please understand my critiscm because it's very annoying to override some stuff in the plugin when you first have to try 20 different folder locations because nothing follows a general rule, because what is stated in the documentation is simply wrong or outdated. So once and forall post at least the basic locations for the component overrides because from google there can be found at least 5 different posts (not only on this board) concerning this topic but the answer are often not sufficent. That won't get you less memberships but would help developers to extend or modify the core files. Thx in advance.

Edit:
The correct location would be
/template/html/com_events/default/icalevent

and it was my fault Oo. Maybe some caching problem because i'm sure i tried this location first :/
Monday, 02 October 2017 08:49
·
#193950
1
Votes
Undo
Hello,

Glad to hear you are enjoying JEvents. For future reference this article is free see:

https://www.jevents.net/frequently-asked-questions/customising-layouts

We follow the standard Joomla! MVC but have an additional theme folder after com_jevents to allow for multiple template overrides as explained in the above document.

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, 02 October 2017 11:38
·
#193976
0
Votes
Undo
hey tony,

however the there stated assets override (for images) does not work. I tried and tested that carefully idk where image overrides have to placed but the documented path

/template/html/com_jevents/default/assets/images


does not work. Maybe something else has to be done but only placing the image files does not work. Not for the default theme. That the php component override has not worked was my fault, maybe i forgot to clear my cache, because I tried the right path in the first try. So I thought i does not work however it did. Sorry for that. But take a look on the assets thing. I did not get this to work.

Thanks for your assistance.

PS.: I knew this faq page however i somehow failed on the php override.
Tuesday, 03 October 2017 10:19
·
#194003
0
Votes
Undo
Hello,

Could you try:

/template/html/com_jevents/default/assets/images

see the com_jevents?

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, 03 October 2017 11:20
·
#194006
0
Votes
Undo
Hey Tony,

I changed my post, forgot to outline the 'com_jevents' (but only in the post). This was of course the path i've tried but that does not work ;). The images are taken from the component folder and not from the template.
  • Page :
  • 1
There are no replies made for this post yet.