Hello!
I need to split the date format in cms article, for article publish date.
I especially need the day and the month divided, how can i put this?
To explain myself well, i have to put the day in <div></div> ad month in and another <div></div>
Thank you!
--------------- Added [DATE]1321718186[/DATE] at [TIME]1321718186[/TIME] ---------------
Ok, get it!
Go to root of your site --> packages --> vbcms --> content --> article.php
at line 786 after
PHP Code:
$view->publishdatelocal = vbdate(vB::$vbulletin->options['dateformat'], $this->content->getPublishDate());
add
PHP Code:
$view->publishdatelocalday = vbdate(j, $this->content->getPublishDate());
$view->publishdatelocalmonth = vbdate(F, $this->content->getPublishDate());
$view->publishdatelocalyear = vbdate(Y, $this->content->getPublishDate());
Now in your template you can add with some style in additional.css:
HTML Code:
{vb:raw publishdatelocalday} or/and {vb:raw publishdatelocalmonth} or/and {vb:raw publishdatelocalyear}
You can edit the format of day - month - year changing the code j F Y with this
rules
Demo :
AppleMod - Home
Like this :
ENjoy!:up: