1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

related list page

Discussion in 'Community' started by tanya2015, Jan 15, 2020.

  1. tanya2015

    tanya2015 Member

    Level: Community
    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.
     
  2. troester

    troester Well-Known Member Staff Member

    Level: Community
    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}
     
  3. tanya2015

    tanya2015 Member

    Level: Community
    Thank you very much I tryed with custom template.
    I use this code in the default.php
    Code (Text):
    $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: Jan 16, 2020

Share This Page