Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

How to display more characters (Item description)?

Discussion in 'Showcase Support' started by max_d, Mar 6, 2017.

  1. max_d

    max_d New Member Showcase

    Firstly, this is an amazing add-on, and exactly what I was looking for.

    I’m using the List View, and the description (or "snippet") displays only 149 characters. Is there a way to display all of the 250 characters in the description?

    Kind Regards,

  2. Bob

    Bob Developer Staff Member

    The layout design is not that great for displaying a large amount of text which is why its default capped at 150. With that said, a simple template edit will do the trick for you :)

    template: nflj_showcase_layout_list_view_item

    Find this block of template syntax:
                <div class="description">
                    <xen:if is="{$item.item_state} == 'deleted'">
                        <span class="deletionNote">{xen:phrase nflj_showcase_this_item_has_been_deleted}
                            <xen:if is="{$item.delete_user_id}">
                                {xen:phrase nflj_showcase_item_deleted_by_x, 'name={xen:helper username, {xen:array "user_id={$item.delete_user_id}", "username={$item.delete_username}"}}'}, <xen:datetime time="{$item.delete_date}" /><xen:if is="{$item.delete_reason}">, {xen:phrase reason}: {$item.delete_reason}</xen:if>.
                    <xen:else />
                        <span>{xen:if '{$item.description}', '{xen:helper snippet, $item.description, 150}', '{xen:helper snippet, $item.message, 150}'}</span>

    towards the bottom of that block, you will find this line of code:
                        <span>{xen:if '{$item.description}', '{xen:helper snippet, $item.description, 150}', '{xen:helper snippet, $item.message, 150}'}</span>
    Simply change both instances of 150 to 250 (or what ever amount you want).
    max_d likes this.
  3. max_d

    max_d New Member Showcase

    That worked perfectly! Thank you very much.

    I’m not sure what it’s called, but is there a way to hide the side panel that displays the rating, views, & likes?

  4. Bob

    Bob Developer Staff Member

    You'd need to modify the layout. Its not something that is designed to be an ON/OFF for that layout, in fact, its pretty much the point of that layout.

    Why not use Article View instead of List View?
    max_d likes this.
  5. max_d

    max_d New Member Showcase

    Yes, you’re right! The Article View is exactly what I was looking for.:)

    Thank you.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.