RSS   Twitter   Copiny   Copiny
Нашел ошибку? 

Выдели фрагмент текста с ошибкой или неточностью и нажми Ctrl+Enter!

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

Хлебные крошки (или навигатор сайта) в ядре Joomla можно включить или выключить для всех страниц в "Менеджере модулей" панели управления. Но у нас нет возможности отключить хлебные крошки на "особых" страницах, например на главной.

Существует два способа справиться с этой проблемой

1 способ:

Назначить модуль навигатора сайта на все пункты меню кроме главной страницы. Но здесь возникает неудобство - при добавлении новых пунктов вы должны всегда следить за этим в модуле навигатора.

2 способ:

Заменить в шаблоне разметку позиции хлебных крошек. Найдите следующий код

<jdoc:include type="module" name="breadcrumbs" />

И замените его на

if( JRequest::getVar( 'view' ) != 'frontpage' ) { ?>
    <p>You are here: <jdoc:include type="module" name="breadcrumbs" /></p>
<?php }

Возможно условие может быть немного другим, но принцип тот же.

Примечание: второй способ рассчитан на то что на главной странице у вас выводится пункт меню "Материалы/Шаблон блога материалов на главной".

Смотрите также:
Комментарии (56) Добавить комментарий
  • Роман
    Роман
    29 Августа 2011, 00:33
     ↑  0  ↓     ответ

    2 способ: НЕ помогло. выдает ошибки.

    Во-первых синтаксис неправильно написан.

    Во-вторых с таким кодом на главной крошки так же останутся.

    • Андрей
      Андрей
      28 Октября 2011, 13:57
       ↑  +2  ↓     ответ

      Все отлично работает, спасибо автору )

      просто автор немного не дописал, либо код при вставке обрезался

      перед if нужно открыть пхп и в конце после "<?php }" - закрыть.

      Будет выглядеть -

      <?php if( JRequest::getVar( 'view' ) != 'frontpage' ) { ?>

      <p>You are here: <jdoc:include type="module" name="breadcrumbs" /></p>

      <?php } ?>

      • stasyansky
        stasyansky
        05 Февраля 2012, 21:58
         ↑  0  ↓     ответ

        Прикрутил к Joomla 1.7. Работает как надо! Спасибо.

  • Канадец
    Канадец
    16 Января 2013, 05:38
     ↑  0  ↓     ответ

    А куда конкретно вставлять этот код?

  • Sem
    Sem
    28 Января 2013, 16:49
     ↑  0  ↓     ответ

    Спасибо! Очень помогло! Долго искал, как убрать модуль через CSS в зависимости от пункта меню. С этой статьей, это заняло мин 10.

  • Олег
    Олег
    10 Июля 2014, 14:26
     ↑  +1  ↓     ответ

    день добрый, в каком файле править данный код ? спасибо

  • tinyurl.com
    tinyurl.com
    23 Ноября 2019, 20:03
     ↑  0  ↓     ответ

    I really like reading a post that will make people think.

    Also, many thanks for allowing for me to comment!

  • http://tinyurl.com/vz45zcu
    http://tinyurl.com/vz45zcu
    24 Ноября 2019, 16:01
     ↑  0  ↓     ответ

    Excellent post! We will be linking to this particularly great content on our website.

    Keep up the good writing.

  • coconut oil was
    coconut oil was
    26 Ноября 2019, 04:33
     ↑  0  ↓     ответ

    It's very trouble-free to find out any topic on net as compared to books,

    as I found this post at this website.

  • plenty of fish dating site
    plenty of fish dating site
    26 Ноября 2019, 12:59
     ↑  0  ↓     ответ

    I'm gone to inform my little brother, that he should also pay a

    visit this website on regular basis to get updated from most up-to-date news.

  • ps4 games
    ps4 games
    28 Ноября 2019, 14:46
     ↑  0  ↓     ответ

    Hi! This is my first visit to your blog! We are a group of volunteers and starting a new initiative in a community in the

    same niche. Your blog provided us valuable information to work on. You have done a extraordinary job!

  • ps4 games
    ps4 games
    29 Ноября 2019, 11:12
     ↑  0  ↓     ответ

    I have been surfing online more than 3 hours today, yet I

    never found any interesting article like yours. It's pretty worth

    enough for me. In my opinion, if all webmasters and bloggers made good content

    as you did, the web will be a lot more useful than ever before.

  • quest bars cheap
    quest bars cheap
    30 Ноября 2019, 12:55
     ↑  0  ↓     ответ

    My family members always say that I am killing my time here at net, but I know I am getting know-how everyday by reading thes nice articles

    or reviews.

  • quest bars cheap
    quest bars cheap
    02 Декабря 2019, 07:29
     ↑  0  ↓     ответ

    When someone writes an article he/she retains the idea of

    a user in his/her brain that how a user can be aware of it.

    Therefore that's why this post is outstdanding.

    Thanks!

  • quest bars cheap coupon twitter
    quest bars cheap coupon twitter
    03 Декабря 2019, 14:58
     ↑  0  ↓     ответ

    I've been surfing online more than 3 hours

    today, yet I never found any interesting article like yours.

    It is pretty worth enough for me. In my view, if all site owners and

    bloggers made good content as you did, the net will be much more useful than ever

    before.

  • quest bars cheap
    quest bars cheap
    04 Декабря 2019, 15:45
     ↑  0  ↓     ответ

    I'm amazed, I have to admit. Seldom do I encounter a blog that's

    both equally educative and interesting, and

    without a doubt, you've hit the nail on the head. The issue is something not enough people

    are speaking intelligently about. I'm very happy I came across

    this during my hunt for something relating to this.

  • ps4 games
    ps4 games
    06 Декабря 2019, 03:00
     ↑  0  ↓     ответ

    Hi, I do believe your site could possibly be having internet browser compatibility

    issues. When I take a look at your blog in Safari,

    it looks fine but when opening in Internet Explorer, it's got some overlapping issues.

    I just wanted to provide you with a quick heads up! Aside from that, excellent site!

  • ps4 games
    ps4 games
    06 Декабря 2019, 09:03
     ↑  0  ↓     ответ

    Fascinating blog! Is your theme custom made or did

    you download it from somewhere? A design like yours with a few simple tweeks would really make

    my blog stand out. Please let me know where you got your

    design. With thanks

  • ps4 games
    ps4 games
    06 Декабря 2019, 20:58
     ↑  0  ↓     ответ

    Attractive section of content. I just stumbled upon your site and in accession capital to say that I acquire in fact

    enjoyed account your weblog posts. Any way I'll

    be subscribing in your feeds or even I success you get admission to constantly

    rapidly.

  • quest bars cheap
    quest bars cheap
    08 Декабря 2019, 08:52
     ↑  0  ↓     ответ

    I'm not sure why but this site is loading very slow for me.

    Is anyone else having this issue or is it a issue on my

    end? I'll check back later on and see if the problem still exists.

  • quest bars cheap
    quest bars cheap
    09 Декабря 2019, 15:24
     ↑  0  ↓     ответ

    I got this site from my friend who informed me

    about this web site and at the moment this time

    I am visiting this web page and reading very informative articles or reviews here.

  • quest bars cheap
    quest bars cheap
    10 Декабря 2019, 05:40
     ↑  0  ↓     ответ

    I'm extremely impressed with your writing abilities and also

    with the layout to your blog. Is that this a paid theme

    or did you customize it yourself? Either way keep up the nice high quality writing,

    it's uncommon to see a nice blog like this one today..

  • ps4 games
    ps4 games
    11 Декабря 2019, 07:39
     ↑  0  ↓     ответ

    It's hard to come by well-informed people about this topic, however, you seem like you know what you're talking about!

    Thanks

  • ps4 games
    ps4 games
    13 Декабря 2019, 10:11
     ↑  0  ↓     ответ

    I would like to thank you for the efforts you've put in penning this blog.

    I'm hoping to see the same high-grade blog posts by you later on as well.

    In truth, your creative writing abilities has motivated me to get my

    own, personal site now ;)

  • ps4 games
    ps4 games
    15 Декабря 2019, 06:45
     ↑  0  ↓     ответ

    There's definately a lot to know about this subject. I like all the points you made.

  • coconut oil
    coconut oil
    15 Декабря 2019, 19:01
     ↑  0  ↓     ответ

    Having read this I thought it was rather enlightening.

    I appreciate you taking the time and effort to put this

    short article together. I once again find myself

    personally spending a significant amount of time both reading and posting comments.

    But so what, it was still worth it!

  • coconut oil
    coconut oil
    16 Декабря 2019, 17:00
     ↑  0  ↓     ответ

    I know this if off topic but I'm looking into starting my own blog and

    was wondering what all is needed to get set up? I'm assuming having a blog like yours

    would cost a pretty penny? I'm not very internet savvy so

    I'm not 100% positive. Any tips or advice would be greatly appreciated.

    Thank you

  • coconut oil
    coconut oil
    17 Декабря 2019, 15:21
     ↑  0  ↓     ответ

    For latest information you have to pay a quick visit world wide web and on the

    web I found this website as a most excellent web site for most up-to-date updates.

  • coconut oil
    coconut oil
    20 Декабря 2019, 08:54
     ↑  0  ↓     ответ

    Your style is unique compared to other people I've read stuff from.

    I appreciate you for posting when you've got the opportunity, Guess I

    will just bookmark this site.

  • how to get help in windows 10
    how to get help in windows 10
    28 Декабря 2019, 09:20
     ↑  0  ↓     ответ

    You should take part in a contest for one of the greatest blogs on the net.

    I am going to highly recommend this blog!

  • match.com free trial
    match.com free trial
    29 Декабря 2019, 12:58
     ↑  0  ↓     ответ

    If you desire to grow your knowledge just keep visiting this

    site and be updated with the most recent information posted here.

  • plenty of fish vs match.com free trial
    plenty of fish vs match.com free trial
    30 Декабря 2019, 17:29
     ↑  0  ↓     ответ

    Fantastic beat ! I wish to apprentice while you amend your web site, how could i subscribe

    for a weblog site? The account aided me a applicable deal.

    I had been a little bit acquainted of this your broadcast

    provided bright clear concept

  • match.com free trial
    match.com free trial
    31 Декабря 2019, 04:52
     ↑  0  ↓     ответ

    It's actually very difficult in this busy

    life to listen news on Television, therefore I simply use internet for

    that reason, and obtain the newest information.

  • https://russellwebster.tumblr.com/
    https://russellwebster.tumblr.com/
    01 Января 2020, 08:09
     ↑  0  ↓     ответ

    Hey There. I discovered your blog using msn. This is a really

    smartly written article. I'll make sure to bookmark it and return to learn more of your useful information. Thanks for the post.

    I'll certainly return.

  • sling tv
    sling tv
    03 Января 2020, 13:14
     ↑  0  ↓     ответ

    Definitely imagine that which you said. Your favorite

    reason appeared to be on the internet the simplest factor to be mindful of.

    I say to you, I certainly get annoyed whilst other folks

    think about issues that they plainly don't realize about.

    You managed to hit the nail upon the top and also outlined out the entire thing with no need side-effects

    , folks can take a signal. Will likely be back to get more.

    Thanks

  • sling tv asksylphoflight.tumblr.com
    sling tv asksylphoflight.tumblr.com
    05 Января 2020, 02:07
     ↑  0  ↓     ответ

    Aw, this was an extremely good post. Spending some time and actual effort to

    make a great article… but what can I say… I hesitate

    a lot and don't manage to get nearly anything

    done.

  • sling tv
    sling tv
    07 Января 2020, 09:54
     ↑  0  ↓     ответ

    I've been browsing online more than 3 hours

    today, yet I by no means found any attention-grabbing article

    like yours. It's beautiful price sufficient for me.

    Personally, if all web owners and bloggers made just right content as

    you probably did, the net will be a lot more helpful than ever before.

  • tinyurl.com
    tinyurl.com
    08 Января 2020, 02:34
     ↑  0  ↓     ответ

    It's awesome to pay a quick visit this web site and reading the views of

    all colleagues about this piece of writing, while I am also

    eager of getting knowledge.

  • sling tv
    sling tv
    14 Января 2020, 14:41
     ↑  0  ↓     ответ

    Right away I am going away to do my breakfast, after having my

    breakfast coming yet again to read further news.

  • sling tv
    sling tv
    14 Января 2020, 20:55
     ↑  0  ↓     ответ

    I like the helpful info you provide in your articles. I will bookmark your blog and check again here frequently.

    I am quite sure I will learn plenty of new stuff right

    here! Best of luck for the next!

  • sling tv
    sling tv
    15 Января 2020, 13:56
     ↑  0  ↓     ответ

    Thanks for the good writeup. It in fact was a enjoyment account it.

    Glance advanced to far brought agreeable from you! However,

    how could we be in contact?

  • sling tv
    sling tv
    17 Января 2020, 12:08
     ↑  0  ↓     ответ

    Excellent article. Keep posting such kind of info on your site.

    Im really impressed by your blog.

    Hey there, You have performed an excellent job. I will definitely digg it and for my part recommend

    to my friends. I'm confident they'll be benefited from this site.

  • sling tv
    sling tv
    18 Января 2020, 19:27
     ↑  0  ↓     ответ

    Good day! This is my first comment here so I

    just wanted to give a quick shout out and tell you I genuinely

    enjoy reading your blog posts. Can you recommend

    any other blogs/websites/forums that cover the same subjects?

    Thanks a lot!

  • sling tv
    sling tv
    19 Января 2020, 07:58
     ↑  0  ↓     ответ

    I know this if off topic but I'm looking into starting my

    own weblog and was curious what all is required to get set

    up? I'm assuming having a blog like yours would cost a pretty penny?

    I'm not very internet smart so I'm not 100% sure.

    Any tips or advice would be greatly appreciated.

    Thank you

  • sling tv best package 2020
    sling tv best package 2020
    25 Января 2020, 02:12
     ↑  0  ↓     ответ

    I all the time used to read paragraph in news papers but now

    as I am a user of internet so from now I am using net for articles, thanks

    to web.

  • sling tv
    sling tv
    29 Января 2020, 09:34
     ↑  0  ↓     ответ

    Incredible! This blog looks exactly like my old

    one! It's on a completely different topic but it has pretty much the same layout and design. Superb choice of

    colors!

  • cbd oil that works 2020
    cbd oil that works 2020
    04 Апреля 2020, 17:18
     ↑  0  ↓     ответ

    Wow that was odd. I just wrote an very long comment but after I clicked submit my comment didn't show

    up. Grrrr... well I'm not writing all that over again. Regardless, just wanted to say great blog!

  • cbd oil that works 2020
    cbd oil that works 2020
    04 Апреля 2020, 17:21
     ↑  0  ↓     ответ

    You really make it seem really easy with your presentation but I find this topic to be actually something which

    I feel I would never understand. It kind of feels too complicated and very wide for me.

    I am having a look ahead on your next submit, I will

    attempt to get the grasp of it!

  • can you buy viagra over the counter
    can you buy viagra over the counter
    05 Октября 2020, 22:18
     ↑  0  ↓     ответ

    buy generic viagra online can you buy viagra over the

    counter viagra online canadian pharmacy

  • cialis generic name
    cialis generic name
    07 Октября 2020, 20:33
     ↑  0  ↓     ответ

    Cialis pills cialis generic name cialis pills

  • 0mniartist
    0mniartist
    08 Апреля 2021, 05:59
     ↑  0  ↓     ответ

    I visit each day some web sites and websites

    to read articles or reviews, except this blog offers quality based articles.

    0mniartist asmr

  • 0mniartist
    0mniartist
    08 Апреля 2021, 23:15
     ↑  0  ↓     ответ

    This is very attention-grabbing, You are an overly professional blogger.

    I've joined your feed and sit up for in the hunt for more of your

    great post. Additionally, I've shared your web site in my social networks 0mniartist asmr

  • 0mniartist
    0mniartist
    09 Апреля 2021, 05:08
     ↑  0  ↓     ответ

    I don't know whether it's just me or if perhaps everybody else experiencing problems with your site.

    It appears as though some of the written text

    on your content are running off the screen. Can someone else please comment

    and let me know if this is happening to them too?

    This may be a problem with my internet browser because I've had this happen before.

    Appreciate it 0mniartist asmr

  • 0mniartist
    0mniartist
    09 Апреля 2021, 13:24
     ↑  0  ↓     ответ

    Hey there, I think your site might be having browser

    compatibility issues. When I look at your blog site in Chrome, it looks fine but when opening in Internet Explorer,

    it has some overlapping. I just wanted to give you a quick heads up!

    Other then that, superb blog! asmr 0mniartist

  • 0mniartist
    0mniartist
    09 Апреля 2021, 21:14
     ↑  0  ↓     ответ

    It's truly a nice and useful piece of information. I am

    happy that you shared this useful information with us.

    Please stay us up to date like this. Thanks for sharing.

    asmr 0mniartist

  • Son
    Son
    28 Января 2023, 10:31
     ↑  0  ↓     ответ

    To the joomla-book.ru owner, You always provide in-depth analysis and understanding.

Оставить комментарий




* обязательно для заполнения

1 введенный почтовый адрес используется только для обратной связи при ответах в комментариях и сервиса gravatar.com
.