Community & Support

Add node summary to parent menu page

Is there a module which would add summary of a node on a page of its parent menu item instead on frontpage?

Example:

  • services
    • shared hosting
    • vps hosting
    • dedicated hosting

Where summaries of shared hosting, vps hosting and dedicated are published on a page to which services (parent item) links?

Comments

i don;t get the question :S

what do you want to do? and what do you mean by "node summary"?

by node summary i meant post

by node summary i meant post teaser.

Anyone? Shouldn't this be

Anyone?

Shouldn't this be easy? I have spent last hour browsing through modules, but didn't find what I was looking for.

I don't think you can

link services to more than one pages... it makes sense. Each page links to one thing.

I am not sure what you need to do. First of all go to your content type and uncheck the box that says "promote to the front page". In this way all of your posts will stop appearing on the front page. Now if I am guessing correctly you need to create a Vocabulary "Services" and add terms to it (the three ones you mentioned previously)

This will NOT make "services" linked to all its taxonomy terms. Each term links to the taxonomy term page. Should you need "services" to show ALL entries of posts under the three pre-mentioned terms then you must create a view of all nodes under "services" Vocabulary, add a page display, give it a path (to --> Services) and that's it!

Thank you very much for the

Thank you very much for the help. I can't believe I didn't try to solve this with taxonomy by myself. Stupid me.
However, I still don't have solution that pleases me fully. If I use vocabulary for this, I won't have menu hierarchy determining order of teasers.
For example, if I add new item in menu on a second place, than I would like its teaser to be also in second place on its relevant taxonomy term page. Any idea?

Is there a way to organize

Is there a way to organize teasers by menu; respecting the menu factors: parent item and weight?

wow

you confused me :)

you need teasers in the menu??? :) why?

please clarify what exactly you wish to do with your
1. Primary links
2. Secondary links
3. Vocabulary
4. Taxonomy terms

so that I can help you. For example

Vocabulary "Services" --> Primary link
Taxonomy term "X" --> Secondary link - child of "Services"

?

Obviously I didn't explain

Obviously I didn't explain good what I need. Let's go from the beginning:

Example menu:

  • services
    • shared hosting
    • vps hosting
    • dedicated hosting

Services menu item links to mysite.com/services.
On that url (mysite.com/services) I want teasers of shared hosting, vps hosting, dedicated hosting.
When I publish new post that has services as a parent item in menu, I want teaser of that new post to be added to mysite.com/services and I want menu hierarchy to be followed, so if I add menu item free hosting on second place like this:

  • services
    • shared hosting
    • free hosting
    • vps hosting
    • dedicated hosting

I want free hosting teaser to be on a second place on url mysite.com/services.

If I use vocabulary for determining where will teasers show up, free hosting teaser will be the first one as it is the last one added.

sorry

but you cannot do that. The only way you can achieve that is by controling the published date of each node. Taxonomy terms are served by drupal with logic "last in first out". So no you cannot achieve that, unless you play with node: post date field and change it. Which is crap because you cannot automate this procedure and you will end up having a site that needs to be edited all the time.

Now the other thing is that you cannot (you can but it's a bit confusing) have all entries under 3 different taxonomy terms appear on the same page /services. If I were you, I would have multiple terms. For example a node would belong to taxonomy term "services" and taxonomy term "free hosting" so that you keep things nice and neat for the user's navigation. Having two links at the bottom of a teaser or a full node would make things easier for you and for the user :)

Now let's solve your problem. Go to Taxonomy --> Vocabulary --> Services --> add term --> services --> save --> add term --> free hosting --> child of (term) "services"--> save

there you go. Now when you click on "/services" you get both nodes under "services" + nodes under "free hosting".

A tricky thing to do

would be to use views that will display full nodes (teasers that is). You will save these views as blocks and then you will give via the admin/build/block page a path to appear. Let's say "Show only on listed pages" /services. Move the blocks to the "content" area and move them up and down till you get

blocks

content area

view_block_shared hosting
view_block_vps hosting
view_block_dedicated hosting

If you wish to add "free hosting" then all you need to do is add the term to your vocabulary and then go and create a view:

view type: node

filters:
node: published yes
node type: story, page (whatever you like)
taxonomy term: free hosting

short criteria
node post date desc

fields: full node (teaser view)

add display: block

name the block: view_block_free_hosting

go to admin/build/blocks

press "configure" view_block_free_hosting

Give it a title if you wish, lets say "Free hosting Information"

and then go to the visibility settings (php settings) and choose: appear on only the listed pages: /services

Hit "save"

then go to admin/build/block and activate this block to the "content" area. Move to the "content" area to see the hierarchy of your blocks. Place this block between
view_block_shared hosting
view_block_vps hosting

and do NOT forget to click on "Save"

there you go :)

now you have all you wanted !!

tricky huh? :D

What you are looking for is

What you are looking for is Views menu nodes but it is only available for Drupal 5.

Problem solved

Thank you Nevets! Views menu nodes isn't available for Drupal 6, but on its description page I found link to Submenu tree which is EXACTLY WHAT I NEED, plus even more, it has few configurable options, and it works great.

For those nodes which are menu items and displayed as such, this module can append or prepend a listing of the submenu items underneath that node. The submenu items can be themed as a submenu, a list of titles, a list of teasers, or a list of full nodes.

This module is yet another solution to the long standing issue of hierarchical content in Drupal, hence it attempts to solve problems which other people have used modules such as book.module, taxonomy.module, category.module, menutree.module, and menupage.module to address. Submenu Tree aims to be a convenient and lightweight complement to these modules.

Submenu Tree presumes you are using the Drupal menu system for organising a hierarchy.

nobody click here