I have a block that I need to display on two pages, the home page and one other. When I enter the following in the Pages parameter in the block configuration pages:


node/7

the block does initially display on both pages. However, after revisiting the second page (node/7) the block does not appear. I deleted the node/7 entry, saved the block and added it again and re-saved, and the block appears correctly, but when I reload the page the block disappears.

I do have this page mapped with a clean url, and have tried to enter that instead of node/7 but cannot get the block to display that way.

Ideas as to what I may be doing wrong, or what needs to be done?

Thanks

Comments

ehamburg’s picture

Note in the section where I indicate the pages I set to display in the Pages parameter "front" enclosed in start and close tag markers, didn't appear because I enclosed it in tag brackets, which the forum editor interpreted as HTML.

The two pages are entered on separate lines.

I also have the following set:

Page specific visibility settings
Show block on specific pages:
Show on only the listed pages.

syawillim’s picture

Clean URL's should not impact on the display of your block.

Make sure that you have checked the display only on listed pages option and add:

<front>
node/"your node ID"

One page per line.

www.drupalbasics.com | www.slickfish.com.au

ehamburg’s picture

That's how I have it, although the node number is not in quotes.

The menu item for the page in question is assigned node/7 and when I access it via that menu link the problem happens. However, when I enter the url mydomain.com/node/7 into the browser address bar, the block always appears.

syawillim’s picture

I don't think it should make any difference but did you create the menu item as part of the page creation or did you do it through menu administration?

You might want to try deleting the menu item via administer > menus, and re-creating it by editing the page and using the menus options at the bottom of the page.

That being said I have site that does something very similar, I ended up having to use the php option to get the menu to display.

www.drupalbasics.com | www.slickfish.com.au

ehamburg’s picture

I'm pretty sure that I created the menu items as I was creating the pages.

What's involved in doing the php option. I'm not really a php programmer.

ehamburg’s picture

I've reported this as a bug. Thanks your your help.