Loading...
 
Skip to main content

Tiki Design


Modify tiki-view_blog to highlight comments link when comments>0?

posts: 2 United States

TW: v2.0; Theme: modified tikineat

I've been trying to get the comments link in tiki-view_blog to be highlighted whenever comments>0. I noticed that the Articles plugin does this, and I think it's really helpful in letting users know that something is available there. Examining tiki-view_blog.tpl and tiki-view_articles.tpl hasn't revealed any way to do this with just template edits. Does it require a change to tiki-view_blog.php? I've also checked a number of other themes, and while they may or may not highlight the comments link for articles, it seems that none of them highlight that link in the blogs.

Any ideas?

Thx,

MacLeod

posts: 2 United States

OK, figured out the answer to my own question.

  1. In ''tiki-view_blog.tpl", find the post-level "comments" link by keyword searching for "Permalink". It's the link right after that.

  2. In the comments link, change class="link"... to class="link {if $listpages[ix].comments > 0}highlight{/if}"...