WordPress.org

Ready to get started?Download WordPress

Forums

Collapse-O-Matic
How can I post different blogs inside the collapsomatic box? (20 posts)

  1. akivi
    Member
    Posted 2 years ago #

    I made the collapsomatic a plugin on a WordPress page, as a sub menu for blogs. There are 10 different blog categories and the collapsomatic shows/hides the blogs the user clicks on.

    How can I link those blogs to each separate collapsomatic category? Do I have to link them manually, through the php? How do I use the shortcode on them so the blogs only go in the collapsomatic boxes and when blogs get written, they automatically go in their respective collapsomatic boxes?

    Srry. Kinda a WP noob

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

  2. UaMV
    Member
    Posted 2 years ago #

    Just today, i have been developing a supplemental plugin to Collapse-O-Matic, called Collapse-O-Collection (let me know if you consider this infringement, Baden! and, P.S. i'd love to run this one by you at some point). akivi, it should be able to give you this functionality and is just about ready. i am using it extensively for a new site i'm developing. The description is as follows:

    Collapse-O-Collection creates a shortcode that is able to collect subpages or posts (filtered by category, type, author, and/or tag) and cleanly list them using jQuery Collapse-O-Matic. Requires the jQuery Collapse-O-Matic plugin.

    The [collect] shortcode takes the following parameters:

    category="*category-slug*"
    type="*post-type*"
    tag="*tag-slug*"
    author="*post-authors-nicename*"

    **If none of the above post parameters are defined, then the collection pulls subpages of the current page (or nothing, if embedded in a post)**

    number="*Number of posts to display*" (defaults to all)
    expand="*Number of posts at start of collection to set expanded*" (defaults to 0)
    display="*excerpt | full*" (defaults to excerpt)
    highlander="*Sets Collapse-O-Matic highlander class*" (defaults to no relation)
    split="*Sets number of columns for the collection of posts*" (defaults to 1 and limited to 7)
    header="*Sets a header for the current collection of posts*"
    headhighlander="*Sets Collapse-O-Matic highlander class for header*"
    headlevel="*first | second*" (defaults to 'first')
    headexpand="*no*" (default is expanded)
    findme="*auto | no*" (defaults to auto)

    splitchild="*Sets number of columns for child pages*" (defaults to 1 and limited to 7)
    splitgrandchild="*Sets number of columns for grandchild pages*" (defaults to 1 and limited to 7)

    Additionally, if a header has been provided, content can be enclosed in the shortcode, which will then display directly beneath the header and before the collection.

  3. UaMV
    Member
    Posted 2 years ago #

    akivi: You can see what i have, thus far, developed at http://uam.vandercar.net/ Hope this helps your situation some. Test it out and let me know how it works for you. Thanks!

  4. akivi
    Member
    Posted 2 years ago #

    I will try it out. Thank you UaMV

  5. UaMV
    Member
    Posted 2 years ago #

    i made a few small updates. If you've grabbed it once, you might want to grab it again.

  6. Baden
    Member
    Plugin Author

    Posted 2 years ago #

    Cool! We'll check this out in the next days. Thanks UaMV.

  7. UaMV
    Member
    Posted 2 years ago #

    Okay, i've made some further edits ... the above description and some of the above attributes are no longer valid. i think it is now pretty well set (at least for my current purposes).

  8. akivi
    Member
    Posted 2 years ago #

    OK. Im still having trouble putting blog pages inside collaps-o-matic box. How can I use the shortcode and Collaps-O-Collection with blog postings?
    Do I put the shortcode inside functions.php?
    Or do I just put the shortcode inside [expand] shortcode? [/expand]

    Sorry, im a noob. Thanx in advance

  9. UaMV
    Member
    Posted 2 years ago #

    Are you wanting to make a single post collapsible? Are you using this on a multi-site install? (don't know if Collapse-O-Collection will work on multi-site ... not tested) Or do you have multiple authors on a single blog? Do you have a test page you can share? Need a little more info. Thanks!

  10. akivi
    Member
    Posted 2 years ago #

    I have 10 different categories that have collapsable boxes. All 10 have 10 different blog pages in it. The one I am currently trying to get to work is in Posts category. Its all going to have one author. All the blog posts are there right now. I will add the 9 more later. There are are subpages to this site. I am running this off from MAMP right now, so I dont know if I can forward you the link.

    I am also trying to use Display Posts Shortcode plugin and put those posts in the Collapsomatic.

  11. akivi
    Member
    Posted 2 years ago #

    Oh and I am inputting the text into Collapsomatic boxes at the page admin dashboard.

  12. UaMV
    Member
    Posted 2 years ago #

    If you've installed both Collapse-O-Matic and Collapse-O-Collection 0.2, then you should be able to simply enter the following shortcode in any page or post. This will display excerpts of all posts in the 'Posts' category:

    [collect category="posts"]

    This will work, provided the slug for the 'Posts' category is actually set to 'posts'. If you'd like to display the full post, you can add the attribute display="full".

    Note, that the [expand] shortcode is not even needed on the front-end, as it is performed on the back-end of the [collect] shortcode. Of course, this does limit the customization of the collapsed content. Let me know if this works for you.

  13. akivi
    Member
    Posted 2 years ago #

    Thank you for the support UaMV. Much appreciated

  14. UaMV
    Member
    Posted 2 years ago #

    'Tis a pleasure to be of assistance.

  15. katzka
    Member
    Posted 1 year ago #

    Hi
    This page was very inspirational to me
    i built a page which collects all the posts in "reviews" category.
    Id like only 2 more things:
    1. when i expand one post, that would collapse the expanded before
    2. i did not understand the split attribute
    i wrote [collect category="reviews" display="full" split="4"]
    i thought i will get a menu-like thing with 4 links in a row but each
    link is in a separate line
    Is it possible to split the line into 4 links, each showing the title of another post?
    thanks for help, it is a great add to the plugin

  16. UaMV
    Member
    Posted 1 year ago #

    Pretty sure I've updated this plugin for my personal use but have not yet posted it back to the above linked site. I'll try and update that page within the next 48 hours. Glad this was of use. I also hope to get this in the repository which would help with any future updates. Just don't quite have it to that point yet.

  17. katzka
    Member
    Posted 1 year ago #

    thanks a lot, looking forward for the update.

  18. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    Hey UaMV... let me know if you need any hooks on the Collapse-O-Matic side. Go WordPress Community, GO!

  19. UaMV
    Member
    Posted 1 year ago #

    Thanks, Baden! i'll let you know. Haven't been able to devote too much to this in recent days, but it's working for my purposes at the moment.

    @katzka: You can now find Collapse-O-Collection v0.4 here. Note that a few attributes might be different from what was in the previous version. For an extensive example, you can check out the site for which i developed it. i'm in process of changing our server, as our site has kept going down from an overload. Hope all works and enjoy!

    Ah, one other thing i have noticed and am still trying to remedy ... extensive use of this plugin can slow load time. Use wisely.

  20. cscarnevale
    Member
    Posted 1 year ago #

    Hi UaMV,

    I'm interested in trying Collapse-o-Collection, but I'm not sure how to install it. Do I need to rearrange some files or directories to make it work? I thought I had it going fora while (I had it activated in WordPress backend), but it was making some weird things happen (i.e. disable the "preview post" feature), so I'm thinking I didn't install it correctly.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic