[Portfolio] filefile displayName

Sean Keesler sean.keesler at threecanoes.com
Tue Jul 13 12:33:56 PDT 2010


I filed SAK-18773

Sean Keesler
130 Academy Street
Manlius, NY 13104
315-682-0830
sean.keesler at threecanoes.com


On Tue, Jul 13, 2010 at 10:54 AM, Ackerman, Erica <ericaack at umich.edu> wrote:
> Jon,
>
> Here is the Javascript/jQuery code that I use. It was originally created for
> use in a Matrix cell, where it predicts what the default Display Name will
> be and, if and only if that occurs, blanks it out. I never updated it when
> we started using the Portfolios tool for form creation, but it still does
> the job. That’s why I thought “filefile” was not the default Display Name.
>
> <script type="text/javascript">
>
> $(document).ready(function() {
>
> $("label[for='displayName']").text("Internal File Name");
>
> dn = $("input#displayName").val();
>
> if (dn.indexOf("ePortfolio Matrix-Goals-Goals Page") != -1)
> $("input#displayName").val(""); alertMess =
> $(".alertMessage:contains('displayName')").text();
>
>
> $(".alertMessage:contains('displayName')").text(alertMess.replace(/displayName/,
> "Internal File Name"));  });
>
> </script>
>
> Erica
>
> From: Jon Wheat [mailto:jwheat at messiah.edu]
> Sent: Tuesday, July 13, 2010 10:39 AM
> To: osp; Sean Keesler; Ackerman, Erica
>
> Subject: Re: [Portfolio] filefile displayName
>
>
>
> Erica,
>
> I actually did that - changed the renderer to blank out that name, but what
> happened was unexpected.  It did that every time that form is displayed -
> even when you edit it.  So when you created it - it was blank and you
> entered a name in there (good yea something I did works).  When you went
> back to edit something - it blanked it out what you had typed in (not good,
> figures, I'm not as good as I thought).
>
>
>
> I think at one point I even tried XSLT code to check for a value and not
> blank it out ... but that condition happens when you create a new one :) so
> then nothing happens and you're back to the default behavior with your extra
> code in there.
>
>
>
> Its been a year or so since I've played around with it, but I don't think
> there's even a set of constant text in there to check for to see if its the
> 'new' default value.  Maybe a : ??  I can't remember.
>
>
>
> All that probably doesn't help much, other than to know someone else had
> that issue and tried to work around it to no avail.  I eventually convinced
> the trainers to train the faculty to tell the students (sounds like the
> telephone game) to change that value when they uploaded files.
>
>
>
> -Jon
>
>
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ..:: If you need me please watch this video first
>
>  http://influxinsights.com/blog/article/2480/is-work-being-re-defined-.html
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Jonathan Wheat /  Developer
> Luminis Developers Network
> Messiah College, ITS
> 717.766.2511 x3385
>
> Member / IxDA : Interaction Design Association : http://www.ixda.org
>
> Personal Blog : http://blogs.messiah.edu/wheat_world
> LDN - Luminis Developer Network - http://www.lumdev.net
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>>>> Sean Keesler <sean.keesler at threecanoes.com> 7/13/2010 10:29 AM >>>
> We COULD use the renderer to filter out "filefile" and replace it with
> nothing...but that is really not how the default behavior should be
> anyway.
> I am seeing this when we:
>
> - preview the form
> - create a "New Form Item" in Resources
> - "Create New" when the form is in a portfolio template.
>
> You are correct, it does not occur in the matrix.
>
>
> Sean Keesler
> 130 Academy Street
> Manlius, NY 13104
> 315-682-0830
> sean.keesler at threecanoes.com
>
>
>
> On Tue, Jul 13, 2010 at 10:12 AM, Ackerman, Erica <ericaack at umich.edu>
> wrote:
>> Sean,
>>
>> I don't understand the inner workings of this, and I don't necessarily
>> remember the details, since we use a custom renderer to blank out the
>> Display Name field, forcing the user to enter something, but... My memory is
>> that that "filefile" only shows up in certain preview situations, like Forms
>> > Edit > Preview. In the actual Matrices tool, the default display name is
>> that ugly concatenation of elements. I don't remember what it is if you
>> create a form in the Portfolios tool, but I didn't think it was filefile.
>> But if I'm wrong, sorry to waste your time.
>>
>> Erica
>>
>> -----Original Message-----
>> From: portfolio-bounces at collab.sakaiproject.org
>> [mailto:portfolio-bounces at collab.sakaiproject.org] On Behalf Of Sean Keesler
>> Sent: Tuesday, July 13, 2010 10:04 AM
>> To: osp
>> Subject: [Portfolio] filefile displayName
>>
>> When working on a custom form renderer I notice that the default
>> displayName for a piece of content ends up being "filefile".
>>
>> <formView>
>>  <formData>
>>    <artifact>
>>      <metaData>
>>          <displayName>filefile</displayName>
>>
>> When a user fills out the form, that is what gets stuck in that
>> Display Name input area. It is a bad choice.
>> Where is that being generated?
>> Can that be just left as an empty string?
>> I could test for that and remove it with custom renderers....but....
>>
>> Sean
>> _______________________________________________
>> portfolio mailing list
>> portfolio at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/portfolio
>>
>> TO UNSUBSCRIBE: send email to
>> portfolio-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>>
> _______________________________________________
> portfolio mailing list
> portfolio at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/portfolio
>
> TO UNSUBSCRIBE: send email to portfolio-unsubscribe at collab.sakaiproject.org
> with a subject of "unsubscribe"


More information about the portfolio mailing list