Thank you for your answers 'Frogabog' and 'AMDbuilder'.
But I solved it by setting a small 'snippet', was not so hard, I describe below in case anyone wants to use it.
The call:
[[CopyrightYears? &iniYear=`2011`]]
The 'snippet' Code:
$year = date('Y');
$output = '© ' . $iniYear;
if($year > $iniYear){$output .= '-' . $year;}
$output .= ' · <span><a href="' . $modx->getOption('site_url') .'">' . $modx->getOption('site_name') . '</a></span>';
return $output;
NOTE: I used the <span> tags to change the font type, but not necessary.
What you get:
© 2011-2012 ·
TheSiteName
When set iniYear to 2012, yo get:
© 2012 ·
TheSiteName
Hope this helps someone,
Ramon
[ed. note: redesb last edited this post 14 years, 2 months ago.]