You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the analysis in PageHealthExtension didn't take into account any Elemental blocks. I couldn't see how you would use the seoContentFields configuration so I tried rendering with the current theme.
public function getRenderedHtml() {
...
$current_themes = SSViewer::get_themes(); // get current CMS theme
Requirements::clear(); // we only want the HTML, not any of the js or css
SSViewer::set_themes(SSViewer::config()->uninherited('themes'));
$this->renderedHtml = $controllerName::singleton()->render($this->owner);
Requirements::restore(); // put the js/css requirements back when we're done
SSViewer::set_themes($current_themes); // reset current CMS theme when we're done
...
}
The text was updated successfully, but these errors were encountered:
I noticed that the analysis in PageHealthExtension didn't take into account any Elemental blocks. I couldn't see how you would use the seoContentFields configuration so I tried rendering with the current theme.
The text was updated successfully, but these errors were encountered: