substitution variables in Canvas

176 views
Skip to first unread message

Avinash Sachdewani

unread,
Apr 15, 2015, 6:49:02 AM4/15/15
to canvas-l...@googlegroups.com
Can anyone explain the usage of substitution variable that i.e when we should use and How ? Anyone can refer some document it will be great.I found one link (https://github.com/instructure/canvas-lms/blob/master/lib/lti/variable_expander.rb) about this I found on that this ruby programs define the substitution variables am I correct?

Brad Humphrey

unread,
Apr 15, 2015, 8:36:18 AM4/15/15
to canvas-l...@googlegroups.com
Take a look at https://canvas.instructure.com/courses/913512/pages/variable-substitution?module_item_id=6827542.  Let me know if you have further questions after reading this


On Wed, Apr 15, 2015 at 4:49 AM, Avinash Sachdewani <avinash.sac...@gmail.com> wrote:
Can anyone explain the usage of substitution variable that i.e when we should use and How ? Anyone can refer some document it will be great.I found one link (https://github.com/instructure/canvas-lms/blob/master/lib/lti/variable_expander.rb) about this I found on that this ruby programs define the substitution variables am I correct?

--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Becky Kinney

unread,
Apr 15, 2015, 10:23:24 AM4/15/15
to canvas-l...@googlegroups.com
I have a question about the api domain. I often see a custom_canvas_api_domain in my LTI parameters, even when I don't add the $Canvas.api.domain to my xml. BUT, it always shows my primary api domain (in my case udel.instructure.com), even when I am on my test instance (udel.test.instructure.com). So, as a work-around, I have been hard coding a value into a custom variable of my own. What I'm wondering is what value I'll get from $Canvas.api.domain. Is it always going to be the primary domain? I will need to understand this more fully when I start making API enabled LTI tools available on other Canvas instances.

Becky Kinney
Academic Technology Services

Becky Kinney

unread,
Apr 15, 2015, 10:39:38 AM4/15/15
to canvas-l...@googlegroups.com
I just visited my test server again, and it looks like the problem with custom_canvas_api_domain is fixed, so I guess I can rely on that going forward, as long as I can count on the parameter actually being there on all LTI launches. I know I won't get it on anonymous launches, which is okay, but I guess I'm just looking for reassurance that custom_canvas_api_domain is something I can count on going forward. If not, I can add it to my xml as I have been doing, but with the substitution variable.

Becky Kinney
Academic Technology Services

Brad Humphrey

unread,
Apr 15, 2015, 11:29:43 AM4/15/15
to canvas-l...@googlegroups.com
It should be fine, there was a bug in the generation of that that was fixed a month or so ago
Reply all
Reply to author
Forward
0 new messages