Repeatable: Always
Steps to repeat:
1. Drupal7 installed
2. Install WebSite Screenshot (latest build)
3. Install Rules2.0 for D7 (latest build)
4. Create a contenttype which has a text field 'Imported_URL' (this isn't the screenshot field)
5. Create a Screenshot field called Screenshot.
6. Configure to use one of the screenshot engines and test that when entering a valid Screenshot field value, a screenshot is retrieved and displays.
7. Configure a new Rule using Rules.
7.1 - Event = 'After saving new content' OR 'After updating existing content'
7.2 - Condition = Entity has field{Entity: [node], Field: field_imported_url}
7.3 - Action = Set a data value{Data: [node:field-screenshot-url], Value: [node:field-imported-url]
note - You will not be able to select node:field-screenshot-url as it isn't a token or known data selector in Rules. The Website Screenshot module needs to expose these to Rules so that Rules can take advantage of the WebSite Screenshot fields.
8. With the field being available, I would be able to Activate the rule.
Expected Results:
User will be able to ingest values and perform simple modifications to the data e.g. adding 'http://' as a prefix for example if it's not seen in the string' and then set the value into the WebSite Screenshot URL field ready for the engine to pick up and get the screenshot.
Actual Results:
Can't get past step 7.3 as I'm not able to reference the field-screenshot-url field at all. I have tried token, data selector, and PHP eval but not able to get a value from an existing D7 field into the WebSite Screenshot URL field.
Comments
Comment #1
moejarv commentedDo we have any progress on this?