By Guest on Tuesday, 12 July 2016
Replies 5
Likes 0
Views 1.9K
Votes 0
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
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
·
Tuesday, 12 July 2016 13:52
·
0 Likes
·
0 Votes
·
0 Comments
·
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:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Its here:

component/com_jevents/views/default/helpers/defaultloadedfromtemplate.php
·
Tuesday, 12 July 2016 13:56
·
0 Likes
·
0 Votes
·
0 Comments
·
I found it but I didn´t understand how DefaultMyName transformed into MyName

Anyways, thanks for your help
·
Tuesday, 12 July 2016 14:08
·
0 Likes
·
0 Votes
·
0 Comments
·
It's set in the view.html.php file prior to calling the tmpl files.

You are very welcome!

Many thanks
Tony
·
Tuesday, 12 July 2016 14:31
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post