• HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Get in touch
    Get in touch
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    • Sign in
    • Start free trial
    • Get in touch
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    • Documentation
      • Home
      • Read API
      • Write API
      • Plugin Development
    1. Home
    2. RichG
    3. Best
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 42
    • Best 2
    • Controversial 0
    • Groups 0

    Best posts made by RichG

    • RE: Show Widgets by category

      @a_5mith got me on the right track for this messy hack.... but it does the trick.

      in the container of your widget give it an ID name, then check for the name of the page ( I copied and pasted from the actual url in my browser "xxxxxxxxx.com:8080**/category/5/real-money-gold-silver**" ) by @a_5mith 's suggestion to check for the condition, and then the dom to hide it if not the correct page. Everything is self contained in the container.

      <div id="gold" class="panel panel-default"><div class="panel-body">{body}</div>
      <script>
      if (ajaxify.currentPage !== 'category/5/real-money-gold-silver') {
      document.getElementById("gold").style.display = 'none';
      }

      </script></div>

      Thanks for the help.... I hope this becomes easier in the future. Each Category has a targeted audience and the sidebars should reflect that. What a great product!

      Rich

      posted in Technical Support
      RichG
      RichG
    • Show Widgets by category

      Is there some variable exposed on the category page that holds the page ( category ) name or ID so I can tailor the showing of the widgets to a specific page when shown? The sidebar is to general ... it should be page ( category ) specific. Feeds about camping has nothing to do with the 'about us' page. The HTML widget is perfect to load-up the sidebar when getting down to the category level, but I need to know where I am at .... something like

      • if Category = 'About US' then
        <a class="twitter-timeline" href="https://twitter.com/AmericanBulleti" data-widget-id="582289000196636672">Tweets by @AmericanBulleti</a>
        <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
        endif*

      Thanks....

      posted in Technical Support
      RichG
      RichG

    Get Started

    • Product
    • Pricing

    Resources

    • Demo Site
    • Answers
    • Docs
    • Bug Bounty

    Company

    • About
    • Blog
    • Contact
    Start Free Trial
    Github Facebook Instagram Twitter
    © 2014 – 2022 NodeBB, Inc. — Made in Canada.
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact
    Menu
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact