Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [Solved] Display/Sort forum threadlist with xthread field ?
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #14
RE: Display/Sort forum threadlist with xthread field ?
(03-12-2012 11:23 AM)akm Wrote:  <option value="???" {$sortsel['???']}>Custom Thread:</option>

Assume ??? would include the thread field key = 'ct_' ?
Based on the documentation:
undoc.html Wrote:To sort by a thread field, prefix its key with tf_
undoc.html Wrote:eg {$sortsel['tf_myfield']}
where myfield = key

So, based on this custom field:
(03-12-2012 11:23 AM)akm Wrote:  1. If thread field key = ct_
this code:
(03-12-2012 11:23 AM)akm Wrote:  <option value="???" {$sortsel['???']}>Custom Thread:</option>
will be come something like this:

HTML Code
<option value="tf_ct_" {$sortsel['tf_ct_']}>Sort by: {$GLOBALS['threadfields_x']['ct_']['title']}</option>


03-13-2012 02:13 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Display/Sort forum threadlist with xthread field ? - RateU - 03-13-2012 02:13 AM

 Standard Tools
Forum Jump: