nrep
Well-known member
Is there any way to grab the thread preview text in "thread_list_item"? I've tried a few methods, but can't find one that works.
 
It's currently using an external URL for the thread preview popup:
 
	
	
	
		
 
I'm trying to get the preview text to appear under the thread title, so I need to grab that data as a variable.
 
The search code uses this string to display it, but I don't have the post data available in thread_list_item:
 
	
	
	
		
 
Is there any way round this in templates?
				
			It's currently using an external URL for the thread preview popup:
		Code:
	
	{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}I'm trying to get the preview text to appear under the thread title, so I need to grab that data as a variable.
The search code uses this string to display it, but I don't have the post data available in thread_list_item:
		Code:
	
	<a href="{xen:link threads, $thread}">{xen:helper snippet, $post.message, 150, {xen:array 'term={$search.search_query}', 'emClass=highlight', 'stripQuotes=1'}}</a>Is there any way round this in templates?
 
 
		 
 
		 
 
		 
 
		 
 
		