SP Page Builder 3 Deletes The Global Robots - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

SP Page Builder 3 Deletes The Global Robots

P

Picannick

SP Page Builder 2 years ago

Dear Joomshaper Team,

We are using SP Pagebuilder 3.8.10 an Joomla 4.3.4. We now noticed that if the component is SP Pagebuilder than the global robots are not loaded anymore. So if I set noindex, nofollow in the global config and the menu item says use global than there are no robots integrated in the menu item, which means the default is used, which is index, follow.

Seems like the pagebuilder is stripping the robots from the metas. When I var_dump the global config in the index.php, than the robots are no longer there:

["_metaTags"]=> array(2) { ["http-equiv"]=> array(1) { ["content-type"]=> string(24) "text/html; charset=utf-8" } ["name"]=> array(1) { ["rights"]=> NULL } }

In another menu item which is a normal Joomla article the var_dump looks as follows:

["_metaTags"]=> array(2) { ["http-equiv"]=> array(1) { ["content-type"]=> string(24) "text/html; charset=utf-8" } ["name"]=> array(2) { ["rights"]=> NULL ["robots"]=> string(17) "noindex, nofollow" } }

The only thing I found is in the file htdocs/components/com_sppagebuilder/views/page/view.html.php the following code:

    if ($menu) {
        if ($menu->getParams()->get('robots')) {
            $this->document->setMetadata('robots', $menu->getParams()->get('robots'));
        }
    }

But if I delete this code there are no changes in the frontend. There are still no robots set.

How can that be??? If I tell the page not to be indexed and it than is indexed nevertheless? We have a client who is really angry because the page we are currently working on (it is on a subdomain of the old page) is now already been indexed by Google.

I know that there are several other options to prevent the page from being indexed. And maybe in the new version of SP Pagebuilder this is not the case anymore, but I want to make sure that this cannot happen again.

Can you tell me which file is responsible for that change as I tried to find it but have not been successful. Any help would be appreciated. If you need further information feel free to contact me.

Kind regards Tanja Vogt

0
3 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #132138

Hi there,

I appreciate you reaching out. I sincerely apologize for this oversight. I would request you to use the Page Builder 5. Cause, by default there has lots of function about robots.

https://prnt.sc/c7NcDCwR0Zx6

-Thanks

0
P
Picannick
Accepted Answer
2 years ago #132621

Hi Toufiq,

thank you for your answer. But unfortunately it really doesn't help me at all. We will use PB5 on new pages but I will not update old pages since we made a couple off overrides.

Can't you tell me where PB3 strips off the robots? The pagebuilder should do nothing with the robots, just keep them like they are. I would even override a core file for that functionality.

Kind regards

0
sitte
sitte
Accepted Answer
6 months ago #189548

Hello. I use the latest versions of the component and template and this effect still occurs. This came to light when a client reported that a number of pages we were working on had been indexed by search engines when they were completely unprepared for it. I think, the sp page builder setting, should not override the noindex nofollow directive because it is impossible to disable indexing of a page from one place. It would be necessary to go through all the sub-pages and manually disable indexing of each one.

Please consider that the global noindex nofollow setting should not be overwritten locally

0