forum
You use the forum tqTag to enable a forum. In general, you implement the forum tqTag together with the forumBunch tqTag and the forumCreateBunch tqTag.
forum - Syntax
<tqtag name="forum0" type="forum" title="forum place holder" maxItems="10" >
...
</tqtag>
forum - Parameters
| Parameter Name |
Type |
Mandatory |
Strict | Transitional |
Case Sensitive |
Description |
| type |
Text |
+ |
S |
+ |
must be forum |
| 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, isLoggedIn or isNotLoggedIn. |
| maxItems |
Number |
- |
S |
|
The max number of forums to display in a page |
| pageMainForum |
|
|
|
|
|
forum - Local Variables
| Name |
Type |
Size |
Description |
| addDate |
datetime |
|
The datetime the forum was created or last modified. can be formated using 2009-01-09 11:17:59df:[format]! |
| description |
text |
65535 |
Forum Description |
| forumPageLink |
text |
~100 |
Url to forum page |
| id |
number |
5 |
Database forum # |
| keywords |
text |
65535 |
Keywords provided to the forum in the ezadmin3 backend |
| mainPic |
text |
1024 |
Forum main picture |
| metaDescription |
text |
65535 |
Forum's meta description as provided in the ezadmin3 backend |
| metaTitle |
text |
200 |
Forum's meta ttle as provided in the ezadmin3 backend |
| newBunchLink |
text |
~100 |
Url to create a new bunch for this forum |
| newResponseLink |
|
|
|
| numBunches |
number |
5 |
Number of bunches in the forum |
| numPosts |
number |
12 |
Total number of posts from all forum bunches |
| sectionID |
number |
5 |
Forum's section id |
| showOrder |
number |
5 |
Represent the order number of the forum in the section, this number is not a running number. |
| title |
text |
180 |
Forum's name / title |
forum - Examples
Example 1 - basic forum details example
<tqtag name="forum0" type="forum" maxItems="10" title="forum place holder" >
<div>@title@</div>
@description@<br />
Create new bunch<a href="@newBunchLink@" class="addBunchLink">@newBunchCation@</a>
</div>
</tqtag>
Example 2 - complete forum page with it's bunch
<tqtag name="forum0" type="forum" maxItems="10" title="forum place holder" >
<div class="rightContent">
<h2>@mainPic@ <a href="@forumPageLink@" class="linkToForumPage">@title@</a></h2>
@description@<br />
<a href="@newBunchLink@" class="addBunchLink">@Create new bunch@</a>
<table align="center" id="forumTable">
<tr>
<th>תגובה אחרונה</th><th>צפיות</th><th>תגובות</th><th>נושא</th>
</tr>
<tqtag name="bunch0" type="forumBunch" maxItems="5" title="bunchesInForum" >
<tr>
<td>@lastResponseDate@<br />@lastResponseAuthor@</td>
<td>@numResponses@</td>
<td align="center">@numViews@</td>
<td><a href="@link@" class="addBunchLink">@bunchSubject@</a></td>
</tr>
</tqtag>
</table>
</div>
</tqtag>
forum - tqOptions
Within the forum tqtag you can use the following tqoptions:
head,
forumNextPage,
forumPrevPage,
if,
lastItemInRow,
tail.
Related tqoptions used in other tqtags:
isNewBunch.