Add Different Resource for EmpireCMS

Sometimes it is very difficult for us to publish an article if all the articles have 2 or more different article resources from other sites. In this case, we can not copy directly. We can use PHP code:


if()
{
}
elseif
{
}
else
{
}

For example, if an article has resources, we will publish the resources directly, if not, we can publish the article writer at the place of resources, if still does not have a writer, we can publish something else at the place of resource, at EmpireCMS template, add the following code at a proper place:

<? if($navinfor['befrom']!="") {echo $navinfor[befrom];} elseif($navinfor['writer']!="") {echo $navinfor[writer];} else{echo 'www.xuyinews.com.cn';}?>