Forums / General / the filter of an attribute

the filter of an attribute

Author Message

Jacks JNK

Monday 08 September 2008 1:25:35 am

Hi,
I have a problem with the poster attributes of my class. I have two attributes in my class, one of the client side and the other side of the administrator. The principle and the following:
The customer will posted a message in the first attribute and the administrator will respond after a defined time. It must then display real-time the last 10 questions posed by the customers and display the last ten answers posted by the administrator, so that the two class attributes are not change at the same date. It must show results in order of publication, how do I seek a filter of a field of class regardless of the other.

I use the following fetch for displaying last 10 replies:

{def $derniere_r=fetch( content, list,hash(parent_node_id,2,depth,2,limit,10,
					class_filter_type,'include',
					class_filter_array,array('faq'),
					'attribute_filter_array', 
		 			'main_node_only', true(),
				        'sort_by',array('modified',false())) )}

							 			
{foreach $derniere_r as $dr}		

	{if $dr.data_map.reponse.has_content}
	                   	 			
{attribute_view_gui attribute=$dr.data_map.question}							
				
 {/if}
{/foreach}
{undef $derniere_r}

But it does not work perfectly because whenever another question is asked a response to remove from the list

Skype : jacks_ngala