Topic: [?]breadcrumbs for pages

Trying to make breadcrumbs for pages and it does not look good enough.
How can i make this work without writing "home" in breadcrumbs.view.php
code:

<?php if ($parent) { ?>
    <li><a href="<?php echo Site::url(); ?>">Home</a></li>
    <li><a href="<?php echo Site::url().$page['parent']; ?>"><?php echo $parent_page['title']; ?></a></li>
    <li class="active"><?php echo $page['title']; ?></li>
<?php } else { ?>
    <li><a href="<?php echo Site::url(); ?>">Home</a></li>
    <li class="active"><?php echo $page['title']; ?></li>
<?php }

want to make it look like this:
Home > About us

deeper
Home > About us > Our story

---------- cause ------
it does not look nice if i keep original
About us
deeper
About us > Our story


So my question is: How can change "Home" to something wht will show it there? cause if site in russian u have to change it in breadcrumbs.view.php

(с) Roman Art
So far So good wink

RomanArt's Website

Re: [?]breadcrumbs for pages

Try this:

<a href="<?php echo Site::url(); ?>">
  <?php echo ucfirst(Option::get('defaultpage')); ?>
</a>
XSS Testing <script>alert('HIYAA!!!');</script>

tovic's Website

3 2014-02-27 09:32:44

Re: [?]breadcrumbs for pages

this code showes the slug of page which we pick in "system - settings " default page?

(с) Roman Art
So far So good wink

RomanArt's Website

4 2014-02-27 16:59:23

Re: [?]breadcrumbs for pages

Yep → https://github.com/Awilum/monstra-cms/b … ew.php#L33

I hope I can get the page title referenced with that slug, instead of just displaying the uppercase-first slug. But I don’t know how to do that.

XSS Testing <script>alert('HIYAA!!!');</script>

tovic's Website

Re: [?]breadcrumbs for pages

yeah i think wht i want is to get a home page title, not slug, cause if website in russian it wount look like this:
"Главная"
it will be
"glavnaya"
dont know wht to do really hahaah

(с) Roman Art
So far So good wink

RomanArt's Website

6 2014-03-01 04:17:14

Re: [?]breadcrumbs for pages

maybe can make something like this, it does not work but just as idea:

<?php echo Page::title('home'); ?>

i also try this one got error haha

<?php echo get_page_title(array('slug' => 'home')); ?>

i gave up, any ideas pls ?

(с) Roman Art
So far So good wink

RomanArt's Website

Re: [?]breadcrumbs for pages

okay nvm, i create a "block" and put it everywhere, so simple u can change a word in "block" and it will change all "home"

(с) Roman Art
So far So good wink

RomanArt's Website