• Resolved acurran

    (@acurran)


    Hello,
    I have tried adding rel=”group1″ to each of the colorbox content links (in addition to class=”colorbox-link”) but that is not giving me the next/prev arrows as I would expect.

    How do you group content links so that you can navigate from content item to content item using the arrows, just like the way you do for images?
    Thanks,
    Aidan

    https://www.ads-software.com/extend/plugins/jquery-colorbox/

Viewing 7 replies - 1 through 7 (of 7 total)
  • I would also really like to know how to do this, anyone have the answer?

    Plugin Contributor techotronic

    (@techotronic)

    Hi,
    at the moment, this is not possible.

    I guess I could add a similar functionality to a newer version as the one for images.
    If a link has the CSS class “colorbox-link”, it will not be grouped.
    If a link has the CSS class “colorbox-link-ID” (where ID is a number like “123”), it will be grouped with all other links that have the same ID.

    Cheers,
    Arne

    That would be a fantastic function as currently there seems to be a lack anywhere on the web where this is possible – not without some super heavy hacking. I think it would definitely be a USP for you plugin if you were to offer this ??

    If a link has the CSS class “colorbox-link”, it will not be grouped.
    If a link has the CSS class “colorbox-link-ID” (where ID is a number like “123”), it will be grouped with all other links that have the same ID.

    Is there a way to over ride the class ID per [gallery] shortcode? I have numerous images attached to a page. I selectively display sections of the attachments by using the ‘include’ function of the gallery shortcode.

    EXAMPLE:

    <h2>Hospitality</h2>
    [gallery link="file" columns="2" include="4389, 4388" ]
    [expand title="View More Hospitality Content" swaptitle="Close" rel="design-highlander" findme="auto" trigpos="below" id="hospitalityContent"]
    [gallery class="colorbox-9000" link="file" columns="2" include="4387, 4386, 4385, 4384, 4383, 4382, 4381, 4380, 4379, 4378, 4377, 4376, 4375, 4374, 4373, 4372, 4371, 4370, 4369, 4368, 4367, 4366, 4365, 4364, 4363, 4362, 4361, 4360, 4359, 4358, 4357, 4338, 4335, 4341, 4337, 4351, 4350, 4349, 4348, 4347, 4346, 4345, 4343, 4344, 4339, 4334, 4336" ]
    [/expand]
    
    <div class="SecDiv23"></div>
    
    <h2>Education</h2>
    [gallery class="9001" link="file" columns="2" include="4406, 4403" ]
    [expand title="View More Educational Content" swaptitle="Close" rel="design-highlander" findme="auto" trigpos="below" id="educationContent" ]
    [gallery  class="9001" link="file" columns="2" include="4411, 4410, 4409, 4408, 4405, 4404, 4402, 4352" ]
    [/expand]
    
    <div class="SecDiv23"></div>

    In the example above, I would like to only group the images within each category.

    Your plug-in has the option of automatically grouping galleries on one page/post, and is currently doing so by assigning a colorbox-ID that is the same on all images contained on the page.

    I would like to over ride that assigned CLASS, and provide my own.

    Thank you.

    Plugin Contributor techotronic

    (@techotronic)

    Hi,

    when the page is rendered (and the plugin is activated to add Colorbox automatically), every image that doesn’t already have a CSS class “colorbox-” will get one with the pattern “colorbox-ID” where ID is the id of the post or page.
    Afterwards, all images with the same “colorbox-ID” are grouped.

    If you add for example “colorbox-1” to all images of the first gallery and “colorbox-2” to all of the second, the images would be grouped in different groups.

    Cheers,
    Arne

    Did you end up deciding to add this functionality? There are plenty of similar plugins that open inline content but I’m having trouble finding one where I can group them with previous/next links. Thank you.

    Plugin Contributor techotronic

    (@techotronic)

    yes, version 4.4 can group links that have the CSS class “colorbox-link-ID”.
    Cheers,
    Arne

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: jQuery Colorbox] How do you group inline content?’ is closed to new replies.