how to include content from flexmail-triggering plus card?

Support Ticket

+status
 

(Could've sworn I had this working earlier, but can't seem to get it now.)

 

On http://test.dwagn.org/wagn/sendit+*right+email_config add yourself to +*to and send emails by adding http://test.dwagn.org/wagn/foo+flexmail_test (replace foo with something unique), submit to create the card, then create the linked-to card

 

The last card you create (+prefatory remarks) should show up in the email, but instead you see something like: "Add b+flexmail test+sendit+prefatory remarks"

 

 

Probably unrelated, but if there's a card http://test.dwagn.org/wagn/sendit+*right+*content (tried this at one point with in it), then no email is sent at all.

 

I'm guessing that it works as part of a form but not on its own.  I hadn't thought through this before but I can see why that would happen.


What do you mean by "it works as part of a form"?

  --John Abbe.....Wed Mar 16 19:40:35 -0700 2011


I mean if you create the plus card (eg+sendit+prefatory remarks) as part of a multi edit when creating the trigger card (eg+sendit), it will work. I know we wanted to do it the other way for the red links, but I don't think it will work, because the create process and the email event for the trigger card is completely over before the plus card is officially created.

 

This is basically true for multi-edits, too, but the event handling is written such that multi-edits have a separate trigger associated with the root card.

  --Ethan McCutchen.....Thu Mar 17 09:44:45 -0700 2011


Got it. And, there are problems with that approach as well. As I reported above, if there's a card http://test.dwagn.org/wagn/sendit+*right+*content (tried this at one point with in it), then no email is sent at all. You go to eg+sendit and you don't get multiedit, you get a virtual card with an offer to add eg+sendit+prefatory remarks.

 

Not seeing how to make this work with right cards. I thought if Jerry's okay with the prefatory remarks being a single card that gets edited whenever it's different, we could include that in "prefatory remarks+*right+*default", but there's no way to edit inclusions when adding a new card. All I can think for now is to make it two steps: edit the single card - http://test.dwagn.org/wagn/prefatory_remarks - and then include it directly on http://test.dwagn.org/wagn/sendit+*right+email_config+*message but if you have any better ideas, please let me know.

 

allow multi-edit on virtual forms would fix this, and/or we could ticket make flexmail handle plusses of triggering right cards?

  --John Abbe.....Thu Mar 17 14:57:08 -0700 2011


don't want to ticket the special case, because this stuff is all getting refactored anyway and I don't want to (a) hack it together and then have to support it through the refactor or (b) wait too long to address this one case.

 

Might be worth a quick stab at allowing multi edit.

 

If you were going to go with a two-creation solution, you could make it A+prefatory and just require adding that before A+sendit. You could also make a "Call Email" type that includes +prefatory and make +sendit a card of that type.

  --Ethan McCutchen.....Thu Mar 17 17:59:07 -0700 2011


Exploring the latter. Confused about why http://test.dwagn.org/wagn/h+sendit doesn't show +prefatory remarks. Given http://test.dwagn.org/wagn/Call_Email+*type+*content which works on http://test.dwagn.org/new/Call_Email but doesn't at that first link despite http://test.dwagn.org/wagn/sendit+*right+*content veing set to "Call Email" type.

 

Seems to be a general problem - e.g., http://test.dwagn.org/wagn/foo+rightcomplex doesn't offer the http://test.dwagn.org/wagn/complex-formed+*type+*content form on http://test.dwagn.org/wagn/rightcomplex+*right+*content - so, ticket handle types specified by right?

 

In any case, even if that did work (which seemed for a moment like it might result in a one-creation solution), it still wouldn't offer multi-edi,t since the card is virtual.

  --John Abbe.....Thu Mar 17 21:36:53 -0700 2011


I do see "+prefatory remarks" on "h+sendit". The type isn't showing up as "Call Email" because http://test.dwagn.org/wagn/sendit%2B*right%2B*content is not a Call Email card.

 

The issue isn't that there's anything wrong with *right per se, it's that if you have a *content templated card that's supposed to take its content from another *content templated card, it's not doing the redirection (it's taking the raw db content of the first).

 

I guess we could ticket let *structure rules be structured, though it seems pretty edgy.

 

Anyway, what you want here is sendit+*right+*default, not sendit+*right+*content. That's just a more complex version of the same old problem.

  --Ethan McCutchen.....Fri Mar 18 11:16:28 -0700 2011


feh, was probably the cache. And http://test.dwagn.org/wagn/sendit%2B*right%2B*content was a Call Email card before I deleted and recreated it. Agree on the edginess, but added that Idea.

 

Ignoring all of that for now at least (stay on target), I tried sendit+*right+*default and no luck - neither http://test.dwagn.org/wagn/foo+sendit (exists) nor http://test.dwagn.org/wagn/foo+sendit (doesn't) reflect the form http://test.dwagn.org/wagn/Call_Email+*type+*content -- the existence of http://test.dwagn.org/wagn/sendit%2B*right%2B*default is taking precedence, right?

  --John Abbe.....Fri Mar 18 13:33:17 -0700 2011


ok, you're right. I actually worked up a quick "fix" before realizing it's actually important that that the override work as it does. I think at this point I might go with an explicit link to create the card, sending the type as a CGI variable.

  --Ethan McCutchen.....Fri Mar 18 17:12:52 -0700 2011


And, that hits a new problem: the first link at http://test.dwagn.org/wagn/moo+flexmail_test offers to add a Basic card, saying, 'Oops! There's no card type called "Call_Email.html".' Not sure exactly what to ticket, but it shouldn't be adding the ".html", right?

 

I get why the second link doesn't work but I thought I'd give it a try. Doing it as an inclusion seems to work, thankfully, so I'll go with that.

  --John Abbe.....Fri Mar 18 21:06:13 -0700 2011