Transferring text into an html page in one course from another html page in another course.
Hello,
Within the confines of Brightspace, how can I transfer data such as text or images from one html page in one course to other html pages in other courses?
I want to create an html page in NCE containing all the necessary components that faculty need to include in their syllabi. When faculty create their syllabi in their respective courses in html pages, I want there to be place holders in their pages so that the most updated text from my page populates their pages.
Any ideas on how to do this in Brightspace would be greatly appreciated. Thanks!
Best Answer
-
If you're up for a bit of coding, you could create an HTML template that includes a script tag which calls a bit of JavaScript sitting in Public Files. You also include a container div tag for the user's content to sit in.
Within your JavaScript you can do a find and replace in the div innerHTML (either with JQuery or just read the contents into a variable, do str_replace and output it back to the innerHTML). So if they enter [integrity] your code replaces that with the appropriate template for academic integrity. (You may even be able to do it on the body element to avoid somebody being able to delete your div and break it.)
Answers
-
Hi Yildiz!
Probably, if you create a custom HTML template you may include your custom components for your Faculty, facilitating the creation of new HTML pages in your courses.
Another option is to create a Course template that includes the HTML style you defined AND the Structure that your faculty needs.
I trust this will helps you
-
Hi Yildiz!
Probably, if you create a custom HTML template you may include your custom components for your Faculty, facilitating the creation of new HTML pages in your courses.
Another option is to create a Course template that includes the HTML style you defined AND the Structure that your faculty needs.
I trust this will help you
-
Thank you for your response. I already thought of that as an option and ruled it out because every time one wants to apply a template, it deletes all the existing content.
What I'm asking for is something more advanced in which the template can be applied to only a portion of an existing html page, not the entire page.
-
Oh, I see!
Yes, If you add an HTML template to one previous HTML page created, you will have the HTML page replaced with the content of the HTML (in blank).
What I do in this case, is to copy some part from the blank HTML template and paste it into your current HTML page.
Regards
AF
-
Yes, copying and pasting is a solution, but faculty are looking for a more automated solution. Thanks for engaging with this problem!
-
@Steve.B.446 I was able to complete this task following your suggestion a while ago and forgot to thank you for the advice! So, thanks!