Item In Admin.php Type Builder Not Work - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Item In Admin.php Type Builder Not Work

SJ

san jose

SP Page Builder 3 years ago

Hello, I copied the addon acordion in template/sppagebuilder/addons/mon accordion by changing addon_name to monaccordion and in the site.php SppagebuilderAddonmonAccordion. The rest of the php (admin and site) are the same as the original addon. I receive the message Notice: Array to string conversion in C:\xampp\htdocs\lecorso\components\comsppagebuilder\addons\monAccordion\site.php on line 58 and in the content I see the word Array. How to solve it? In the admin.php file I see 'content' => array( 'type' => 'builder', 'title' => JText::('COM_SPPAGEBUILDER_ADDON_ACCORDIONCONTENT'), 'desc' => JText::('COM_SPPAGEBUILDER_ADDON_ACCORDION_CONTENT_DESC'), 'std'=> 'Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.' ), I presume that the 'builder' type allows adding addons but it does not work correctly in customs addons

0
8 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #64808

Hello san jose

Please follow this documentation tip 8 to create Custom Addon.

Best regards

0
SJ
san jose
Accepted Answer
3 years ago #64914

Hello, Thank you for your post but it does not answer my problem.

the type=>'builder' in admin.php allows to add an addon in the addon. You can see this in the accordion addon.

But on a custom addon (based on the original accordion addon) the type=>'builder' returns an array but not the addon.

Best regards

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #65028

I have shared the procedures to create custom addon. This method works. Please follow the documentation described process and it will be alright.

0
SJ
san jose
Accepted Answer
3 years ago #65131

Sir, I created custom addons and they work very well. What I'm asking is why the 'type'=>'builder' in the content field doesn't work in a custon addon.

I do not know if you are part of the official support of the company but I propose the following exercise: 1,You copy the accordion folder located in the original addons and paste it in yourtemplate/sppagebuilder/addons folder 2, you rename the accordion folder to myaccordion. 3 you modify the admin.php file and in addon_name you write myaccordion , 4 in the site.php file you write Class SppagebuilderAddonMyacordion.

Right there you have created a custom addon myaccordions according to the rules and myaccordion is equivalent since the code, methods have not changed 5 you create any page with one row and two columns. in the first you put the addon accordion and in the second the addon myaccordion. 6 you test and you will see the result. I have been using sppage builder since January 2015. If you do the support in a professional way I think you should do the test with the items you are given. I cannot accept your answer.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #65232

What I'm asking is why the 'type'=>'builder' in the content field doesn't work in a custon addon.

Please explain this a little more. In which file, are you adding this?

I am from the Support Team. If you copy and paste to spppagebuilder/addons, then do not rename the folder. Keep it accordion. It is called addon overriding. This means you are modifiying an existing addon. If you want to create a completely new addon, then you have to follow the Custom Addon procedure. I hope that you understand this and will act according to your need.

0
SJ
san jose
Accepted Answer
3 years ago #65310

Hello, I need to make a custom addon based on accordion addon.

I don't want to modify the original addon.

this is why in mytemplate/sppagebuilder/addons I make a copy modifying the name of the directory and adapting admin.php and site.php to the new name of the folder by respecting the procedure.

My question is not how to make a new addon. I've been doing it for 6 years.

I don't know if you are a developer or not, my posts are pretty self-explanatory.

Content field of type builder does not work. The "builder" type field allows as an administrator to add addons in the home addon.

The problem is that when sppagebuilder composes the 'client' page it shows as content the word "array"

It takes 5 minutes for TECHNICAL support to reproduce this and find the malfunction.

Sorry, but I don't think you understand.

Please forward all messages to Technical Support.

Here we are wasting time.

Thank you for your attention.

Sanjose

0
SJ
san jose
Accepted Answer
3 years ago #66752

I am terribly decuing your support. I asked a tectic question about the addon or new addon overrides from the accordion addon. Perhaps I was a little hard at my last comment with Mr. Ofi Khan, but I hope it's not Joomshaper's only support.

I deserve and I need an answer to find out if I can continue with the philosophy of PageBuilder or not.

I'm waiting for an answer.

Have a good day

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #69276

Hello, I need to make a custom addon based on accordion addon.

I don't want to modify the original addon.

I understand your query. I have shared the exact documentation link with you. This is a sample explanation of how things work. Now it is on your table how you gonna use it. If you face any issue doing Custom Work, then the responsibility is upto you. Unfortunately, we are currently not supporting Custom Work as per our Support Policy.

0