[Portfolio] Create Form "Display Name"
Sean Keesler
sean.keesler at threecanoes.com
Wed Dec 22 13:31:49 PST 2010
My snippet to get rid of it was:
<xsl:template match="formView">
<xsl:variable name="displayName">
<xsl:choose>
<xsl:when
test="formData/artifact/metaData/displayName = 'filefile'">
<xsl:text></xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="formData/artifact/metaData/displayName" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
and then....
<!--<xsl:value-of
select="formData/artifact/metaData/displayName" />-->
<xsl:when test="$subForm = 'true'">
<h4>
<!--<xsl:value-of
select="formData/artifact/metaData/displayName" />-->
<xsl:value-of select="$displayName"
/>
</h4>
</xsl:when>
<xsl:when test="$fromResources = 'true' and
$edit = 'true'">
<h4>
<!--<xsl:value-of
select="formData/artifact/metaData/displayName" />-->
<xsl:value-of select="$displayName"
/>
</h4>
<input type="hidden" id="displayName"
name="displayName" maxlength="1024">
<xsl:attribute name="value">
<!--<xsl:value-of
select="formData/artifact/metaData/displayName" />-->
<xsl:value-of select="$displayName"
/>
</xsl:attribute>
</input>
</xsl:when>
I guess that precludes name your form instance 'filefile'.
I'll buy a cold beverage if you make the default name of a form an empty
string!
Sean
On Wed, Dec 22, 2010 at 4:19 PM, Bryan Holladay <holladay at longsight.com>wrote:
> Do you know what file that is? Or is that source code?
>
> Thanks
>
> On Dec 22, 2010, at 3:55 PM, Ackerman, Erica wrote:
>
> Bryan,
>
> This isn’t much help, but I remember figuring out where the “fil” was
> coming from once. “Fil” is cut off from “file”, and it is the part of the
> form metadata that gets used when the displayName field is empty (which it
> is when you preview a form or create one in Resources.) It might come from
> the <artifact><metaData><type><id>. I hope this at least points you in the
> right direction.
>
> Erica
>
> *From:* portfolio-bounces at collab.sakaiproject.org [mailto:
> portfolio-bounces at collab.sakaiproject.org] *On Behalf Of *Bryan Holladay
> *Sent:* Wednesday, December 22, 2010 3:43 PM
> *To:* portfolio at collab.sakaiproject.org
> *Subject:* [Portfolio] Create Form "Display Name"
>
> I've been looking for the source of a miscellaneous value that is
> automatically populating the "Display Name" when creating a form. I.E.,
> when I go to Edit -> Preview on a form, the "Display Name" field has "fil"
> automatically populated. I've looked in the Portfolio Admin site Resources
> tool at the following files: formCreate.xslt, contentOverText.xml,
> formFieldTemplate.xslt, formView.xslt but didn't find anything that would do
> that. Is there somewhere else it's pulling this from? Has anyone seen this
> before... I know the part of the code that is filling it in is in
> formCreate.xstlt at:
>
>
> <input type="text" id="displayName" name="displayName" maxlength="1024">
>
>
> <xsl:attribute name="value">
>
>
> <xsl:value-of select="formData/artifact/metaData/displayName" />
>
>
> </xsl:attribute>
>
>
> </input>
>
>
> Thanks,
> Bryan
>
>
>
> _______________________________________________
> 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"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/portfolio/attachments/20101222/eef2ebb2/attachment.html
More information about the portfolio
mailing list