Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [SUGGESTION] For Image Custom Field in XThreads
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: [SUGGESTION] For Image Custom Field in XThreads
Seems like an over-convoluted solution if you ask me though.
It's possible to put a threadfield into the display format of another (it's a "hack" where you need to set the display ordering differently).

Eg
Image: display order = 1, key = img, display format =

Code:
<img src="{VALUE}" alt="" />

URL: display order = 2, display format =

Code:
<a href="{VALUE}">{$GLOBALS['threadfields']['img']}</a>


Note that the display order determines the order in which XThreads evaluates the display formats, so you can only make references to items with a lower display order.


I never thought managing threadfields was particularly time consuming so I don't really see much time saving there.  Feel free to explain otherwise though.


My Blog
04-26-2011 08:44 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: [SUGGESTION] For Image Custom Field in XThreads - ZiNgA BuRgA - 04-26-2011 08:44 AM

 Standard Tools
Forum Jump: