Solprovider Lenya Kongregate Registration for Free Flash Games and Chat with solprovider

Set Title for New Documents

By default, when a new document is created:
- Subject must be entered on the Form
- Title is garbage.
- Description is filled with a reminder this is the description that search engines might use.

Use the "Navigation Title" for "Subject" and "Title"


FILE: {pub}\config\tasks\targets.xml
<target name="create">
...
<xslt in="${document.file}"
out="${temp.file}"
force="true"
style="${pub.dir}/../../xslt/authoring/addMetaData.xsl">
<param name="title" expression="${create.title}"/>
<param name="creator" expression="${create.creator}"/>
<param name="subject" expression="${create.subject}"/>
<param name="description" expression="${create.description}"/>
<param name="language" expression="${create.language}"/>
<param name="publisher" expression="${create.publisher}"/>
<param name="date" expression="${create.date}"/>
<param name="rights" expression="${create.rights}"/>
<param name="columns" expression="${create.columns}"/>
</xslt>
<move file="${temp.file}" tofile="${document.file}"/>
</target>


Replace this section:
<param name="title" expression="${create.child-name}"/>
<param name="creator" expression="${create.creator}"/>
<param name="subject" expression="${create.child-name}"/>
<param name="description" expression=" "/>


Description must contain a space. If description is empty, the default sentence is used.

Remove Subject from "New Document" Form


FILE: {pub}\lenya\xslt\authoring\create.xsl
Delete:
<tr>
<td class="lenya-entry-caption">
<i18n:text>Subject</i18n:text>:</td>
<td>
<input class="lenya-form-element" type="text" name="properties.create.subject"/>
</td>
</tr>


<< Create All LanguagesContents >>

Contact Solprovider
Paul Ercolino