tqExpert Help


For the forum tqTag to display effectively, you also need to define a forumCreateBunch tqTag.

forumCreateBunch - Syntax

<tqtag name="createBunch0type="forumCreateBunchtitle="createBunch" >

forumCreateBunch - Parameters

Parameter Name Type Mandatory Strict | Transitional Case Sensitive Description
type Text + S + must be forumCreateBunch
name Text + S + should be unique tqtag name in the template. no spaces/commas/single quote/double quotes allowed
title Alpha Numeric + S - The title of the tqtag. This title will be presented only at the back-end system.  no spaces/commas/single quote/double quotes allowed
alternativeTag Text + S + Specify a case declared within the alternative tqTag.
alternativeCondition Text + S + (optional, if the condition is specified within the alternative tqTag) Indicate a condition for the case that you are specifying. Use one of the values described for this field under alternative, for example, isNewBunch.

forumCreateBunch - Local Variables

Name Type Size Description
action text ~100 the url for submitting new bunch
addDate datetime   The datetime the section was created or last modified. can be formated using 2009-01-09 12:19:14df:[format]!
bunchSubject text 180 The subject of the bunch
custUserName text 20 Post creator name
description text 65535 Forum Description
forumName text 100 The name of the forum adding the bunch or the response
newBunchLink text ~100 Link to create new bunch in the current forum
numBunches number 5 Number of bunches in the current forum
numPosts number 12 Number of total posts in the current forum
sectionID number 5 Forum's database section id
showOrder number 12 Represent the order number of the forum in the section, this number is not a running number.
title text 180 same as bunch subject

forumCreateBunch - Examples

Example 1 - basic use of forumCreateBunch tqtag
<tqtag name="createBunch0type="forumCreateBunchtitle="createBunch" >
    <form method="post" action="@action@" enctype="multipart/form-data">
        <div>Thread Title: <input type="text" name="title" id="title" /></div>
        <div>Thread Content: <textarea name="content" id="content" style="width:99%;height:300px;"></textarea></div>
        <button type="submit">Submit</button>

Example 2 - advanced use of forumCreate bunch with alternative for users that hadn't logged in. please see alternative tqtag for more information about using alternatives
<tqtag name="forum0type="forummaxItems="10title="forum place holder" >
    <tqtag name="alternative1type="alternative" >Please register in order to use the forum</tqtag>
    <tqtag name="createBunch0type="forumCreateBunchtitle="createBunchalternativeTag="alternative1alternativeCondition="isNotLoggedIn" >
    <form method="post" action="@action@" enctype="multipart/form-data">
            <td colspan="2">
                <h2><tqoption type="isNewBunch" alternative0="Add response to thread: @bunchSubject@">{!Create new thread!}0</tqoption></h2>
            <td>Author</td><td>@custfName@ @custlName@</td>
            <td>Thread Title</td><td><input type="text" name="title" id="title" /></td>
            <td>Thread Content</td><td><textarea name="content" id="content"></textarea></td>
            <td colspan="2" align="center"><button type="submit">Submit</button></td>


forumCreateBunch - tqOptions

Within the forumCreateBunch tqtag you can use the following tqoptions: isNewBunch, if.

forumCreateBunch - Templates

The templates below implement this tqTag. After you click a link, use your browser commands to view the page source.

User Notes

  Add Note

Topic: forumCreateBunch