how to get node imbed to work ?

Events happening in the community are now at Drupal community events on www.drupal.org.
hezten's picture

Hi

Im trying to embed a slideshow into this article

http://debug.dk/article/prinsen-fik-sin-prinsesse

but instead it just shows

inside the article. I would have hoped the slideshow would apear below the article. Node_embed module is there, i think it is deafult in openpublish.

i enabled node imbed in the cck editor and changed the article and cleared the cache, but the slideshow does still not apear. What am i doing wrong ? Any help is much apreciated as i think i would use the functionality alot.

Comments

create a file called

resveld's picture

create a file called node-embed--artikel.tpl.php (replace artikel with your content type).

Find out what you want to embed from a slideshow first and the create smnething like this (this is from my site where I embed just the video):

<?php
// $Id: node-embed--op_image.tpl.php,v 1.1.2.1 2010/09/08 23:34:57 tirdadc Exp $
?>


<div id="embedded-node-<?php print $node->nid; ?>" class="embedded-node">
  <div class="content clear-block">
    <?php if ($video_file): ?>
  <?php print $video_file; ?>
<?php endif; ?>

      </div><!-- /.main-image -->

  </div>
</div>

And place it in sites/all/themes/yourtheme/node

That should be enough.

-Ronald

i found out

hezten's picture

i needed to enable node embed in input filter type and set cck editor til drupal full instead of default. The slideshow is broken though when embeded in the article node. I think some css files are missing or something. It shows the first image in full size instead of scale, and the other images just a a list of links under the first image. I will figure out some other way to do it.

search some more here in the

resveld's picture

search some more here in the group.
A while ago there was a same sort of issue.

-Ronald

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: