I originally created an issue in Rules. But I'm not sure if the origin of the problem is from this module instead, so I'm posting it here as well. Any ideas?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | token_support_for_rules-2618716-4.patch | 1.4 KB | tobiasb |
I originally created an issue in Rules. But I'm not sure if the origin of the problem is from this module instead, so I'm posting it here as well. Any ideas?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | token_support_for_rules-2618716-4.patch | 1.4 KB | tobiasb |
Comments
Comment #2
jay.lee.bio commentedAccording to drone.ah, apparently the host entity for Rules is a token added by this module (just like a token added by a Field Collection), so I'm changing the title of this issue.
Comment #3
jeroen.b commentedDuplicate of #2618716: Fix typo in ParagraphsItemMetadataController to provide the host-token in Rules
Comment #4
tobiasbI am not really sure if rules token/ token are the same. Because I did not find the host token in token browser but with patch I saw the token in rules token list.
A test rule. Import the code via http://example.com/en/admin/config/workflow/rules/components/import and execute the rule component, enter a Paragraphs-ID and you should see the url of the host entity. (Must be a node)
Comment #5
tobiasbComment #6
murzDoes this patch allow to use tokens in
paragraphs_itementity? So inparagraphs_itemtextarea field I can type something like[paragraphs_item:pp_title]and it replace this token to Paragraphs pp_title field?Can you provide more usage examples?
Comment #7
tobiasb@Murz When the token is visible in the token-tree, then yes.
Comment #8
murz@tobiasb, thanks for reply. I apply this patch, clear site cache, but in token list for
paragraphs_itementity I don't see group "Paragraphs" or something similar. Maybe I need to do some additional things for add Paragraphs token group?Comment #9
tobiasb@Murz
I am not sure but I believe this only works with entity_token. Which is part of the entity project/module.
Comment #10
murzI review and test this patch, it actually fixes typo error that break token info for paragraph_item entity. So we can apply it to module core.
And about using tokens into paragraph_item entity: they are not displayed on field properties interface, but available via direct usage, here is examples:
So we can write in
pp_bodyfield token[paragraphs_item:pp_title]that will be replaced to Paragraphs title text. ModuleEntity Tokenmust be enabled for this.Comment #11
delacosta456 commentedhi
i apply this patch but can't see how to specify the pargrapgh bundle
Any help please
EDIT : after node have been save with fird rule ... when trying to view, or delete the node i have the below message
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=230&op=do StatusText: Service unavailable (with message) ResponseText: EntityMalformedException: Missing bundle property on entity of type paragraphs_item. in entity_extract_ids() (line 7929 of /Applications/MAMP/htdocs/brainrhdgddi/includes/common.inc).EDIT2: HOWEVER looking in the database paragraphs_item table the item was saved but his bundle was missing..
Comment #13
jstollerPatch committed to dev with minor text changes.