N
N
natoje-zlo2021-04-10 21:25:26
DLE
natoje-zlo, 2021-04-10 21:25:26

How to remove circular links in the menu in Dle?

How to remove cyclic links in dle in the regular menu via available
Something I can’t figure out how to write correctly
, for example.
if we are on the main page, then the link is assigned the class of the active item

<a[available=main] class="active"[/available] href="/" >Главная</a>

But I don’t understand how to register
if on the main page, then display span instead of a link, for example.
who is in the subject, tell me how to do it right

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Tutubalin, 2021-04-10
@natoje-zlo

this is how a collective farm should work

[static=about_us]<span [/static][not-static=about_us]<a[/not-static] [static=about_us] class="active"[/static][not-static=about_us]  href="/about_us.html[/not-static] " >О нас[not-static=about_us]</a>[/not-static] [static=about_us]</span>[/static]

Mark with a decision

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question