{"id":37857,"date":"2010-09-24T11:32:09","date_gmt":"2010-09-24T15:32:09","guid":{"rendered":"http:\/\/www.bu.edu\/tech\/?page_id=37857"},"modified":"2013-10-26T15:00:13","modified_gmt":"2013-10-26T19:00:13","slug":"course-feed-website","status":"publish","type":"page","link":"https:\/\/www.bu.edu\/tech\/services\/cccs\/websites\/www\/non-wordpress\/how-to\/coursedescription\/course-feed-website\/","title":{"rendered":"Including the Course Feed in a Website"},"content":{"rendered":"<p>Once your course-feed directories, Course Container files and Course  Template files have been created, you are ready to add your finished  Course Description feed to a website. If you wish to preview your  output, you can do so using the <a href=\"http:\/\/www.bu.edu\/phpbin\/coursedesc2\/preview.php\">CD Feed Preview<\/a> tool. Note that your CD feed will automatically update on a weekly  basis, but that you can always manually update your feed using the <a href=\"http:\/\/www.bu.edu\/phpbin\/coursedesc2\/preview.php\">CD Feed Preview<\/a> tool&#8217;s &#8220;Publish&#8221; option.<\/p>\n<h3>Overview<\/h3>\n<p>The Course Description Feeds application uses your Course Container  and Course Template files to produce output files that can be used in  any HTML page. The names of your output files are specified in the  outputattribute of your Course Container (CTF) file and are located in  yourcourse-feeds\/output directory. These output files can be included  into your website as server-side includes (SSI files). The easiest  method of enabling SSIs is to rename any .html files to use the .shtml  extension.<\/p>\n<h3>Specifics<\/h3>\n<p>Once you have enabled server-side includes for your web page(s), you  can include a course description by adding the following line to your  web page&#8217;s source code:<\/p>\n<p>&lt;!&#8211;#include virtual=&#8221;\/<strong>your-path<\/strong>\/course-feeds\/output\/<strong>file.html<\/strong>&#8221; &gt;<\/p>\n<p>Make sure to replace &#8220;your-path&#8221; with the correct location of  yourcourse-feeds directory (normally your department&#8217;s top-level web  directory) and &#8220;file.html&#8221; with the name of the output file which you  wish to include:<\/p>\n<p>&lt;!&#8211;#include virtual=&#8221;\/history\/course-feeds\/output\/undergraduate.html&#8221; &gt;<\/p>\n<p>The name of the output file is specified in your Course Container (CTF) file&#8217;s output attribute.<\/p>\n<p>Reminder: Contact <a class=\"myhelp_activate\" href=\"\/tech\/contact\">IT Help Center<\/a> to have your course-feeds directory setup for use with Course  Description Feeds. Although you can create the required directories  yourself, the the IT Help Center staff will need to setup special access  permissions for the application to work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once your course-feed directories, Course Container files and Course Template files have been created, you are ready to add your finished Course Description feed to a website. If you wish to preview your output, you can do so using the CD Feed Preview tool. Note that your CD feed will automatically update on a weekly&#8230;<\/p>\n","protected":false},"author":3321,"featured_media":0,"parent":37730,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/37857"}],"collection":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/users\/3321"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/comments?post=37857"}],"version-history":[{"count":7,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/37857\/revisions"}],"predecessor-version":[{"id":71630,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/37857\/revisions\/71630"}],"up":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/37730"}],"wp:attachment":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/media?parent=37857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}