179 Posts
carin
5 years 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
1283 Posts
Bucklash
5 years 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... 

179 Posts
carin
5 years 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.

1283 Posts
Bucklash
5 years 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

179 Posts
carin
5 years 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
5 years 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