[Using Sakai] Sakai 2.9 Orientation Tutorial

Bryan Holladay holladay at longsight.com
Tue Sep 17 11:56:23 PDT 2013


That's a cool feature that I never new about.  The only problem I see is
that you usually want the tutorial to only pop up one time and not
everytime.  You could add a cookie, but that will eventually go away (or a
different browser).  If there was an additional REST service in the
tutorial tool to add/check flags, then that would work.


On Tue, Sep 17, 2013 at 2:51 PM, Charles Severance <csev at umich.edu> wrote:

> Bryan / Katie,
>
> This might be a nice time to make use of a nice little admin backdoor to
> slip some HTML/JS into a particular site's markup.
>
> If you go into the site's properties in the admin editor and add a property
>
> sakai:htmlInclude
>
> And put in some JavaScript or any other HTML fragment, it will run on
> every one of the site pages and on no other sites.  And not require any
> code changes to the portal.
>
> I use this to pop up an Olark.com chat tool up atop my CTools sites
> (screenshot).
>
> It includes the HTML snippet in the background document near the site icon
> - so it is on the outer portal markup (i.e. not inside an iframe).  It does
> nicely allow you to slip a little special markup into a particular site.
>  Being in the outer panel, it can show up anywhere including atop content
> within an iframe.
>
> Hope that helps.  I always try to avoid having to drop special code into
> the portal templates - it is enough of a rats nest already :)
>
> /Chuck
>
> On Sep 17, 2013, at 2:36 PM, Bryan Holladay <holladay at longsight.com>
> wrote:
>
> Yup, that's possible.  You just need to create a new set of tutorial pages
> with a new prefix (prefix is only for helping you distinguish).  For
> example, the intro to sakai prefix is: "introToSakai_".  Once you have the
> properties setup, all you need to do is add some javascript somewhere in
> that site's home page to call the showTutorialPage function in
> https://source.sakaiproject.org/svn//reference/trunk/library/src/webapp/js/jquery/qtip/tutorial.js
>
> The introToSakai just calls
>
> showTutorialPage("/direct/tutorial/introToSakai_p1.json", {});
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-user/attachments/20130917/b9464587/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 241172 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-user/attachments/20130917/b9464587/attachment-0001.png 


More information about the sakai-user mailing list