ImageUser Element (Data): Difference between revisions

From HLKitWiki
Jump to navigationJump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{context|Kit Reference|Data File Reference|Portal Element (Data)}}
==The "image_user" Element==
==The "image_user" Element==


Line 5: Line 7:
:{| class="infotable"
:{| class="infotable"
|class="leftnormal"|field
|class="leftnormal"|field
|(Optional) Id – Specifies the unique id of the field whose contents manage the image to to be displayed within the portal. The field must be a value-based field of "user" style, and its contents should never be modified by script. The field must exist within the pick/thing associated with the containing template. If this portal is not defined within a template, a field-based image is not allowed.<br>
|Id – Specifies the unique id of the field whose contents manage the image to to be displayed within the portal. The field must be a value-based field of "user" style, and its contents should never be modified by script. The field must exist within the pick/thing associated with the containing template. If this portal is not defined within a template, a field-based image is not allowed.<br>
{{note}}User-selected images are tracked internally with the portfolio, so no link to the original image file exists.
{{note}}User-selected images are tracked internally with the portfolio, so no link to the original image file exists.
|-
|-

Latest revision as of 01:04, 2 December 2008

Context: HL Kit &#133; Kit Reference &#133; Data File Reference &#133; Portal Element (Data) 

The "image_user" Element

The role of the "image_user" element is to allow the user to select the image to be displayed and show it within the portal. Until the user selects an image, a placeholder image is shown instead. This portal type is intended for use in allowing the user to select a character portrait and related situations. The complete list of attributes for this element is below.

field Id – Specifies the unique id of the field whose contents manage the image to to be displayed within the portal. The field must be a value-based field of "user" style, and its contents should never be modified by script. The field must exist within the pick/thing associated with the containing template. If this portal is not defined within a template, a field-based image is not allowed.

NOTE! User-selected images are tracked internally with the portfolio, so no link to the original image file exists.

Example

The following example demonstrates what a user image portal might look like. All default values are assumed for optional attributes.

<portal id="image" style="imgNormal">
  <image_user field="userimage"/>
  </portal>