[Building Sakai] predictable url for placed Sakai tool

Altgilbers, Ian M Ian.Altgilbers at tufts.edu
Sat Dec 17 20:57:17 PST 2011


Turns out the link already exists...  The MOTD tool is already on a page in the gateway, and the tool ID is !gateway-110.

All I had to do was grant annc.read permission to the .anon role in the /site/!gateway realm, then the URL "/xsl-portal/tool/!gateway-110" gets me exactly what I was looking for.

I'm still curious if I can rename tool_ids by just editing them in the DB...  I guess I can always just try and see what blows up... :)

Ian

On Dec 12, 2011, at 10:54 PM, Altgilbers, Ian M wrote:

> Hello list,
> 
> I am looking for a way to get a predictable URL for the Sakai MOTD.  We want to AJAX that information into another page outside of the normal Sakai structure (and want to have that same code work on our dev/test systems as well).
> 
> I have added the sakai.motd tool to a page in the gateway site, but I cannot specify a custom tool id, so I end up with a URL that is instance-specific (with the long random IDs).  I also tried using the alias too, but I don't think it allows for such deep links to specific tool instances.
> 
> Am I missing a more obvious solution?  How are predictable page and tool ids like this generated?:  
> 
> site/!gateway/page/!gateway-700
> /tool/!gateway-710
> 
> Thanks,
> 
> 
> Ian Altgilbers
> Academic Systems Administrator
> Educational & Scholarly Technology Services
> University Information Technology
> Tufts University
> 
> Phone: 617.627.0388
> 
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"



More information about the sakai-dev mailing list