Support » Plugin: Collapse-O-Matic » Need expandall when is_search

  • Resolved thisimnot

    (@thisimnot)



    Hello Baden

    I have a website that is developed completely around Collapse-Pro-Matic.
    It is a Medical Aid Online Member Guide.

    Everything works beautifully except for when the user is searching.
    The relevant search results come up but when the user clicks through to the actual post, everything is collapsed, leaving the user stranded and confused.

    Is there a way to automatically “expandall” when the page is_search()

    Here’s hoping!

    https://wordpress.org/plugins/jquery-collapse-o-matic/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Baden

    (@baden03)

    Interesting…

    Since you are using Collapse-Pro, you can contact us direct at the support email listed in the purchase receipt. There is not a way out-of-the box to do a conditional expand, however we will do a bit of research get back to you with the results, even set it up on your site if needed.

    Good question!

    That will be totally awesome!

    Plugin Author Baden

    (@baden03)

    We have something for you to test!
    http://spacedonkey.de/1452/collapse-pro-matic-expand_on-attribute/

    Hit us up on the support address, along with your purchase receipt ID and we will send you a release candidate to test on your system.

    We’ll go ahead and mark this issue as resolved, but feel free to leave a review of the plugin, the pro-plugin, or it’s support!

    Hello Baden

    I’ve been using Collapse-Pro-Matic for a while now.
    Can’t find the receipt and support address though.

    Also:
    I may not have been clear enough with my request.
    I don’t think is_search is the one I’m looking for.
    After playing around last night I realised that it’s not the search results page where this feature is needed (the search results page is just a list of excerpts with highlighted search terms).

    It is when the user clicks on one of the search results and the actual post (they are all posts) containing the search term opens up.
    This post then has highlighted searchterms, but they may be hidden from view inside Collapse-O-Matic elements.

    This post contains multiple colomats, which colomats all need to be expanded at this point.

    But as I said:
    I don’t think this post returns TRUE to is_search()

    Plugin Author Baden

    (@baden03)

    The feature we added works with all standard conditional tags from WordPress. It will also work with any user defined plugin so in theory, if you have a way of knowing your search terms are highlighted, you can call that using the expand_on tag.

    For example, if you had a function called ‘search_highlight’ that returned true when you wanted the expand elements to autoexpand you would just call it like:

    [expand title="trigger" expand_on="search_highlight"]...[/expand]

    If you do not recall your receipt ID, you can try and request a password reset by using the email address you used to purchase the plugin here.

    If that does not work, which version of Collapse-Pro-Matic do you have installed?

    Hello Baden

    I managed to write a function that returns true when viewing a post that is one of the search results.
    Awesome!

    One problem only:
    If I allocate a cookie to any colomat, the cookie seems to take preference over the expand_on…

    Plugin Author Baden

    (@baden03)

    ah ha! yes, that would be the case… so you want the expand_on to override the cookie… we’ll look into that.

    Zigackly!

    Your support rocks, by the way.

    Plugin Author Baden

    (@baden03)

    We sent over an update to Collapse-Pro-Matic that should address this issue. Let us know how it goes!

    Awesome, awesome, awesome!
    Works like a charm.

    It is a thing of immense beauty

    Plugin Author Baden

    (@baden03)

    Alright, alright!
    We’ll mark this issue as resolved and push out the update for the pro in the next days.
    In the mean time, feel free to leave a little plugin/support review if your are so moved. You also are invited to leave a little testimonial for the pro version (once you login to your account)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Need expandall when is_search’ is closed to new replies.