Jump to content

Как из хлебных крошек убрать заголовок темы?

Featured Replies

Posted

Снимок.PNG

Привет всем)

Как из хлебных крошек убрать заголовок темы в которой ты находишься? Смысл вообще в выводе заголовка не вижу, для чего он выводится непонятно) 

 

9 часов назад, andros0789 сказал:

Как из хлебных крошек убрать заголовок темы в которой ты находишься?

Смотрите примерно здесь.

Спойлер

2017-07-03_08-53-48.png

 

29 минут назад, andros0789 сказал:

Я хочу понять как именно из этого кода убрать заголовок темы)

Как вариант.

Где нибудь перед {{foreach \IPS\Output::i()->breadcrumb as $k => $b}}  дописать {{array_pop(\IPS\Output::i()->breadcrumb);}}

Т.е

		{{array_pop(\IPS\Output::i()->breadcrumb);}}{{/*remove last element of the array*/}}

		{{foreach \IPS\Output::i()->breadcrumb as $k => $b}}
			<li {{if $useMicrodata}} itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"{{endif}}>
				{{if $b[0] === NULL}}
					{$b[1]}
				{{else}}
					<a href='{$b[0]}' {{if $useMicrodata}}itemscope itemtype="http://schema.org/Thing" itemprop="item"{{endif}}>
						<span {{if $useMicrodata}}itemprop="name"{{endif}}>{$b[1]} {{if ( $i + 1 != count( \IPS\Output::i()->breadcrumb ) )}}<i class='fa fa-angle-right'></i>{{endif}}</span>
					</a>
				{{endif}}
				<meta itemprop="position" content="{$i+2}">
			</li>
			{{$i++;}}
		{{endforeach}}

 

В 3.07.2017 г. в 15:21, kgb сказал:

Как вариант.

Где нибудь перед {{foreach \IPS\Output::i()->breadcrumb as $k => $b}}  дописать {{array_pop(\IPS\Output::i()->breadcrumb);}}

Т.е


		{{array_pop(\IPS\Output::i()->breadcrumb);}}{{/*remove last element of the array*/}}

		{{foreach \IPS\Output::i()->breadcrumb as $k => $b}}
			<li {{if $useMicrodata}} itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"{{endif}}>
				{{if $b[0] === NULL}}
					{$b[1]}
				{{else}}
					<a href='{$b[0]}' {{if $useMicrodata}}itemscope itemtype="http://schema.org/Thing" itemprop="item"{{endif}}>
						<span {{if $useMicrodata}}itemprop="name"{{endif}}>{$b[1]} {{if ( $i + 1 != count( \IPS\Output::i()->breadcrumb ) )}}<i class='fa fa-angle-right'></i>{{endif}}</span>
					</a>
				{{endif}}
				<meta itemprop="position" content="{$i+2}">
			</li>
			{{$i++;}}
		{{endforeach}}

 

А как покажем толко первий елемент после начални т.е без главная ..... 

перед:

Главная > IPS Community Suite > Техническая поддержка > IPS Community Suite 4 > Как из хлебных крошек убрать заголовок темы?

после:

 IPS Community Suite 

 

10 часов назад, Silence сказал:

А как покажем толко первий елемент после начални т.е без главная ..... 

Возможно  удалить/закомментировать вот это

		<li {{if $useMicrodata}} itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"{{endif}}>
			<a title="{lang="home"}" href='{setting="base_url"}' {{if $useMicrodata}}itemscope itemtype="http://schema.org/Thing" itemprop="item"{{endif}}>
				<span {{if $useMicrodata}}itemprop="name"{{endif}}><i class='fa fa-home'></i> {lang="home"}{{if count( \IPS\Output::i()->breadcrumb )}} <i class='fa fa-angle-right'></i>{{endif}}</span>
			</a>
			<meta itemprop="position" content="1">
		</li>

 

9 часов назад, kgb сказал:

Возможно  удалить/закомментировать вот это


		<li {{if $useMicrodata}} itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"{{endif}}>
			<a title="{lang="home"}" href='{setting="base_url"}' {{if $useMicrodata}}itemscope itemtype="http://schema.org/Thing" itemprop="item"{{endif}}>
				<span {{if $useMicrodata}}itemprop="name"{{endif}}><i class='fa fa-home'></i> {lang="home"}{{if count( \IPS\Output::i()->breadcrumb )}} <i class='fa fa-angle-right'></i>{{endif}}</span>
			</a>
			<meta itemprop="position" content="1">
		</li>

 

нет - нет ето :

9 часов назад, kgb сказал:

А как покажем толко первий елемент после начални

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.