related list page

tanya2015

Member
Hello,
I have two related list. 1) first - group, leader, date
2) people who take part in the group
When I choose related list (group) (preview) the list with group is open.
I need that tis page have title as current date and leader of the group, current user name
and after this list of the group. Can I manage this someway?
Thank you.
 
You can create a custom template displaying these infos before the group list.

Or (depending on what you need) you can display the "original record" in the list intro
{fabrik view=details id=your-first-form-id rowid=[your-related-element_raw]}
current user name: {$my->username}
 
Thank you very much I tryed with custom template.
I use this code in the default.php
Code:
$currentdate = date("d/m/Y");
$user = JFactory::getUser();
$podp = $user->name;
echo '<h4 style="text-align: right;">' . $currentdate . '</h4>'; /*ok*/
echo '<h4 style="text-align: right;">' . $podp . '</h4>';/*ok*/
echo $this->_row->data->t1___ex_date;  /*I need the value of element from list to know date but  it seems to me i use wrong way to get it */
$db = JFactory::getDbo();
$query = $db->getQuery(true);
  $query->select($db->quoteName(array('chief','org','phone','email','number','id')))->from('t1_groups')
  ->where($db->quoteName('exdate') . " = " . $db->quote($exdate));
  $db->setQuery($query);
  $data1 = $db->loadAssocList();
  $date = new DateTime($exdate);
  $exdate1 = $date->format('d-m-Y H:i');
  $title = "Group " . $exdate1 . "; tur ". $data1[0]["org"] . "; leader " . $data1[0]["chief"] . "; phone: " . $data1[0]["phone"] . "; email: ". $data1[0]["email"];

1) How to get access to the value from the list in default.php?
2) And I need to hide group icon and text there can I do it?
Thank you.
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top