we embed nodes into a cck field that is "hidden" and "excluded" in the display settings for teaser-mode.
our site became very slow for pages displaying teaser-nodes (like search/node/KEY). after some investigating i placed a drupal_set_message() inside our node-embed--TYPE.tpl.php template because we do a time-consuming file_get_contents() there and found out, that the template gets called for every node being displayed in teaser-mode (even though the cck field containing embedded nodes is excluded and doesn't get displayed).
this seems to be a bug- could it be that the module ignores the cck-display-settings?

Comments

febbraro’s picture

Seem like CCK still renders the field, it just does not display it if I'm not mistaken. That seems more like a problem that CCK is rendering when you don't want it displayed than with node_embed rendering when CCK tells it to.

thommyboy’s picture

hi febbraro,
did some more investigating. actually "excluding" fields will still render them but setting them to "hidden" will not. i setup a very simple test-drupal-site to find out what's wrong. put a dsm() inside the cck field template CONTAINING the embedded node and a dsm() inside the embed-node template and the first one get's only called once while the node-embed template gets called twice (can't figure out how this can happen as the filter=node-embed template should only work when rendering the cck field containing the embed-code?)

mrharolda’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

As of 22 September 2014, we no longer support the Drupal 6 version of Node Embed due to the small install base (< 15%) and more importantly: general lack of time.

If you would like to help and maintain the 6.x branch until Drupal 8 is released, please apply for co-maintainership!