Results 1 to 4 of 4

Thread: Breadcrumbs with page alias?

  1. #1
    User
    Join Date
    08-09-09.
    Location
    Zwolle, The Netherlands
    Posts
    73

    Default Breadcrumbs with page alias?

    I noticed that the breadcrumbs use the page titles. I was wondering, is it possible to use a page alias instead?

  2. #2
    User
    Join Date
    08-09-09.
    Location
    Zwolle, The Netherlands
    Posts
    73

    Default Re: Breadcrumbs with page alias?

    I found you can adjust the breadcrumbs with a template (well, duh...). What I did now is truncate the following:

    Code:
    $item['title']
    in the foreach loop: (this one:
    Code:
    <?php foreach ($this->items as $item): ?>
    I was wondering, is there a list somewhere of possible values for xyz in
    Code:
    $item['xyz']
    ?

  3. #3
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default Re: Breadcrumbs with page alias?

    This should list what you need (paste it inside the foreach loop, but outside any other php tags):

    Code:
    <pre>
    <?php print_r($item); ?>
    </pre>
    It looks like you can't get to the page alias from here, but depending on how your site is configured to rewrite URLs, you maybe can use rtrim($item['href'], '.html') instead of $item['title']... I think... I may get myself into trouble here.
    Brian

  4. #4
    User
    Join Date
    08-09-09.
    Location
    Zwolle, The Netherlands
    Posts
    73

    Default Re: Breadcrumbs with page alias?

    Thanks for the helpful advice! I'm using this now:

    Code:
    <?php echo $item['link']; ?>
    That's what I needed.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •