I have a block set up using nodequeue, which works just fine.

If my nodequeue is empty, I would like it to display a feed item, which I have set up in another block.

I have tried the following code in the "Block: Empty text" area, but it isn't working, and I'm not sure what I am doing wrong...

<?php $block = module_invoke ('simplefeed', 'block', 'view', 'feeds-block_1');
print $block['content']; ?>

Previously I was using aggregator with the following code, which was working, however I needed some different options that I found in simplefeed.

<?php $block = module_invoke ('aggregator', 'block', 'view', 'feed-1');
print $block['content']; ?>

Any suggestions would be greatly appreciated!

Comments

jenniferism’s picture

I got it to work:

<?php $block = module_invoke ('views', 'block', 'view', 'feeds-block_1');
print $block['content']; ?>
socialnicheguru’s picture

I am using drupal 6

I add this to both the empty text and the footer.


<?php

$block = (object) module_invoke('views', 'block', 'view', 'images_add_another-block_1');

print theme('block',$block);

?>

but nothing is showing up in the empty text or the footer.

The view, images_add_another, does exist. I can view the result that I want on it in preview mode.

I am taking a view argument for images_add_another. It is the node id and it is set to default read from node. Is this an issue.

thanks.

http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.