судя по хмл файлу я немного наврал. мне нужен оказывается не parent_id а group id
Кусок хмл файла
<group id="27" parent_id="0">
<site_user>0</site_user>
<name>Разное</name>
<description></description>
<order>10</order>
<path>other</path>
<fullpath>other/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>24</count_items>
<count_all_items>24</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="18" parent_id="0">
<site_user>0</site_user>
<name>Предметы</name>
<description></description>
<order>9</order>
<path>objects</path>
<fullpath>objects/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>7</count_items>
<count_all_items>7</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<li class="portfolioitem4" data-type="group id=№группы" data-id="{@id}(№ элемента)">
№ элемента он с помощью
{@id}
подхватывает, а какую переменную использовать для group id??