Forums / Developer / How to query just 2 attributes from 45 attribute ?!

How to query just 2 attributes from 45 attribute ?!

Author Message

Selmah Maxim

Sunday 14 November 2004 3:27:49 am

Hi ...

I have big class have over 45 attribute, I wanna show up just 2 of it, so its will be slow when code make query for 45 attribute ... i need to get just 2 attributes ?!

Felix Laate

Monday 15 November 2004 1:17:57 am

Hi there..

If I understand you correctly, you could just create a view and use something like:

{section show=$node.object.data_map.NAME_OF_ATTRIBUTE_1.content.is_empty|not}            
        {attribute_view_gui attribute=$node.object.data_map.NAME_OF_ATTRIBUTE_1}
{/section}

{section show=$node.object.data_map.NAME_OF_ATTRIBUTE_2.content.is_empty|not}            
        {attribute_view_gui attribute=$node.object.data_map.NAME_OF_ATTRIBUTE_2}
{/section}

for the 2 attributes you want to be shown..

felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com