Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Engan 430 posts 1167 karma points
    Nov 24, 2017 @ 13:50
    Tom Engan
    0

    Multiple use of LeBlender tabs editors on same page dosn't give uniques id's and href's.

    Leblender Tab doesn't work as intended if you have multiple LeBlender editors on the same page, since same Id's will be used multiple places on the same page using @Model.Items.IndexOf(item). Perhaps the included examples could be upgraded by taking into account when used multiple times on the same page? (Note: I havn't tested if the problem is similar with the carousel, but probably this also applies).

    Anyone who has a temporary solution for using multiple tabs editors on the same page?

  • Tom Engan 430 posts 1167 karma points
    Nov 24, 2017 @ 16:29
    Tom Engan
    0

    For now, I just added a numeric propery to the tabs editor, and added it in Tabs.cshtml like id="tab-@item.GetValue("tabEditorNo")@Model.Items.IndexOf(item)" and same with href="#tab-@item.GetValue("tabEditorNo")@Model.Items.IndexOf(item)".

    Now I use number 0 in all tabs in the first editor, and 1 in all tabs in the second editor and so on.

    The text in id and href is just merged together here, but it gives unique IDs on the whole page.

Please Sign in or register to post replies

Write your reply to:

Draft