Ways to include breadcrumb in own page

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
RobiX
Registered User
Posts: 110
Joined: Thu Oct 05, 2017 9:59 am

Ways to include breadcrumb in own page

Post by RobiX »

i included a own page within phpbb
at the moment no breadcrumb is shown

what is the best, easiest, ... way to include it?

adapting overall_header.html seems to be hard IMHO (at least at the moment for me ;-) ) ...
User avatar
AmigoJack
Registered User
Posts: 6108
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Ways to include breadcrumb in own page

Post by AmigoJack »

I don't understand the question: FAQ, Members, Search and others have no breadcrumbs either.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
RobiX
Registered User
Posts: 110
Joined: Thu Oct 05, 2017 9:59 am

Re: Ways to include breadcrumb in own page

Post by RobiX »

Every new php-script (which I made) should have a specific breadcrumb.

For example,
Script: Breadcrumb
scriptA.php: CategoryA
scriptB.php: CategoryB > SubcategoryB
scriptB1.php: CategoryB > SubcategoryC

Where should I add this logic?
overall_header.html?

what's the easiest way?
User avatar
AmigoJack
Registered User
Posts: 6108
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Ways to include breadcrumb in own page

Post by AmigoJack »

The "easiest" way is to use navlinks in /styles/*/template/navbar_header.html, but I'm not sure if you want to have your own breadcrumb row instead of using phpBB's one, as your examples differ from that.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
RobiX
Registered User
Posts: 110
Joined: Thu Oct 05, 2017 9:59 am

Re: Ways to include breadcrumb in own page

Post by RobiX »

i will takke a look on navbar_header.html

the own page should look like the same as a "normal/standard" forum-page
there also the style of breadcrumb should be the same. but instead of, e.g.,

Board index > Non-support Specific > phpBB Discussion > phpBB Custom Coding

it should be

Board index > CategoryB > SubcategoryB
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: Ways to include breadcrumb in own page

Post by kasimi »

Probably like this:

Code: Select all

$this->template->assign_block_vars_array('navlinks', [
    [
        'FORUM_NAME'   => 'CategoryB',
        'U_VIEW_FORUM' => 'URL to CategoryB',
    ],
    [
        'FORUM_NAME'   => 'SubcategoryB',
        'U_VIEW_FORUM' => 'URL to SubcategoryB',
    ],
]);
RobiX
Registered User
Posts: 110
Joined: Thu Oct 05, 2017 9:59 am

Re: Ways to include breadcrumb in own page

Post by RobiX »

Tnx both kasimi and AmigoJack for your helping hand! :)
RobiX
Registered User
Posts: 110
Joined: Thu Oct 05, 2017 9:59 am

Re: Ways to include breadcrumb in own page

Post by RobiX »

tested now - it works greeeeeat :)
Post Reply

Return to “phpBB Custom Coding”