Loading...
 
Skip to main content
 Error
  • The search index could not be updated. The site is misconfigured. Contact an administrator.
    SQLSTATE[42000]: Syntax error or access violation: 1064 unknown table 'themes_tiki_org_main_662b38aece36c' in delete request
Tiki Design

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}"...


Layout

Subscribe to Tiki Newsletters!

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other big news!
Contribute to Tiki

Site Config