Custom content type

BusterX - March 18, 2009 - 12:18

Hi, I´m new to everything Drupal and I was just wondering if it is possible to create a custom content type that will automatically get assigned to a menu (without having to go into menu settings) when creating a new page?

Using Drupal 6.10.

There is a module for that:

marcvangend - March 18, 2009 - 14:03

There is a module for that: http://drupal.org/project/automenu. The D6 version is not final yet, but I guess it's worth a try.

Thanks I´ll check it out.

BusterX - March 18, 2009 - 21:51

Thanks I´ll check it out. Like I said, I am new to Drupal on was hoping to build as much as possible with Drupal 6.10 out-of-the-box so if there is a way to achieve this I am still interested.

My content providers have the technial insight of a not so bright 3 year old, and giving them a choice of attaching a menu to a node/page will most likely make their head explode (I´m afraid).

I´ve tried automenu (dev) on

BusterX - March 18, 2009 - 15:03

I´ve tried automenu (dev) on 6.10. It doesn´t seem to work...

Sorry to hear it doesn't work

marcvangend - March 18, 2009 - 18:18

Sorry to hear it doesn't work for you (yet). For specific help with automenu, I suggest you use the module's issue queue. There may already be patches for the problem you're having.

I obviously don't know your site structure and design, but maybe there are also other ways to achieve what you want. For instance, you could use the views module to generate a block containing all nodes of a certain content type.

My structure is dead simple

BusterX - March 18, 2009 - 21:44

My structure is dead simple really. I have a car section (primary link) and the section will have one or more cars. I want all pages of type car (content type) to automatically appear in a meny (secondary link) without the user having to specify this when the page is created.

I´ll play aroung with view and taxonomy and see what can be accomplished, but by all means if you know how to do this and it is easily explainable feel free to tell me :-)

views?

marcvangend - March 18, 2009 - 22:18

Well, as said, I think you could use the views module. The car section would be a view, listing all content of type 'car'. Each list item would link to the full 'car' node.

In fact, if you would to this with views, you could even take this page a step further. For instance, views allows you to create a table of all cars with sortable columns.

If views is not what you're looking for, and if you have some php skills, you could also help the maintainers of automenu (http://drupal.org/project/automenu) or automaticmenu (http://drupal.org/project/automaticmenu) to get their modules ported to Drupal 6. Both modules are realitively simple.

This is sweet! I have managed

BusterX - March 18, 2009 - 23:22

This is sweet! I have managed to accomplish my desired structure using a view to populate a block (that will function as a secondary link menu) and also combined this with pathauto so that my users only have to select the correct content type and everything that happens after that will be handled by Drupal.

I´ve been away from the entire web programming scene for a number of years now and my PHP skills are rusty at best so it´s gonna be a while before I´m up to scratch and able to contribute. Hopefully I´ll get there sooner rather than later.

Thanks for pointing me in the right direction!

Thanks for the feedback, nice

marcvangend - March 19, 2009 - 00:12

Thanks for the feedback, nice to read that the views solution works for you. Views is a great tool, I couldn't build Drupal site without it...

 
 

Drupal is a registered trademark of Dries Buytaert.