• Resolved mygrove

    (@mygrove)


    I don’t think I am trying to do something the plugin is not designed to do.

    Here is a simple list that I want to nest at two levels:

    Level 1
    Level 2a
    Detail 2a
    Detail 2a
    Level 2b
    Detail 2b
    Detail 2b

    I want it to appear something like this:

    Level 1
    Show Less
    Level 2a
    Show More
    Level 2b
    Show More

    and then:

    Level 1
    Show Less
    Level 2a
    Show Less
    Detail 2a
    Detail 2a
    Level 2b
    Show Less
    Detail 2b
    Detail 2b

    Now the problem is that toggling at level 1 only controls Level 2a (not 2b) even though the terminating shortcode [/bg_collapse] is at the very end.

    Like this:

    Level 1
    [bg_collapse view=”link-list” color=”#4a4949″ expand_text=”Show More” collapse_text=”Show Less” ]
    Level 2a
    [bg_collapse_level2 view=”link-list” color=”#4a4949″ expand_text=”Show More” collapse_text=”Show Less” ]
    Detail 2a
    Detail 2a[/bg_collapse_level2]
    Level 2b
    [bg_collapse_level2 view=”link-list” color=”#4a4949″ expand_text=”Show More” collapse_text=”Show Less” ]
    Detail 2b
    Detail 2b[/bg_collapse_level2][/bg_collapse]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author buntegiraffe

    (@buntegiraffe)

    Hello @mygrove,

    I’m afraid nesting link-lists will be a bit too complicated for this simple plugin.

    If you can consider switching to simple links instead (like at https://sandbox.bunte-giraffe.de/test-for-mygrove/), this should do the job.

    Please let me know if this can be an option for you or you really need to use it in lists.

    Thread Starter mygrove

    (@mygrove)

    Perfect. Thank you.

    Even this variation works too:

    [bg_collapse view=”link” color=”#4a4949″ expand_text=”Level 1″ collapse_text=”Level 1″ ]
    [bg_collapse_level2 view=”link” color=”#4a4949″ expand_text=”Level 2a” collapse_text=”Level 2a” ]
    Detail 2a
    Detail 2a[/bg_collapse_level2]
    [bg_collapse_level2 view=”link” color=”#4a4949″ expand_text=”Level 2b” collapse_text=”Level 2b” ]
    Detail 2b
    Detail 2b[/bg_collapse_level2][/bg_collapse]

    Plugin Author buntegiraffe

    (@buntegiraffe)

    Thanks a lot for letting me know, mygrove. Marking this resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Nesting problem’ is closed to new replies.