Keyword

Access itemAuthorLatest/authorLatestItems within mod_k2_content template??

  • Greg Stead
  • Greg Stead's Avatar Topic Author
  • Offline
  • New Member
More
1 year 7 months ago - 1 year 7 months ago #180322 by Greg Stead
Hi,

So, in the com_k2 / [template name] / item.php, you are able to loop through authorLatestItems with this code:

<?php foreach ($this->authorLatestItems as $key => $item) : ?>
[Do something with $item]
<?php endforeach ?>


Is it possible to take advantage of authorLatestItems for each item in a mod_k2_content? I see that there is an itemAuthorLatest in the $params values, but I can't figure out how to access those. Any help is much appreciated, as I am currently hard coding the block I need as an extraField, meaning I have to update the extraField and the related item in order to reach all instances of the item across our site when there is a copy edit.
Last edit: 1 year 7 months ago by Greg Stead.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum