What I want to do is create a trigger that passes in some data and then build a rule to create new node and use that data to fill in the fields. The add variable at the bottom confused me until the penny dropped and I realised that is the new node. But I think there are a couple of bugs. My new data I can insert with php i.e. echo $data but the tokens are nonsense. So my variable trans_type which I have said is a string has many tokens for example [trans_type:site-mission] and data and uid. All of which make no sense. String should only have tokens of raw and formatted (check_plain I assume). In fact those are the 2 I don't have.
The other bug is the title. That is a required item yet I have autotitle module installed so it should not be a required.
Comments
Comment #1
malc_b commentedSorry that should have been date, not data, i.e. [trans_type:site-date-yyyy].
There is also another issue. If I try to set a cck field that is numeric I can't use php echo $data to insert the data. I have to set the value to 0, then use php return array etc. I suspect this would also rule out tokens if they worked too. It is easy to see why this is happening. The field is using the validation of numeric xx digits. Not sure this has an easy solution
Comment #2
mitchell commentedI cannot tell if this is bug report or a support request. If this is really a bug, please clearly state the problem and how to reproduce it. On the other hand, this seems more like a support request, so my recommendation is to stick to using tokens and avoid manually entering php for now. Rule's token integration should support whatever you're trying to do with dates. If this is unclear, please open a new issue and narrow the focus on a single topic.