custom_copyright tag

We need your assistance to make the documentation accurate, user friendly and understandable. Therefore we welcome any tips or suggestions regarding documentation. Thank you in advance for your contribution.

However, we will not respond to technical support questions submitted using this form. If you are having difficulty with CMSMS and cannot find the solution on this website, please submit your question appropriately on our support forum at: http://forum.cmsmadesimple.org. Please remember to follow the forum rules when posting.

CMS Made Simple™ Partner



In the footer of almost all websites you will find a copyright notice, followed by the start year and the current year.
In CMS Made Simple there is a User Defined Tag (UDT) which automatically creates those dates. By default the start year is set to 2004 (the birth of CMSMS)

You can change the value of the startyear at:
Extentions >> User Defined Tags
Name: custom_copyright
Description: Code to output copyright information

//set start to date your site was published
$startCopyRight='2004';

// check if start year is this year
if(date('Y') == $startCopyRight){
// it was, just print this year
    echo $startCopyRight;
}else{
// it wasnt, print startyear and this year delimited with a dash
    echo $startCopyRight.'-'. date('Y');
}