• Resolved Mr. NiceGuy

    (@mr-niceguy)


    With version 3.7 it seems there is a problem with the “Current Item Suffix”.
    I use “Home Prefix” to start a <div xyz> and close it at the “Current Item Suffix”.
    At my site I use the breadcrumbs twice at the top and bottom line.
    The top line works great but at the bottom line the </div> from the “Current Item Suffix” apears two times.
    For testing I wrote </div></div> and the bottom displays </div></div></div></div>.
    It seems to be allways doubled with the second call to bcn_display();

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Havlik

    (@mtekk)

    Why are you using the Prefix/Suffix structure to surround the entire breadcrumb trail with a div element? You should manually place div elements around your calling code instead.

    Anyways, onto the issue itself. Yes, I will need to look into a fix for that. What happens is Breadcrumb NavXT caches the internal breadcrumb trail so the entire trail does not need to be regenerated on a second calling on a page, however, the way current item breadcrumbs are generated causes the prefix/suffix to be applied multiple times (third run would see three divs for your first example).

    Thread Starter Mr. NiceGuy

    (@mr-niceguy)

    >You should manually place div elements around your calling code instead.
    You’re right. In my special case I use several divs for all items/elemets.
    And I don’t want to seperate them.
    But yes, normally it’s better to set them within the theme.

    Plugin Author John Havlik

    (@mtekk)

    Also, just as a quick workaround until I get this fixed (the next two weeks are going to be quite busy for me). You can do the following:
    Use this inplace of your first call:

    $breadcrumb = bcn_display(true);
    echo $breadcrumb;

    and then for your second call, just use echo $breadcrumb again.

    Thread Starter Mr. NiceGuy

    (@mr-niceguy)

    I’m stupid. Sure … and it will save performance ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Breadcrumb NavXT] Problem with "Current Item Suffix"’ is closed to new replies.