1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Remove the "Replies" word and count from thread list

Discussion in 'Styling and Customization Questions' started by craigiri, Nov 29, 2012.

  1. craigiri

    craigiri Well-Known Member

    Is there a way to remove these from ONE node?

    As an example, I have a read-on forum where each thread is only one post....so don't like the idea of the big O and Replies showing on the listing pages.....see enclosed...
    Screen shot 2012-11-29 at 1.59.05 PM.png
     
  2. DBA

    DBA Well-Known Member

    Have you tried using the forum conditional?

    Code:
    <xen:if is="{$forum.node_id} == x">
    This content will show in forum x
    <xen:else />
    This content will show in all other forums
    </xen:if>
     
    Jake Bunce likes this.
  3. craigiri

    craigiri Well-Known Member

    Haven't tried anything - didn't know if there was an add-on or exact instructions for doing this....

    I'm pretty helpless with where I'd put that conditional to remove that particular thingy...
     
  4. DBA

    DBA Well-Known Member

    Find the below in your thread_list_item template

    Code:
    <dl class="major"><dt>{xen:phrase replies}:</dt> <dd>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.reply_count}}</dd></dl>
    And replace it with this:
    Code:
            <xen:if is="{$forum.node_id} != X">     
            <dl class="major"><dt>{xen:phrase replies}:</dt> <dd>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.reply_count}}</dd></dl>
            </xen:if>
    *replace X with your forum ID
     
    Jake Bunce and craigiri like this.
  5. craigiri

    craigiri Well-Known Member

    Great! That seems to work - makes it much cleaner...
     

Share This Page