Search:
tqExpert Help
print
|
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Help > tqExpert Help > tqTag Reference > contentExtensionValues

contentExtensionValues

To enable additional fields for content items, the tqExpert needs to include the contentExtensionValues tqTag in the relevant inner template.

contentExtensionValues - Syntax

<tqtag name="ext0type="contentExtensionValuesextensionName="myExtName" [createIfNotExist extensionValue="myExtValue"] >
...
</tqtag>

contentExtensionValues - Parameters

Parameter Name Type Mandatory Strict | Transitional Case Sensitive Description
type Text + S + must be contentExtensionValues
name Text + S + should be unique tqtag name in the template. no spaces/commas/single quote/double quotes allowed
createIfNotExist   - T   Used to make sure a specific value exist for extentionName.
If value in extensionValue do not exist the system will add it to the db.
Must go together with extensionValue
extensionName Alpha Numeric + S + The system will retrieve all values for the extensionName
extensionValue   - S + Value to check if exist in db.
Must go together with createIfNotExist
maxItems
Number - S The max number of additional fields allowed
parentValue

contentExtensionValues - Local Variables

Name Type Size Description
addDate datetime   The datetime the extension was created or last modified. can be formated using 2009-01-09 09:57:54df:[format]!
count
counter number 6 Running number from 1 to n
extName text 200 The name of the extension
id number 12 Extension value id
parentID number 5 The id of the parent extension
theValue text 1024 Extension value

contentExtensionValues - Examples

Example 1 - very basic use of contentExtensionValues tqtag
in this example we assume that we have defined an additionalField tqtag with the neame intelProcessors and it's htmlObject was set to "select".
<select name="intelProcessorsSelect" id="intelProcessorsSelect" dir="ltr" onchange="setAppropriateVals()"><option></option>
     <tqtag name="ext0type="contentExtensionValuesextensionName="intelProcessors" >
           <option value="@id@">@theValue@</option>
     </tqtag>
</select>


Example 2 - contentExtenstionValues tqtag that insert value to database if it's not exist
<tqtag name="extAuthortype="contentExtensionValuesextensionName="intelProccreateIfNotExist extensionValue="Core Duo 2 1.6" >
    <input name="ocdbAuthor" value="@ocdbAuthorName@" readonly="readonly" type="text" />
</tqtag>

contentExtensionValues - tqoptions

Within the contentExtensionValues tqtag you can use the following tqoptions: head, if, lastItemInRow, tail.

User Notes

  Add Note

Topic: contentExtensionValues