Forums / General Questions / EZ Pages 'Sub page' Bread Crumb

EZ Pages 'Sub page' Bread Crumb

Locked

Views: 1,728

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
24 Jul 2008, 5:58 AM
#1
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

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?

- Nothing is impossible. Some things are just less likely than others. -

28 Jul 2008, 3:14 AM
#2
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: EZ Pages 'Sub page' Bread Crumb

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

- Nothing is impossible. Some things are just less likely than others. -

30 Oct 2008, 8:27 AM
#3
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: EZ Pages 'Sub page' Bread Crumb

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

- Nothing is impossible. Some things are just less likely than others. -

30 Oct 2008, 10:36 AM
#4
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

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

31 Dec 2008, 9:22 PM
#5
theclay avatar

theclay

New Zenner

Join Date:
Mar 2008
Posts:
14
Plugin Contributions:
0

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 Jan 2009, 4:16 PM
#6
butterflybabies avatar

butterflybabies

New Zenner

Join Date:
Feb 2006
Posts:
25
Plugin Contributions:
0

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!