I am trying to embed an LTI into a Page.
However the resulting iFrame would not load properly because it did not get any POST variables
However, after reading it and experimenting for 6 hours or so, I could not get it to work. I have poured over the examples but can't see what I am doing wrong.
My TP will load in the modal window from the rich text editor, however, when I click submit, it only goes to the "Retrieving Content..." page and stalls.
Would someone mind looking over my code to see if you can spot my error?
LTI creation XML
<?xml version="1.0" encoding="UTF-8"?>
<blti:title>Greenhouse</blti:title>
<blti:description>Embed Delphinium Components</blti:description>
<lticm:options name="editor_button">
<lticm:property name="message_type">ContentItemSelectionRequest</lticm:property>
</lticm:options>
<lticm:property name="selection_height">800</lticm:property>
<lticm:property name="selection_width">600</lticm:property>
</blti:extensions>
</cartridge_basiclti_link>
PHP
$this['return_url'] = $_POST["content_item_return_url"];
HTML
<form action="{{return_url}}" method="post" encType="application/x-www-form-urlencoded">
<input type="hidden" name="lti_message_type" value="ContentItemSelection" />
<input type="hidden" name="lti_version" value="LTI-1p0" />
<input type="submit" value="Submit me!"/>
</form>