Hello,
First of all I want to say that I just started to work with Drupal. I think it's a very nice CMS with very nice features.
I've got a drupal-based website running on my local machine. What I want to do is just very simple, but I just can't get it right (/bangs head against the wall).
What I want to do: - Let's say I'm building a site about computer hardware with mostly static information. My website should have different sections based on the type of hardware: Motherboard - Memory - CPU - VGA. Logically, every section contains information about it's own type of hardware. This is _static_ information. I can reach these sections through let's say primary links (not important, consider them to be buttons displaying the type of hardware).
- When I click (for example) the CPU-button, a page (landing page) must show with, yet again, _static_ information (thus not a page made up of several articles using terms). You can consider this page to have some sort of introduction on the subject. On the left a menu, based on the section, pops up with links to other pages (nodes) like 'Intel', 'AMD', 'VIA', etc. Each of these pages contain information about a CPU developer like, for example, Intel.
- I want the breadcrumbs to show correctly. If I'm on the Intel-page, it should show:
"Home > CPU > Intel" (and NOT "Home > Intel").
- Not totally neccesary, but something that would really make my day is: if I'm on the Intel page, the URL should be like:
"http://www.mydrupalsite.com/cpu/intel" and not just some node number.
How do I do this? I have literally spent hours on trying this with no result. I have been searching information in the handbook, forum, external sites, ... I just can't get the job done and therefor I'm calling out for help/hints/tips on how to achieve this. Is Taxonomy the way to go? Or maybe the Categories-module? Or...?
Grtz, RaF
Comments
Only showing half...
EDIT: I'm sorry; but for some reason my previous post only shows half? That's odd. Here's the 'full' version:
Hello,
First of all I want to say that I just started to work with Drupal. I think it's a very nice CMS with very nice features.
I've got a drupal-based website running on my local machine. What I want to do is just very simple, but I just can't get it right (/bangs head against the wall).
What I want to do:
- Let's say I'm building a site about computer hardware with mostly static information. My website should have different sections based on the type of hardware: Motherboard - Memory - CPU - VGA. Logically, every section contains information about it's own type of hardware. This is _static_ information. I can reach these sections through let's say primary links (not important, consider them to be buttons displaying the type of hardware).
- When I click (for example) the CPU-button, a page (landing page) must show with, yet again, _static_ information (thus not a page made up of several articles using terms). You can consider this page to have some sort of introduction on the subject. On the left a menu, based on the section, pops up with links to other pages (nodes) like 'Intel', 'AMD', 'VIA', etc. Each of these pages contain information about a CPU developer like, for example, Intel.
- I want the breadcrumbs to show correctly. If I'm on the Intel-page, it should show:
"Home > CPU > Intel" (and NOT "Home > Intel").
- Not totally neccesary, but something that would really make my day is: if I'm on the Intel page, the URL should be like:
"http://www.mydrupalsite.com/cpu/intel" and not just some node number.
How do I do this?
I have literally spent hours on trying this with no result. I have been searching information in the handbook, forum, external sites, ... I just can't get the job done and therefor I'm calling out for help/hints/tips on how to achieve this. Is Taxonomy the way to go? Or maybe the Categories-module? Or...?
Grtz, RaF
I have just found a
I have just found a drupal-based website doing exactly the things that I mentioned (/cries):
http://amnesty.org/en/who-we-are/our-people .
This is just to give you a in-action example :)
menus and paths
(apologies if you already know this bit) The path module in core is what allows you to replace /node/x with aliases like /arbitrary/url/path. That works well enough for a static site, but you can use the pathauto module for automatic aliases generation on a more dynamic site.
In terms of the breadcrumb hierarchy, it will reflect your primary links menu hierarchy. It won't show the last item though as it is already shown as the page title (it seems a bit cluttered and redundant to repeat it).
eg on your intel cpu page, the breadcrumb will show Home > CPU and the page title will be Intel if you've set up the primary links menu items for the pages. And it should then give you Home > CPU > Intel if you then create a 486 page under that.
Am I missing something? This should all work how you want it - unless you also want the current page on the end of the breadcrumb.
If you want navigation on the page itself (eg next, prev, up and a list of child pages etc) and automatic menu generation for a hierarchy of static pages you could try out the core book module (it runs the drupal.org handbooks).
If you really want the current page on the end of the breadcrumb, that would probably require an addon module. If there wasn't one already for that, you'd need to write one.
--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal
a better solution
1) the pathauto module let's you set up patterns for your urls. that way you don't have to specify each one when you create a node (it does require the path module)
2) if you are using drupal 6, you'll also need the menutrails module to make your "active" state stick on the menu items.
3) You'll either need a custom module to make your breadcrumbs match your urls (it's stupid - someone needs to fix this - it will probably be me :-) or you'll need to look into one of the breadcrumb solutions out there, which will all be useless when pathauto gets patched, or the custom module mentioned above gets released.