A
A
auspn2017-06-21 11:44:43
PHP
auspn, 2017-06-21 11:44:43

Structured data (breadcrumb) smarty v2, how to number elements?

Hello. I have a line of code that outputs a page path (breadcrumb) and breadcrumb structured data.

{if !($page.main&&($mode||$news_post)) && ($e.page_id!=$site.page_id) && ($e.url!="/") && !$hide_e_page}
            {$path_separator}
            {if $e.page_id==$page.page_id&&(!($mode||$news_post)||$mode=='album_list'||$mode=='main'||$mode=='default'||$mode=="archive"||($mode=="index" && $page.plugin_name == 'board'))}
                {$delimiter_left}
                {if $allow_tags}
                    {$e.name|htmlspecialchars_decode}
                {else}
                    <span itemscope="" itemprop="itemListElement" itemtype="http://schema.org/ListItem"><span itemprop="item"><span itemprop="name">{$e.name|htmlspecialchars_decode|strip_tags}</span></span>
    <meta property="position" content="1"></span>
                {/if}
                {$delimiter_right}
            {else}
                <a href="{$e.url}">{$delimiter_left}{if $allow_tags}{$e.name|htmlspecialchars_decode}{else}{$e.name|htmlspecialchars_decode|strip_tags}{/if}{$delimiter_right}</a>
            {/if}
        {/if}

Tell me, what command should be inserted inside content="" in order to make the numbering, depending on the level of nesting of breadcrumbs?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question