Placeholder on list intro/outro not support?

Status
Not open for further replies.

myfatebiz

Active Member
Hi,

According on my title. Fabrik don't have this feature on list but i see form intro/outro support placeholder. Just curious why list not support placeholder since front-end template under group by only can use when group by is enable.

Best Regards,
MyFateBiz
 
Form's can do that as you are dealing with a single record, on a list however you have multiple records, so its not possible to know which row's data to use as the placeholder when rendering the intro/outro
 
How about custom group by template for non-group by?. I just want to put last update on the top listing. Please see the attachment. Thanks.
 

Attachments

  • Last Update.png
    Last Update.png
    23.7 KB · Views: 250
I believe that area can use placeholders but will take it from the first row in the repeat group
 
I use some trick which is :

1. Create new element called `group_by` (field)(hidden) with default value set to '1'. This is using for group by template.
2. Create new element called `date` (date).
3. Create new element called `last_update` (calc) using the code below :

Code:
$db = JFactory::getDBO();
$db->setQuery("SELECT DATE_FORMAT(`date`, '%d-%m-%Y') FROM `sample` ORDER BY `date` DESC LIMIT 1");
return $db->loadResult();

The result will give me the last updated record in any row and it solve my problem. Thread close.
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top