Developer Question - How To Check For Integration In Code - Question | JoomShaper

Developer Question - How To Check For Integration In Code

pepperstreet

pepperstreet

SP Page Builder 2 years ago

Hello, I am curious how I would check a page's context or mode. For instance: native page vs. article integration

How do I know, if a page is a native SPPB page or if it lives inside a J! core article?

Maybe I am thinking to complicated, and everything can be done via url/context or Factory -> getApplication -> input -> getCmd

And a related question: Does a page or the pagebuilder component have any special events/triggers ?

Any advice and technical info is much appreciated. Thanks in advance.

1
8 Answers
Sajeeb Ahamed
Sajeeb Ahamed
Accepted Answer
Support Agent 2 years ago #49427

Hello pepperstreet, We don't have any event for checking if a content is from the Joomla article or page builder. We manage that from a content plugin. So, how we determine the situation? We've stored a flag into the table #__sppagebuilder named active. If the active value is 1 that means the Pagebuilder editor is activate for the article, otherwise the default Joomla editor is using for the article.

Hope you've got the point.

1
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #35625

Hi,

I need to talk about it with our DEV team. I hope they will reply back to you soon

-Regards

1
pepperstreet
pepperstreet
Accepted Answer
2 years ago #38945

Hello again, any news or infos from the dev team?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #39000

Hi,

Allow me some time please I send this issue again I hope they will reply back to you soon

1
pepperstreet
pepperstreet
Accepted Answer
2 years ago #43402

Just a gentle reminder... ;)

0
Pavel
Pavel
Accepted Answer
2 years ago #43438

Hi. If it helps, in Helix Ultimate you can detect it via body classes

0
pepperstreet
pepperstreet
Accepted Answer
2 years ago #46044

Thanks, Pavel! But that's not my actual issue. I am looking for a programmatic / coding info.

0
pepperstreet
pepperstreet
Accepted Answer
2 years ago #49378

Just another gentle reminder... ;)

PS: I woukd also appreciate any developer infos/changes about SPPB v4

0