This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
172 Posts
carin
8 months ago
5
Topic

In the changelog I read:

"Helper_Include" front-end class removed.

What are we supposed to use instead? Up till 3.15 I used "require_once JPATH_SITE.'/components/com_cck/helpers/helper_include.php';"

thx

Get a VIP membership
1214 Posts
Bucklash
8 months ago
4
Level 1

I remember that happening.

I can’t remember what replaced it right now,

but if you compare versions before amd after  change you will see it... 

172 Posts
carin
8 months ago
3
Level 2

Thank you for trying to help but I need exactly the function that replaced the helper or another way to get access to the cck object. I am not coder enough to figure that out on my own.

1214 Posts
Bucklash
8 months ago
2
Level 3

I reckon search seblod 3.15 on github for files that used the old helper... and then check new version of same file and compare, no much else you can do

172 Posts
carin
8 months ago
1
Level 4

Thank you but  as I said. I need an answer from Seblod, I cant figure that out on my own.

4229 Posts
Kadministrator
8 months ago
0
Level 5

Hi,

if you code custom plugins, tempaltes etc you should really learn how to solve such problems, simple search on the functions or look into some code template will reveal that this is not needed anymore and you cann access this functions directly from $cck object in template

e.g.

$cck    =  CCK_Rendering::getInstance( $this->template );  (this line is already in core templates)

$cck->addScriptDeclaration( $js );

Get a VIP membership