N
N
nikita_falcon2020-11-06 18:31:08
css
nikita_falcon, 2020-11-06 18:31:08

How can I add the current page name ({=this.Name}) to the title of the site?

There is a website, its structure is as follows:

structure
5fa56b9eab557794557499.png

I need each site to have its own title, and it generates for everyone at once, I make changes to one file, it is applied to everyone (it seems to be intended) it is
necessary for {=this.Name} to work, or to replace it with something
Image
5fa56ee3dbdd5314440046.png

$APPLICATION->SetPageProperty("title", "Сайт такой-то |  {=this.Name}");

it does the same as written.
at the moment implemented it like this, but it doesn't fit:
$APPLICATION->SetPageProperty("title", "Сайт такой-то |  ".str_replace(['/', 'index.php'], '', $APPLICATION->GetCurPage(true))." ");

you need to pull up what is displayed in the h1 tag for example

Answer the question

In order to leave comments, you need to log in

7 answer(s)
H
HamSter, 2016-06-28
@HamSter007

greensock help!
example*

G
Grigory S., 2016-06-28
@Grigory90

On SVG, animate path.

F
farlow, 2016-07-07
@farlow

2 pictures - one with a blue stripe, the other is not
the one with a blue one - the background is in the layer that lies on top and the layer width is gradually increased to 100%

O
Oleg, 2016-06-28
@politon

As an option based on the jqwery jqplot plugin

K
Kensha, 2016-06-29
@Kensha

snap.svg

N
nuclear_kote, 2016-07-08
@nuclear_kote

You can do it with pure css on top, make a picture with an alpha channel and holes with holes where the animation will be, and from below we do animation through css so that the background is filled with blue from left to right

A
Alexey Emelyanov, 2020-11-06
@babarun

{=this.Name}

Such tricks are possible only in the IS module.
In the structure control module, this is not possible; what values ​​are specified in the properties are displayed.
I want each site to have its own title
Go here: /bitrix/admin/site_admin.php?lang=ruadd all your sites, in the " Website name " field , specify the value you need, and then using SetTitle or SetPageProperty add this value to the title

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question