Are there some way to show the Related Items of a node in a block instead below the node content? I would like to use the module as a "See Also" block?
I have been triying to use CSS to move the Related Items but it was impossible for me.
I suppose a custom block could be developed, but some switch to hide the items below de node body should be required.
Some idea?
Comments
Comment #1
darius commentedCurrently, there is only a "show ancestors" block. I will add a "show children" block shortly, should not be hard to do.
Darius
Comment #2
darius commentedI have created 3 new blocks to display Related Items, Related Parents, and Related Ancestors. Go to Admin=>Blocks to enable and configure them (you can restrict types and choose your own block names) The new code should be committed to the CVS HEAD soon.
Darius
Comment #3
solanas commentedGreat work. I have tested the "Node relativity: children" block and it works fine for me.
I suggest you to add a check to be able to turn off the type of node "page, webform..." printed on the block. I use page nodes to recommend films and the term "page" above the title of the film has no sense.
By other hand I don't understand the function of the "Allowable Relativity Block Node types:" option on the configuration block. Is it for setting the visibility of the block? I have set it to "none" but I don't see a different behaviour.
Thank you.
Comment #4
darius commented> I suggest you to add a check to be able to turn off the type of node "page, webform..." printed on the block.
I created three new theme functions:
You can now customize the block output whichever way you like.
> By other hand I don't understand the function of the "Allowable Relativity Block Node types:" option on the configuration block.
This configuration was originally in the relativity settings advanced menu. It turns out it only affects the "ancestors" block. I removed it from the other two blocks.
The changes are in CVS HEAD.
Comment #5
solanas commentedI'm not sure how to customize with the theme_relativity_block_children($node) funcion but I have been able to use the theme_relativity_show_children.
Thank you.
Comment #6
darius commented> I'm not sure how to customize with the theme_relativity_block_children($node) funcion but I have been able to use the theme_relativity_show_children.
Well, the former just calls the latter, so if you want the relativity section to be the same in the main page content and the block, what you did is fine. If you want them to display differently, copy the theme_relativity_show_children function body into the theme_relativity_block_children body and modify them separately in your own theme.
Comment #7
(not verified) commented