Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author twinpictures

    (@twinpictures)

    how are the nested expands being created?
    does that match the nested expand example in the documentation?

    Thread Starter mrn3

    (@mrn3)

    I create them using short codes like this:

    [expand title=”Access Slack”][insert page=’access-slack’ display=’content’][/expand]

    Yes, it matches the example in the documentation:

    [expand title=”trigger text”]hidden content[/expand]

    The problem is just when you get them nested within each other on different pages.

    I actually just did a test with this:

    [expand title=”something”][expand title=”something_else”]wow[/expand][/expand]

    and that doesn’t work as expected either. So it seems like nesting one expand within another is not supported?

    Plugin Author twinpictures

    (@twinpictures)

    Please read carefully the part of the documentation entitled Nested Expand Elements.

    [expand title="Root Level"]
       [expandsub1 title="Nested Level 1"]
          Ta-Da
       [/expandsub1]
    [/expand]
    
    • This reply was modified 4 years, 7 months ago by twinpictures.
    Thread Starter mrn3

    (@mrn3)

    Thanks so much – sorry I missed that in the documentation.

    I suppose the only drawback for me on this is that I don’t always know what sub level a page will be at – it can be included on many levels. It would be nice if it were more abstract instead of being a number 1-30. But actually, I just tried

    [expandsub25 title=”Root Level”]
    [expandsub20 title=”Nested Level 1″]
    Ta-Da
    [/expandsub20]
    [/expandsub25]

    and even that works, so i guess the order of the numbers don’t matter, as long as they don’t conflict, so I think I can make this work.

    thanks again.

    Plugin Author twinpictures

    (@twinpictures)

    correct, the numbers just need to be unique.

    Thread Starter mrn3

    (@mrn3)

    Yeah, so this doesn’t work since I have the same number:

    [expandsub25 title=”Root Level”]
    [expandsub20 title=”Nested Level 1″]
    [expandsub25 title=”Nested Level 2″]
    Ta-Da
    [/expandsub25]
    [/expandsub20]
    [/expandsub25]

    So I think rather than being limited to 1-30, it would be nice if I could just put any string I want in there so I don’t have to think about the numbers. I am not sure how hard that would be to change from a predictable number to strings that the user defines.

    [expandsubRoot title=”Root Level”]
    [expandsubFirstLevel title=”First Level″]
    [expandsubSecondLevel title=”Second Level″]
    Ta-Da
    [/expandsubSecondLevel]
    [/expandsubFirstLevel]
    [/expandsubRoot]

    without this, I just have to remember on each page to assign a number and make sure they don’t overlap.

    In any case, thanks again.

    Thread Starter mrn3

    (@mrn3)

    One other thing. While this is working for me if I do the examples above, when I try to actually use it in conjuction with insert page, it doesn’t work.

    So if I have a page like this:

    access-slack:

    1. [expandsub19 title=”Set Up Slack”][insert page=’set-up-slack’ display=’content’][/expandsub19] if you haven’t already
    2. Open the Slack application on your computer
    3. Be sure to have selected the right group

    and then I have another page that includes that page:

    work-with-team:

    [expandsub25 title=”Access Slack”][insert page=’access-slack’ display=’content’][/expandsub25]

    It opens the outer one, but not the inner one. I am not sure if the insert page somehow interferes with the Javascript on this or what.

    • This reply was modified 4 years, 7 months ago by mrn3.
    Plugin Author twinpictures

    (@twinpictures)

    as for ‘use any string’ this is a bit tricky, as the shortcodes would need to be defined in advanced. what you could consider is not using shortcodes, but rather the roll-your-own method of creating the expand elements.

    regarding the issue you are having with some expand elements opening and some not, it would be helpful if you could share a link to the page, maybe there is a js error… maybe the shortcode was copy-pasted in visual mode and carried over some unwanted html… converted quotes to curly-quotes, etc.

    Thread Starter mrn3

    (@mrn3)

    Okay, thanks for your help. I agree with you that the use any string could be pretty tricky – I can work around that for now.

    On my second issue, here is the example:

    https://imediasalesteam.com/bake-a-cake/

    I don’t see any JS errors in the console. Basically it looks like this:

    Bake A Cake (grandparent):

    [expandsub1 title=’Turn On The Oven’][insert page=’turn-on-the-oven’ display=’content’][/expandsub1]
    Put the cake in
    Pull the cake out

    Turn On The Oven (parent):

    [expandsub2 title=’Find The On Switch’][insert page=’find-the-on-switch’ display=’content’][/expandsub2]
    Push the on switch
    Make sure it turned on

    Find The On Switch (child):

    Put on your glasses
    Feel around for the switch on the left

    So the expand on the parent doesn’t seem to open the child.

    Thread Starter mrn3

    (@mrn3)

    I just added on the Turn On the Oven:

    [expandsub2 title=’Find The On Switch’][insert page=’find-the-on-switch’ display=’content’][/expandsub2]
    Push the on switch
    Make sure it turned on
    [expandsub3 title=’Trying A Last Option’]I think this should work[/expandsub3]

    So this kind of indicates to me that it might be the insert page that doesn’t support nesting for some reason – thoughts on that?

    Thread Starter mrn3

    (@mrn3)

    Okay, I actually just realized that my problem wasn’t with Collapse-o-Matic – it was that Insert Pages doesn’t allow nesting by default because they worry you will have a circular loop of nested pages and get in an infinite loop. I disabled that check, and all is working now!

    https://www.ads-software.com/support/topic/nested-inserts-possible/

    Thanks so much!

    • This reply was modified 4 years, 7 months ago by mrn3.
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Issue with multiple levels of nested pages’ is closed to new replies.