This site uses cookies and similar technologies.

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

I understand
166 Posts
carin
14 days 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
1026 Posts
Bucklash
14 days 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... 

166 Posts
carin
14 days 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.

1026 Posts
Bucklash
13 days 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

166 Posts
carin
11 days ago
1
Level 4

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

4115 Posts
Klasadministrator
11 days 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 Book for SEBLOD