Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default EZ Pages 'Sub page' Bread Crumb

    How to create Ez-Pages 'sub page'? I'm creating an article for my site. I created Article page and list all links to all articles. Each article is a sub page and created with ez pages. So I want the bread crumb to show something like this,

    Home > Articles > What is Zen?

    and not just..

    Home > What is Zen?

    Is it possible?

  2. #2
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default Re: EZ Pages 'Sub page' Bread Crumb

    I still can't figure out was it possible or not.

  3. #3
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default Re: EZ Pages 'Sub page' Bread Crumb

    Is there any way I could just edit the breadcrumb code in the generated article.php file?

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: EZ Pages 'Sub page' Bread Crumb

    There is no such thing as of now (version 1.3.8)
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  5. #5
    Join Date
    Mar 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: EZ Pages 'Sub page' Bread Crumb

    Mike,

    This isn't real pretty, but it works. You'll need basic knowledge of PHP code. Maybe some day I (or someone else) will write a mod that allows sub ez-pages. For now I use hacks like this one:

    open "includes/modules/pages/page/header_php.php"

    Find the line where it says "define('NAVBAR_TITLE', $var_pageDetails->fields['pages_title']);"

    Two lines below this you'll see "$breadcrumb->add($var_pageDetails->fields['pages_title']);"
    This is the line that actually adds the breadcrumb item.

    Above this set of code (above the commented text that starts "set Page Title for heading..."), you could add code that's something like this:

    Let's assume that ezpages 3 & 4 are subpages of page 5, and 6 & 7 are subpages of 8

    switch($var_pageDetails->fields['pages_id'])
    {
    case 3:
    case 4:
    $breadcrumb->add('Breadcrumb text for page 5', 'index.php?main_page=page&id=5');
    break;
    case 6:
    case 7:
    $breadcrumb->add('Breadcrumb text for page 8', 'index.php?main_page=page&id=8');
    break;
    }

    You could continue to follow this format for other pages that are subpages as well.

  6. #6
    Join Date
    Feb 2006
    Posts
    36
    Plugin Contributions
    0

    Default Re: EZ Pages 'Sub page' Bread Crumb

    Could you use the chapter to do this in some way? These are all set up to do the table of contents and it would be logical to use this structure for the breadcrumbs?

    Don't ask me how though!

 

 

Similar Threads

  1. Re positioning bread crumb on lhs?
    By PhilipB in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 8 Feb 2011, 07:58 AM
  2. bread crumb positioning
    By signify in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 Feb 2011, 02:31 PM
  3. Bread crumb inner pages
    By fw541c in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Dec 2010, 06:54 PM
  4. bread crumb question
    By andy in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 Feb 2007, 12:27 AM

Posting Permissions

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