nican VIP
Total posts: 392
05 Март 2014 16:18

Hello, I'd like to separate the author name and the created date info in the in article details list view

meaning that I'd like to be able to display them in different divs, with different styles

currently both the blog and the simple-list template seems to call these variables using $author for both of them, so it's not possible to separate them

maybe I should investigate the "table" template instead?

thank you

Последние изменения: 06 Март 2014

Комментарии были выключены для данной статьи

Sergey
Total posts: 13,748
05 Март 2014 16:45

You can find place where it sets $author. FOr example

$author[] = JText::sprintf('WRITTEB BY', CCommunotyHelper::getName($item->user_id))

Then you can use this code directly in nay place of your template.


nican VIP
Total posts: 392
05 Март 2014 17:45

you mean something like this?

...

this doesn't display anything, but keep in mind that my php knowledge is extremely limited

sorry cannot get the code rendered properly here, I attach it

code author date cobalt


Sergey
Total posts: 13,748
06 Март 2014 05:29

Correct but you have to replace $author[] = to echo.


nican VIP
Total posts: 392
06 Март 2014 08:23

thank you! it works :-) it's incredible to be able to achieve results with php even without knowing what the hell I am doing ;-)

Работает на Cobalt