Closed (won't fix)
Project:
Node Embed
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2011 at 10:33 UTC
Updated:
22 Sep 2014 at 14:36 UTC
Jump to comment: Most recent
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
Comment #1
febbraro commentedSeem 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.
Comment #2
thommyboy commentedhi 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?)
Comment #3
mrharolda commentedAs 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!