Quote
How is possible to get "$file_path" ?
$file_path = str_replace(ltrim(fusion_get_settings('site_path'), '/'), '', preg_replace('/^//', '', FUSION_REQUEST));
if (fusion_get_settings('site_seo') && defined('IN_PERMALINK')) {
$file_path = \PHPFusion\Rewrite\Router::getRouterInstance()->getCurrentURL();
}
if ($settings['opening_page'] == $file_path) {
// content visible only on homepage
}
Quote
How i can get title of the Page for "function render_page() {"
$settings
variable to see available settings, page title should be on top.
array(133) {
["sitename"]=>
string(31) "REDACTED"
["siteurl"]=>
string(23) "https://site.com/"
["site_protocol"]=>
string(5) "https"
}
Quote
I've got "" on $file_path.
if (fusion_get_settings('site_seo')) {
$params = http_build_query(\PHPFusion\Rewrite\Router::getRouterInstance()->getFileParams());
$path = \PHPFusion\Rewrite\Router::getRouterInstance()->getFilePath();
$file_path = '/'.(!empty($path) ? $path : PERMALINK_CURRENT_PATH).($params ? "?" : '').$params;
} else {
$file_path = '/'.PERMALINK_CURRENT_PATH;
}
if (fusion_get_settings('opening_page') == 'index.php' && $file_path == '/' || $file_path == '/'.fusion_get_settings('opening_page')) {
// content visible only on homepage
}
Quote
And no page title in $settings.
render_page()
function displays current page layout and not custom pages. Specify what you want..Category Forum
SEO & SEF - 9Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions