Tuesday, 12 July 2016
  5 Replies
  1.8K Visits
0
Votes
Undo
Hi!

I had some templates overriden but after updating to 3.4 I found that the loadedFromTemplate changed its behaviour, echoing it´s result. I worked around it simply commenting it and showing instead my code. I had before something like:

if (!loadedFromTemplate(some.template) { echo "my code" }


But as I said, now it echoes the contents of some.template? apart from "my code"

Also.. where this function is defined? I couldn´t find it anywhere
Tuesday, 12 July 2016 13:52
·
#173214
0
Votes
Undo
Hello,

The function has become self sufficient. So if there is an enabled template custom layout within : JEvents -> Custom Layouts then this is used else it falls back to the default.

If you do not want to use this, just remove it and use what you wish to use.

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, 12 July 2016 13:55
·
#173215
0
Votes
Undo
Great! Just being commented will work then

Now just being genuinely curious, where is located? :O I didn´t find it on the package!
Tuesday, 12 July 2016 13:56
·
#173216
0
Votes
Undo
Its here:

component/com_jevents/views/default/helpers/defaultloadedfromtemplate.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!Join the JEvents club today!

Tuesday, 12 July 2016 14:08
·
#173217
0
Votes
Undo
I found it but I didn´t understand how DefaultMyName transformed into MyName

Anyways, thanks for your help :D
Tuesday, 12 July 2016 14:31
·
#173218
0
Votes
Undo
It's set in the view.html.php file prior to calling the tmpl files.

You are very welcome!

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.