Create ADDON For Page Print | Documentation - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Create ADDON For Page Print | Documentation

S-D CONSULTING

S-D CONSULTING

SP Page Builder 6 days ago

Good morning everyone, due to the many requests I've received from my clients, I've created a function that allows you to print the content of a page created with Page Builder, in a specific A4 format.

I created this script for a specific need: managing several scientific websites, I often need to enable the printing of dynamic, often changing content. This way (for example, conference programs) anyone printing them always has an updated version (even in PDF format). I've also included a simple function that allows me to exclude anything that shouldn't be printed.

I initially considered using the JPDF and J2CANVA libraries, but unfortunately there are many browser compatibility issues, so I chose to start with the basic @media print function and then customize all the content. For example, I like all printouts to start with a full image without margins, to include page breaks for conference days, and much more.

I'm not yet at the final version. It works well with Firefox, Chrome, and Edge. There are known limitations with Safari, but I've found a good compromise, and I've solved the printing limitations on smartphones and tablets, especially on iOS.

I'd like to create this feature as an ADD-ON, so I can drag it to the desired location when creating a page.

So I'm asking Joomshaper if there are instructions on how to include all this in an add-on that can then be installed on the sites I need it for.

Thanks

0
4 Answers
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 5 days ago #207102

Yes, you can also add a new addon using this process. If you use an addon name that already exists in SP Page Builder, it will override the existing one. However, if you use a unique name, it will be added as a new addon that you can drag and drop like the native ones.

0
S-D CONSULTING
S-D CONSULTING
Accepted Answer
6 days ago #206989

If you are not interested in the project, no problem, but if anyone knows about the structure and creation of the addons, I would be happy to know.

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 5 days ago #207096

Hello S-D CONSULTING,

Please refer to this documentation for guidance on overriding SP Page Builder addons: www.joomshaper.com/documentation/sp-page-builder/how-to-override-sp-builder-addons.

Best regards

0
S-D CONSULTING
S-D CONSULTING
Accepted Answer
5 days ago #207101

Thanks, but can a new addon then be installed and dragged and dropped like the native ones?

I haven't read the whole thing yet, but I see it mentions "override" here.

0