Output a node in a block.

jesusrocksmyfaceoff - January 15, 2009 - 07:03

Greetings all, I am having an issue getting a node to display in a block.

In my drupal 5.x installation, I can do this:

[flashnode|nid=15]

in the block body, as Full HTML, and it would output the flash movie in the block.

What is the method for doing this in 6.x?

Any and all help is greatly appreciated!
Thanks!
Josh

i am not getting that y

dhvani2511 - January 15, 2009 - 07:33

hi

i am not getting that y u want to add node in a block???

dhvani

It really doesn't matter why

jesusrocksmyfaceoff - January 15, 2009 - 08:19

It really doesn't matter why I want to do it. The reason is simple though - its easier to do it that way to do what I need to do.

In 5.x its very simple, and makes it way easier to get a flash node to display in a block -- rather than trying to embed the swf file as well as an xml file, as well as appropriate flashvars.

I venture to guess in 6.x its just as easy, but requires a bit more coding probably.

Josh Mans
New Creation WOC
www.newcreationwoc.org

Flashnode for Drupal 6

geodaniel - January 15, 2009 - 09:26

Have you tried installing flash node module for Drupal 6? I would think it'd have the same feature.

Reading the flashnode

marcvangend - January 15, 2009 - 09:26

Reading the flashnode documentation, I'd say that the Drupal 6 version should work exactly the same way. Are you saying that it doesn't? Did you enable the flashnode filter for the input type you're using?

@dhvani: I can understand very well why Josh wants to show a node in a block, I also do it myself sometimes. End users (site maintainers) like to have one list with all manageable content, so they can just go in there and do what they have to do. They don't care if it's shown in a block or as the main page content - possibly they don't even know that there is a difference. Also, if you don't have to give site maintainers the right to manage blocks, it simplifies the user interface and reduces the risk of errors.

ya i know it but isnt it

dhvani2511 - January 15, 2009 - 09:31

ya i know it but isnt it more easy to put the code itself inside the block instead of calling node inside it??

dhvani

No..

jesusrocksmyfaceoff - January 15, 2009 - 09:41

With the way flash node works, no, it definitely isn't. It is much easier to call a node that has all the options needed streamlined when creating the node, rather than trying to manually code the options necessary.

Also - I do have flashnode installed -- and I am saying it doesn't work the same way from 5.x and 6.x. I believe I have everything setup the exact same way...

Josh Mans
New Creation WOC
www.newcreationwoc.org

Flashnode

ludo1960 - January 15, 2009 - 09:53

Flashnode in 6 works exactly the same as 5 , you have an error in your installation

so you're telling me that

jesusrocksmyfaceoff - January 15, 2009 - 09:58

so you're telling me that the code

[flashnode|nid=15]

works in the 6.x version as well to display the node in a block?

This is the only problem I seem to have, so, to me, I don't see how I could have an installation problem....

Josh Mans
New Creation WOC
www.newcreationwoc.org

Repeating myself

marcvangend - January 15, 2009 - 10:01

Repeating myself: Did you enable the flashnode filter for the input type you're using?

It's been quite a while

jesusrocksmyfaceoff - January 15, 2009 - 10:05

It's been quite a while since I initially installed flashnode AND i'm somewhat new to drupal, can you tell me where to look, and I will for sure tell you the answer... THANKS!

Josh Mans
New Creation WOC
www.newcreationwoc.org

Site Configuration > Input Formats

marcvangend - January 15, 2009 - 11:25

Go to Site Configuration > Input Formats. Click the 'configure' link for the filter you want to use in combination with flashnode (the path will look like /admin/settings/filters/1). check "Flash node filter". If needed, repeat for other input types.

That was it!

jesusrocksmyfaceoff - January 15, 2009 - 13:18

Thank you SO much! That was it :).

Alternatively, this code will work for the purpose I wanted, as well as a more general purpose...

<?php
$xNode
= 1; //nid of content to load
$node = node_load($xNode);
$nodeout = node_view($node);
print
$nodeout;
?>

Josh Mans
New Creation WOC
www.newcreationwoc.org

Upon updating from drupal 6.9

jesusrocksmyfaceoff - October 26, 2009 - 17:31

Upon updating from drupal 6.9 to 6.14, this is now broke for end users. When logged in as the admin user (i don't use any other authentication at this time), it will display just fine. I thought it may be a permissions thing, but I'm not seeing anything that'd be a problem.

Thoughts?

Josh Mans
New Creation WOC
www.newcreationwoc.org

 
 

Drupal is a registered trademark of Dries Buytaert.