3
I resolved the poster name and date issue, by adding the following code:
<div class="itemInfo">
<span class="itemPoster">
<div class="smartsection_item_head_who">
<{$item.who_when}> (<{$item.counter}> <{$block.lang_reads}>)
div>
span>
div>
I copied the above code from the smartsection_singleitem_block.html file, and pasted it into the smartsections_item_spot.html file. The code also provides a display of the article read count. I need to format it a little differently, but at least it is capturing some of the information that I need.
However, I still cannot figure out any way of simultaneously displaying the parent category name and subcategory name of an article in the spotlight block of that article. I tried to use some of the breadcrumb code from the header template, since the breadcrumb displays the categories path to the article being displayed (including any subcategories on the path). The breadcrumb feature is capturing and displaying both the category and subcategory names. However, it doesn't work in the spotlight block
This is the format I seek for each article displayed in the spotlight block:
-------------------------------------
Article Title:
Parent Category Name:
Subcategory Name (first level only):
Poster/Date:
Article Summary:
--------------------------------------
Again, I have all of the above working, except for the Parent category Name (all my articles will be located within subcategories of Parent Categories).
I really don't know if it is possible for the spotlight block to display the parent category name of an article, if the article is located in a subcategory of that parent category. It may be outside the scope of how smartsection is designed. However, I really don't know the answer to this, since I'm not too familiar with PHP design.