Hey, I am new to Xblocks, but used Django before. I want to ask is, how we can add URL to the new HTML file in the student_view of Xblocks. As suppose, we have myxblocks.html and new.html file in the static folder inside the myxblock directory, and I want to go to new.html, by clicking a button which will be on myxblocks.html ( in same folder ). How to add the url of the new.html.
Thanks a lot !
I’m not exactly sure what you’re trying to achieve here. An Xblock will generally only have one view, i.e. a single HTML page that a user sees.
If your XBLock needs multiple complex views, you can use Javascript to load template pages on the fly.