Forums

Collapse-O-Matic
[resolved] Findme/scrollonclose in internal collapse trigger? (9 posts)

  1. Darwyn43
    Member
    Posted 5 months ago #

    Hey,

    Is there any way to do a findme/scrollonclose that is triggered on an internal collapse trigger? I have a content-heavy site (basically collapsible articles) and want to have the collapse trigger return the reader to the origin.

    Thanks!

    http://wordpress.org/extend/plugins/jquery-collapse-o-matic/

  2. Baden
    Member
    Plugin Author

    Posted 5 months ago #

    A Link would help greatly.

  3. Darwyn43
    Member
    Posted 5 months ago #

    Hey Baden,

    Could you be more specific? This sounds an awful lot like I'm missing something obvious, but I looked in the supporting documentation and couldn't find anything on "A Link" (or maybe its just a "link?") What am I missing?

    Just in case, here's a page that uses a lot of collapse-o-matic: http://www.morgankinney.com/epics/chemical-information-and-the-inner-world/dopamine-goals-dreams-2/dopamine-101/

    Best,
    Morgan

  4. Baden
    Member
    Plugin Author

    Posted 5 months ago #

    Yes, a link to an example page that helps us understand what you are trying to accomplish. The link above was very helpful, thank you.

    OK. So you want to have the Internal Collapse Trigger be able to scroll the page back to the trigger text. Let us play with this a bit and come up with a solution for you.

    Thanks for the feedback, please stand by.

  5. Darwyn43
    Member
    Posted 5 months ago #

    Haha It was more obvious than I thought!

    No worries, standing by :)

  6. Darwyn43
    Member
    Posted 5 months ago #

    Hey Baden,

    I thought I'd add an unrelated issue in case you know something about it.

    Since the WP upgrade to 3.5, I've been experiencing issues with my content editor (I'm using Ultimate TinyMCE) removing my collapse-o-matic colomat-close code.

    It seems to happen somehow by transitioning between visual and text editor, as the problem appears in the text editor when the code (<span id...class...>Collapse</span>[/expand]) gets replaced with the way that code looks in the visual editor (Collapse[/expand).

    I'm honestly not sure if this is a Ultimate TinyMCE problem or a collapse-o-matic problem, so I've posted both in Josh Lobe's forum and thought I'd mention it here as well. Any thoughts?

    Thanks (Sorry?) for working double duty :)
    Morgan

  7. Baden
    Member
    Plugin Author

    Posted 5 months ago #

    Morgan,

    Regarding the Visual Editor... it's always best to use the HTML view when working with shortcodes... never sure how the Visual editor mangle things.

    As for the Internal Scroll-To-Trigger, Here is a bit of good news!
    Please download and install version 1.5d from The Plugin Oven: http://plugins.twinpictures.de/plugins/collapse-o-matic/

    As you can see in this demo version 1.5d adds the ability to assign the scroll-to-trigger class to Internal Collapse Triggers. This will automatically scroll the page to the Main Trigger Text.

    Please let us know if this works for you... we hope to release 1.5 next week.

    -Twinpictures

  8. Darwyn43
    Member
    Posted 5 months ago #

    Baden, you rock! Thanks man, this is EXACTLY what I need.

    I'm aware of the shortcode problem with the visual editor but I didn't realize that you could actually lose the shortcode by switching between the visual editor and text/html editor. I thought you lost the shortcode code when you updated FROM the visual editor, and I thought I was taking precautions to enter content in the visual editor and then switch to the html editor to update (I enter a LOT of content and the text editor gets old/cluttered for that). But you think the transitioning between them can cause it? Basically I just shouldn't use the visual editor?

    Anyway, thanks a lot - creating the code for me goes above and beyond. You're the best!

    Morgan

  9. Baden
    Member
    Plugin Author

    Posted 5 months ago #

    Glad everything worked out!

Reply

You must log in to post.

About this Plugin

About this Topic