Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
D7 works quite differently so it may be quite a bit of work to get this module to work there. But it could be that the filtering system is already pretty solid in D7. I did an attempt with simplemenu, but there are several bugs in the menu system that are not getting fixed and thus that was not really doable at this time.
Not that I know of. It's possible the the other two modules that offer a similar functionality made progress. Now I don't remember what those are named...
A workaround for insert a node into a node body should be insert_view. Generate a view of your node and than insert it into a nodes body field. insertNode would be easier and the better solution but it should work...
In Drupal 7 you can use node tokens in conjunction with token_filter and a snippet like https://gist.github.com/1854789 to provide node_view:build_mode. Example tokens: [node:1:title], [node:1:node_view:full], [node:1:field_media]
#9 is working well for me except in one case. I'm using embedded media field (emfield) module to embed videos. When I use the technique described in #9, these tokens are just expanded to the file url and not the rendered video which is the default for this field.
Is there any way to adjust the hook_tokens() code to render the fields according to how they would be displayed in the node rather than just the url of the file?
Comments
Comment #1
AlexisWilke commentedHmmm... Waiting for a patch? 8-)
D7 works quite differently so it may be quite a bit of work to get this module to work there. But it could be that the filtering system is already pretty solid in D7. I did an attempt with simplemenu, but there are several bugs in the menu system that are not getting fixed and thus that was not really doable at this time.
Thank you for your interest.
Alexis
Comment #2
alex.cunha commentedsubscribing
Is there any other alternative for D7?
Comment #3
AlexisWilke commentedalexcunha,
Not that I know of. It's possible the the other two modules that offer a similar functionality made progress. Now I don't remember what those are named...
Thank you.
Alexis Wilke
Comment #4
julianna commentedSubscribe
Comment #5
AlexisWilke commentedComment #6
JohnnyX commentedA workaround for insert a node into a node body should be insert_view. Generate a view of your node and than insert it into a nodes body field. insertNode would be easier and the better solution but it should work...
Comment #7
vidu_ram commentedSubscribe
Comment #8
basicmagic.net commentedsubscribe
Comment #9
lefnire commentedIn Drupal 7 you can use node tokens in conjunction with token_filter and a snippet like https://gist.github.com/1854789 to provide node_view:build_mode. Example tokens: [node:1:title], [node:1:node_view:full], [node:1:field_media]
Comment #10
lefnire commentedIn fact, that covers most of it IMO -- anything I'm missing?
Comment #11
sokrplare commentedPossible alternative in D7 http://drupal.org/project/node_embed
Comment #12
yannickooThe Gist from #7 works perfect, thank you lefnire!
Comment #13
bkat commented#9 is working well for me except in one case. I'm using embedded media field (emfield) module to embed videos. When I use the technique described in #9, these tokens are just expanded to the file url and not the rendered video which is the default for this field.
Is there any way to adjust the hook_tokens() code to render the fields according to how they would be displayed in the node rather than just the url of the file?
Comment #14
andrés chandía commented