Hi,
I have 2 types that have child field in them for another 'parent' type. I would like to display links to child records in this 'parent' type record. I can't do this with parent field since I can't select multiple types and sections.
Child 1 - child field (I can add and attach Parent record here)
Child 2 - child field (I can add and attach Parent record here)
Parent - no parent field*
I'm asking for help how to do this with php.
I'm trying with
<?php
$child = ItemsStore::getRecord($this->item->child_id);
echo 'Child: ' . '<a href="'.JRoute::_(Url::record($child->id)).'">'.$child->title.'</a>';
?>
This acctualy displays title of parent record (the one I'm viewing). Do I have to set up parent field* in parent type? If so, how to select multiple types and sections etc?
Regards
Hi,
I have 2 types that have child field in them for another 'parent' type. I would like to display links to child records in this 'parent' type record. I can't do this with parent field since I can't select multiple types and sections.
Child 1 - child field (I can add and attach Parent record here)
Child 2 - child field (I can add and attach Parent record here)
Parent - no parent field*
I'm asking for help how to do this with php.
I'm trying with
This acctualy displays title of parent record (the one I'm viewing). Do I have to set up parent field* in parent type? If so, how to select multiple types and sections etc?
Regards