For example:
[[nid:123]]
(more content)
This is due to the fact that strpos() will return zero if it finds the "needle" at the very beginning of a string. This will evaluate to false if you aren't using '===' or '!=='.
Patch is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| node_embed-embed-self.patch | 435 bytes | byrond |
Comments
Comment #1
rballou commentedI tested and verified this issue. So I have applied this in the dev branch (7.x-1.x) for testing. Please test/review the change and this will be updated in a future release. Thanks!
Comment #2
mmatobscs commentedHi, I also have a problem embedding another node to a node...
i have this page and i've embedded another node which is a webform so i can ask my users to fill up something on the page itself...
i log in as administrator, when i click on view:
>>>> the page works: it reads this [[nid:123]] , renders the form and it shows
but when i go to the actual page:
>>>> the page doesn't work: the content doesn't show and instead only print this [[nid:123]]
i've looked for days to find solution for this...i would really appreciate anyone's help...please please :-)
Comment #3
sreynen commentedmmatobscs, are you embedding a node in itself? If so, please provide paths for "the page" and "the actual page" (those sound like the same thing) when it works and doesn't work. If you're not embedding a node in itself, please open a separate issue.
Comment #4
mmatobscs commentedTo sreynen,
i really appreciate the help :-) i pretty much sorted it out yesterday....
I'm using panels, under the panel content tab > there's an option to add a content -- so i did..there's an option below it to add and existing node or new custom content...i clicked on new custom content and it renders the other node [[nid:123]] and is now attached to my node..now, i'm seeing my form below my page :-) i hope this helps someone out there
Comment #5
mrharolda commentedSeems that this issue has solved itself ;)