1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then 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.

Implemented Showcase Node List Module Tweaks for Categories Listing

Discussion in 'Showcase Closed Suggestions' started by Shelley, Nov 8, 2013.

  1. Shelley

    Shelley Member Showcase

    Thought I'd make this suggestion (and really hope this one makes it in a future update)

    I noticed that when you enable this and have multiple categories you are displayed with the dropdown menu (like the old subforum dropdown). The suggestion is to have an option like the subforum column listing that admins can enable instead of the dropdown which is hidden imo where column listings would expose the categoeries and offer up consistency for those that use sub forum listings.

    Hopefully this one can be accommodated (which I'm sure you'll weigh up whether it's doable Bob) and as always, amazing work I absolutely adore this add-on. :)

    edit: Another benefit would be on column mode we could also add the "new" red indicator which would further make it easier for people to see if a new item has been submitted (unless I'm missing how that functions).



    Screenshot_53.png
     
  2. Bob

    Bob Developer Staff Member

    Should be fairly easy to implement the first part. The 2nd part I am not sure about since its just a simple query grabbing low level Category data for navigation purposes (so there is no data pertaining to whether there are new items in those categories are not).
     
    Shelley likes this.
  3. Shelley

    Shelley Member Showcase

    I tried getting the subforum listing and nearly got there by editing the nflj_showcase_node_list template but was not quite working. Anything of course to make this an option would be great (just to rid the dropdown menu) Everything else doesn't matter and anything you can do is appreciated. Thanks again Bob for considering this. :)
     
    Bob likes this.
  4. Bob

    Bob Developer Staff Member

    you want it to be spit out just like core XF right? same classes, but maybe with an extra .showcase class added for finer control?
     
    Shelley likes this.
  5. Shelley

    Shelley Member Showcase

    That would be absolutely perfect Bob if that is possible for you to do/implement. :)
     
  6. Bob

    Bob Developer Staff Member

    can you test this when you have time? It will now switch the "look" based on the "Show sub-forums popup" Forum/Node List style property setting.

    replace template: nflj_showcase_node_list

    with this template
    HTML:
    <fieldset>
        <ol class="nodeList sectionMain" id="forums">
            <li class="node category level_1 node_9991" id="showcase.9991">
                <div class="nodeInfo categoryNodeInfo categoryStrip">
                    <div class="categoryText">
                        <h3 class="nodeTitle"><a href="{xen:link showcase}">{xen:phrase nflj_showcase_node_list_module_title}</a></h3>
                    </div>
                </div>
                <ol class="nodeList">
                    <li class="node forum level_2  node_SC9991">
                        <div class="nodeInfo forumNodeInfo primaryContent {xen:if $newCount, 'unread'}">
                            <span class="nodeIcon" title="Unread Showcase Items"></span>
                            <div class="nodeText">
                                <h3 class="nodeTitle"><a href="{xen:link showcase}" data-description="#nodeDescription-SC9991">{xen:phrase nflj_showcase_node_list_title}</a></h3>
                                <blockquote class="nodeDescription baseHtml" id="nodeDescription-SC9991">{xen:phrase nflj_showcase_node_list_title_descritption}</blockquote>
                                <div class="nodeStats pairsInline">
                                    <dl>
                                        <dt>{xen:phrase nflj_showcase_items}:</dt> <dd>{xen:number $quikStats.items}</dd>
                                        <xen:if is="{$quikStats.reviews}">   
                                            <dt>{xen:phrase nflj_showcase_reviews}:</dt> <dd>{xen:number $quikStats.reviews}</dd>
                                        </xen:if>   
                                        <xen:if is="{$quikStats.comments}">           
                                            <dt>{xen:phrase nflj_showcase_comments}:</dt> <dd>{xen:number $quikStats.comments}</dd>
                                        </xen:if>   
                                        <dt>{xen:phrase nflj_showcase_images}:</dt> <dd>{xen:number $quikStats.images}</dd>
                                    </dl>
    
                                    <xen:if is="@nodeListSubForumPopup">
                                        <div class="Popup subForumsPopup">
                                            <a href="{xen:link forums, $forum}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase nflj_showcase_categories}:</span> {xen:number $quikStats.categories}</a>
                                            <div class="Menu JsOnly subForumsMenu">
                                                <div class="primaryContent menuHeader">
                                                    <h3>{xen:phrase nflj_showcase}</h3>
                                                    <div class="muted">{xen:phrase nflj_showcase_categories}</div>
                                                </div>
                                                <ol class="secondaryContent blockLinksList">
                                                <xen:foreach loop="$categories" value="$category">
                                                    <li class="node forum level-n node_x ">
                                                        <div>
                                                            <h4 class="nodeTitle"><a class="menuRow" href="{xen:link showcase/category, $category}">{xen:string repeat, '&nbsp; &nbsp; ', $category.depth}{$category.category_name}</a></h4>
                                                        </div>
                                                    </li>
                                                </xen:foreach>
                                                </ol>
                                            </div>
                                        </div>
                                    </xen:if>
    
                                </div>
                            </div>
    
                            <xen:if is="!@nodeListSubForumPopup">
                                <ol class="subForumList">
                                    <xen:foreach loop="$categories" value="$category">
                                        <li class="node forum level-n node_SC9991">
                                            <div>
                                                <h4 class="nodeTitle">
                                                    <a class="menuRow" href="{xen:link showcase/category, $category}">{$category.category_name}</a>
                                                </h4>
                                            </div>
                                        </li>
                                    </xen:foreach>
                                </ol>
                            </xen:if>
    
                            <div class="nodeLastPost secondaryContent">
                                <xen:if is= "{$latestItem}">
                                    <span class="lastThreadTitle"><span>{xen:phrase latest}:</span> <a href="{xen:link showcase, $latestItem}" title="{$latestItem.item_name}">{xen:helper snippet, $latestItem.item_name, 35}</a></span>
                                    <span class="lastThreadMeta">
                                        <span class="lastThreadUser"><xen:username user="$latestItem" />,</span>
                                        <xen:datetime time="$latestItem.last_update" class="muted lastThreadDate" data-latest="{xen:phrase latest}: " />
                                    </span>
                                <xen:else />
                                    <span class="noMessages muted">({xen:phrase nflj_showcase_contains_no_items})</span>
                                </xen:if>
                            </div>
                           
                        </div>
                    </li>
                   
                </ol>
                <span class="tlc"></span>
                <span class="trc"></span>
                <span class="blc"></span>
                <span class="brc"></span>
            </li>
        </ol>
    </fieldset>
     
    Shelley likes this.
  7. Shelley

    Shelley Member Showcase

    Works a treat Bob :)
     
    Bob likes this.
  8. Bob

    Bob Developer Staff Member

    Good news :) let me know if you need any additional class names added anywhere in it.
     
    Shelley likes this.
  9. Shelley

    Shelley Member Showcase

    I'm more than satisfied with that Bob. Thanks again for putting the time into this and catering for another suggestion and generally going out of your way to help (which you've done from start to finish). I now have the sc nodelist moved to the top and now very happy with the outcome. Thanks again Bob. :)

    Screenshot_2.png
     
    Bob likes this.
  10. Bob

    Bob Developer Staff Member

    That looks awesome! That Winter theme for the holidays is flat out amazing looking!
     
    Shelley likes this.
  11. Shelley

    Shelley Member Showcase

    Thanks Bob :)

    I'm more please with the dark styles. I think the subforum li really looks so much better on these styles. Because of the featured threads I disabled the forum_list slider so this kind of compliments this nicely and gets showcase back in a prominent position. :)

    Screenshot_3.png
     
  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.