2

I have to modify a block that appears on the home page of the website, that I did not make myself. The block appears in admin/build/block with the title "Block Title (nodeblock)", so I assume that this has been created by the nodeblock module, but I can't find where I can edit this content.

Can someone help me to find the right administration menu to view and modify this nodeblock content ?

2 Answers 2

2

UPDATE:

It appears from a quick look at the module source that nodeblock uses the node's nid as the block delta.

So, from admin/build/block if you click on the configure link on the block in question, it should take you to something along the lines of admin/build/block/configure/nodeblock/###. That trailing ### is the nid of the node in the block. So then off you go to node/###/edit.

OTHERWISE:

If this is just a one-off thing, a quick look at the default node-nodeblock-default.tpl.php template for creating these blocks shows...

<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?> clear-block">

...so I would just surf over to your home page, and then take a peek at the source generated in your browser, and there it should show a <div> wrapping this block with an id of node-###.

Then, going to node/###/edit should take you on your way.

2
  • Great ! Both methods are OK, thanks. We could probably suggest to nodeblock module developers to add a "Edit node" menu somewhere ... Jul 2, 2013 at 14:00
  • Note that looking at div IDs and classes isn't always going to work because it is possible your block templates do not print that stuff out. It is very often a good solution though.
    – rooby
    Jan 19, 2015 at 3:48
2

The easiest way for Drupal 6 would probably be to use the Contextual links module.

Hover over nodes, blocks, and views blocks to expose styled edit/configure/delete tabs.

It's a backport of the same functionality that is in D7 core, but for Drupal 6.

Just hover over the block on the front page, and hit edit to edit that particular block.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.