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.

category only and Tag only side block

Discussion in 'Showcase Support' started by Market1234, Feb 14, 2015.

  1. Market1234

    Market1234 Member Showcase

    How do I make a category only and tag only side block? Like the Home Page but on all tabs
     
  2. Bob

    Bob Developer Staff Member

    The Tag Cloud block is already available for all showcase sidebars, it just needs to be enabled via options for that specific page (Showcase Options).

    The Category Block is specific to the individual controllers (Home is much different than Category pages). You are wanting the Showcase HOME Categories block for Member, Tags, Field Search Results pages?
     
  3. Market1234

    Market1234 Member Showcase

    Yes
     
  4. Bob

    Bob Developer Staff Member

    http://xenaddons.com/showcase/tags As you can see right here on this site, both blocks (Category and Tag Cloud) are on showcase pages.

    Can you post me a link using the Showcase Demo here to a showcase page that does NOT have what you are asking for?

    If you are asking about NON Showcase pages, then that would require custom development as you'd need to expose the data (at least for the Categories Block). You MIGHT be able to use the TAG Cloud callback in addons like XenPorta or BWF or even just a custom template.

    This is the RAW Tags block (that is driven off Cache).

    HTML:
    <xen:if hascontent="true">
        <xen:require css="nflj_showcase_tag.css" />
    
        <div class="section showcase_SidebarCloud showcase_TagCloud">
            <div class="secondaryContent">
                <h3><a href="{xen:link showcase/tags}">{xen:phrase nflj_showcase_tag_cloud}</a></h3>
                <ul>
                    <xen:contentcheck>
                        <xen:hook name="nflj_showcase_tag_cloud_item">
                            <li class="showcase_TagCloudTag showcase_TagCloud_Level{TAG_LEVEL}">
                                <a href="{TAG_LINK}" title="{xen:phrase nflj_showcase_items}: {TAG_CONTENT_COUNT}" class="Tooltip">{TAG_TEXT}</a>
                            </li>
                        </xen:hook>
                    </xen:contentcheck>
                </ul>
            </div>
        </div>
    </xen:if>
     
  5. Market1234

    Market1234 Member Showcase

  6. Bob

    Bob Developer Staff Member

    The Categories Block on Showcase HOME Page (and tags, field results) is different than the Categories Block for CATEGORY Pages. Category pages (http://clubcensus.com/Review/category/stripper.6/) have specific programming code in the Category Controller to display sub category's for that specific parent). The block for the HOME page only displays all the TOP Level Categories (aka root level cats).

    I purposely don't include a categorie block on the ITEM page as it would add another 2 queries to the page, plus the sidebar is already packed with two many blocks.

    You can always create your OWN pure HTML block and include it in the side bar. That would probably be your best option anyway cause then you could place it where you want, and make it look like you want without having to edit programming code or add un necessary queries. The Blocks themselves have standard wrappers that will work in any sidebar...

    HTML:
    <div class="section">
        <div class="secondaryContent">
            <h3>YOUR TITLE HERE</h3>
           
            YOUR CUSTOM HTML HERE
        </div>
    </div>
    You can even look at how the HTML is for the Categories block and follow that standard.
     
  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.