[Portfolio] Decorated URL's for attached portfolio files (SAK-16203)

hongbo zhang hbzhang at vt.edu
Thu Jul 29 10:16:46 PDT 2010

I think the decorate URL idea can work.  


If the image file is solely restricted to the use of as a portfolio banner.
We often use the file upload option in the template. If student upload the
image file to a public folder and select that image in the portfolio
template (not in form), then the banner image is public viewable.


I attached two screen shots for this.


In the long term, i think we may still need to fundamentally resolve the
form attachment public viewable issue instead of making a lot of working






From: sean at keesler.org [mailto:sean at keesler.org] On Behalf Of Sean Keesler
Sent: Thursday, July 29, 2010 10:14 AM
To: Ward, Lynn E.
Cc: hongbo zhang; Maurer, Christopher Wayne; osp
Subject: Re: [Portfolio] Decorated URL's for attached portfolio files


While Chris' suggestion that we add the site ID to the XML makes some sense,
I would propose that the decorated URL be presented as the URI for the file


When would that NOT be good idea?



Sean Keesler
130 Academy Street 
Manlius, NY 13104
sean.keesler at threecanoes.com

On Thu, Jul 29, 2010 at 5:15 AM, Ward, Lynn E. <leward at iupui.edu> wrote:

Hi Hongbo,


Thanks for the suggestion.  Sean is working on this problem for Indiana
University.  The problem with this solution is that the form in question is
the outline options form.  We use it to allow the student to upload a custom
banner for the portfolio.  Also, in most cases, students will do all form
creation for the portfolio directly in the Portfolios tool-in other words,
they won't be using the matrix, so attaching the files to the matrix isn't
really an option.



Lynn Ward, Principal Systems Analyst, Academic and Faculty Services

 <http://uits.iu.edu/> University Information Technology Services
Indiana University-Purdue University Indianapolis
Information Technology and Communications Complex (IT 225D)
535 West Michigan Street, Indianapolis, IN 46202
Phone: 317-278-5713  E-mail:  <mailto:leward at iupui.edu> leward at iupui.edu  


From: portfolio-bounces at collab.sakaiproject.org
[mailto:portfolio-bounces at collab.sakaiproject.org] On Behalf Of hongbo zhang
Sent: Wednesday, July 28, 2010 4:51 PM
To: 'hongbo zhang'; Maurer, Christopher Wayne; 'Sean Keesler'
Cc: 'osp'

Subject: Re: [Portfolio] Decorated URL's for attached portfolio files


This is latest version of the portfolio template and matrix. Just want to
make sure you get the latest version.




From: hongbo zhang [mailto:hbzhang at vt.edu] 
Sent: Wednesday, July 28, 2010 4:29 PM
To: 'Maurer, Christopher Wayne'; 'Sean Keesler'
Cc: 'osp'
Subject: RE: [Portfolio] Decorated URL's for attached portfolio files


     It is hard to really resolve the permission issue, when trying to use
the file attached to the form. Out past experiences told us the file
attached to the form is hard to be public viewable. However, there are
always ways for this, I guess.


    Instead of attaching file to the form, we often attach file to the
matrix, then incorporating the matrix to the portfolio. The file is then
public viewable.


   In terms of usability, the efficiency attaching multiple files to the
matrix is much faster than attaching files to the form. 


About tool ID, page ID. 


    <xsl:param name="id"/>

    <xsl:param name="mode" select="'view'"/>

    <xsl:param name="page"/>                       

<xsl:param name="sakai.tool.placement.id"/>   

<xsl:variable name="sitepath">




Then use it like the following for an image:


    <xsl:attribute name="href"><xsl:value-of select="
concat(normalize-space($sitepath), $sakai.tool.placement.id,
'/viewPresentation.osp?1=1&amp;id=', $id, '&amp;page=',



The reason for us to use PageID is because the image loading efficiency. If
we put all images in one page. It will make the page loading very slow. By
dividing images to different pages, it can improve the image loading



However, there is an issue about using PageID. for example this:





With PageID, it makes the portfolio not public viewable. The likely reason
might be because the public portfolio URL is 


d51af5d0902> &sakai.tool.placement.id=7a358da0-fc03-46d1-bc51-fd51af5d0902


You can find there is not PageID in the public viewable portfolio URL


This issue should be fixed in the future.


I attached the portfolio template and matrix. If you can import the matrix
and portfolio template. You might be able to make a portfolio with the looks
similar to this one:   

















From: portfolio-bounces at collab.sakaiproject.org
[mailto:portfolio-bounces at collab.sakaiproject.org] On Behalf Of Maurer,
Christopher Wayne
Sent: Wednesday, July 28, 2010 9:39 AM
To: Sean Keesler
Cc: osp
Subject: Re: [Portfolio] Decorated URL's for attached portfolio files


We could easily add the site id to be dumped out in the xml if it's not
available in any other way.




On Jul 28, 2010, at 8:04 AM, Sean Keesler wrote:


I'm trying to get an image that a user attaches to a form to appear in
public portfolios. The url provided in the passthrough XML is not a public
url and so must be decorated with security advisor info to allow it to be
seen. Chuck posts a suggested workaround in SAK-16203:

It isn't elegant, but I've fixed this in the XSL file by prefixing the
advisor to the URL. The data is all there. The two magic numbers are the
site ID, which is fixed for a given portfolio, and the portfolio ID, which
is a parameter $id. It uglifies the XSL file somewhat, but this approach
seems to work. 

The link to a public portfolio includes the "id" and
"sakai.tool.placement.id <http://sakai.tool.placement.id/> " in the query
string and can be captured as parameters in the xsl, but the site id is not
provided in the query string nor in the passthrough XML.

Can anyone suggest a means to get the site ID to do as Chuck suggests?


portfolio mailing list
portfolio at collab.sakaiproject.org

TO UNSUBSCRIBE: send email to portfolio-unsubscribe at collab.sakaiproject.org
with a subject of "unsubscribe"



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/portfolio/attachments/20100729/fb553f5b/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: select a banner.JPG
Type: image/jpeg
Size: 135173 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/portfolio/attachments/20100729/fb553f5b/attachment-0002.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cutstomzied header.JPG
Type: image/jpeg
Size: 124136 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/portfolio/attachments/20100729/fb553f5b/attachment-0003.jpe 

More information about the portfolio mailing list