https://drive.google.com/file/d/1SPTLspHjBxmqGiE39slGQZxA5inRZpe7/view?usp=sharing

Attached file is the code.
==========================
I would like to show different content via if-else ,



<div class="box_block" >
    {%  if self.display_name == "Visualize Coding" %}
        {{ self.boxurl }}
    {% endif %}
    {% if self.display_name == "External Html" %}
        <iframe src="{self.boxurl}" frameborder="0" name="test" scrolling="yes" 
width="{self.boxwidth}" height="{self.boxheight}" allowfullscreen></iframe>
    {% endif %}
</div>



I try many times and still fail . 
Is there any document about the xblock-html develope? 

(Maybe somebody could tell me the problem in my code.)

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/e4ce7a6d-2c04-4e14-92a9-c35ed732843d%40googlegroups.com.

<<attachment: box.zip>>

Reply via email to