alizainal.aljufri
Graham Thanks for the explanation and assistance. So what if I want to combine the two functions of different variables? For example, for a title tag page 2 - Xtpedia
Graham
alizainal.aljufri <!--parser:xtscript-->
get __xtblog_blog_page
get __xtblog_tag
get __xtblog_search
var $heading = Xtpedia
if $__xtblog_blog_page > 1
var $title = Page $__xtblog_blog_page - $heading
elseif $__xtblog_tag
var $title = Category "$__xtblog_tag" - $heading
elseif $__xtblog_search
var $title = Search "$__xtblog_search" - $heading
else
var $title = $heading
endif
print <title>$title</title>
<!--/parser:xtscript-->
Copy code
Xtscript does not like nested if's
alizainal.aljufri
Master, can you corect this code?
<!--parser:xtscript-->
get __xtblog_blog_page
var $heading = Xtpedia
if $__xtblog_blog_page > 1
var $title = Page $__xtblog_blog_page - $heading
else
get __xtblog_tag
if $__xtblog_tag
var $title = Category "$__xtblog_tag" - $heading
else
get __xtblog_search
if $__xtblog_search
var $title = Search "$__xtblog_search" - $heading
else
var $title = $heading
else
var $title = $heading
else
var $title = $heading
endif
print <title>$title</title>
<!--/parser:xtscript-->
Copy code I want to edit title paging of tags and search, help please!