Hi all. Just getting started with a drupal site, and the first thing I am posting is an event, as a 'story'. No problems. I use the url re-writer to make this event:
http://www.dmain.com/events/event1
Now, I need to post directions to the event, so I create another story, publish it (not to the front-page) and link it into the previous event story page via a link. I also use the ulr re-writer to make this page:
http://www.dmain.com/events/event1/directions
Now, when users go to the direction page, I would love for the sub-navigation that says "Home", to say "Home >> Event 1" so that users can get back to the page, and it has the 'nested appearance one would expect for details related to a larger event.
Is there anyway to trigger drupal to pick up on when a story is essentially a sub-story and have the subnavigation change accordingly? Or can I somehow make these changes manually?
Thanks for any advice!
Paul
Comments
breadcrumbs will
breadcrumbs will automatically reflect your site menu structure, so if you're able to add the 'directions' story as a menu item under 'event1', you should get the desired behavior automatically.
if you don't want to do that, i'm sure there are contributed modules that let you manually tweak your breadcrumbs in various ways. (sorry, don't have any experience/recommendations there.)
finally, you can manually alter your theme to add whatever logic you need to the breadcrumbs, using the theme_breadcrumb function.
hth
Hmm...
Well, I tried creating a non visible menu 'tmp' for the event, adding the event to this menu, then adding the directions to the tmp menu, but nested from event1, but no breadcrumb navigation... any other ideas or am I missing something obvious here in the workflow for doing this?
Thanks!
Custom Breadcrumbs
The Custom Breadcrumbs module may do what you're looking for.
Or you could try Menu Trails,
Or you could try Menu Trails, a module that has literally only just seconds before I read this post been pointed out to me.
Interesting..
Thanks for the info. Anyone have any ideas why the menu i created (mentioned above) would not have triggered the generation of a breadcrumb??? Creating pages in drupal with sub-pages is trivial, and having the breadcrumb generate correctly would seem to be a version 1.0 feature, so there must be something I am doing wrong, rather than going and installing another module... surely someone else has had a problem with breadcrumbs!?
Paul
are you saying you're not
are you saying you're not seeing any breadcrumbs at these URLs? what theme are you using? as a simple sanity check for this type of issue, it's always smart to try to reproduce your problem with a core Drupal theme like Garland.
That is correct
Even with Garland, no breadcrumbs.
Just to go over the workflow again.
drupal 6.x install at www.domain.com
create a 'story', for an upcoming event, title event1, url path to story is events/event1
in said event1, I need to provide directions, so have a second story node, called directions, url path is events/event1/directions.
no breadcrumbs other than 'home' on both pages above (would expect this for event1, but not event1/directions, as I thought the breadcrumb system might pick up the implied nesting of the urls).
so, went ahead and created a menu, 'tmp'. Added event1 to this menu as an option, then added directions as a sub-item to event1. Menu tmp looks like this:
tmp
- event1
-- directions
Now, I do not display this menu anywhere... as it is not a menu I want on the screen, I only need the breadcrumbing... nothing happens after doing this other than 'home' for both pages.
So, second attempt, on my main nav menu, I have an events link. Made event1 a sub-item of events, and then made directions a sub-item of event1. This menu IS being displayed, but again, nothing.
nav
- events
-- event1
--- directions
Any ideas?
Bump, hoping for fresh eyes
Bump, hoping for fresh eyes to look at this.
sorry, pmmenneg, i was wrong
sorry, pmmenneg, i was wrong in my first post above. apparently the breadcrumbs only follow the Navigation menu by default, that's what a quick search told me by way of the Menu Breadcrumb module, anyway. try putting your menu items in the Navigation menu and you should see the desired effect.
i usually end up overriding theme_breadcrumb with my own logic, so i'm not too well tuned-in to how core handles it.
hth
Aha!!
That did the trick, thank you so much!!
Having the same problem
Paul, what method did you go with in the end?
I'm currently in the same position and just stumbled on this.