Forum
List Manager Support
List Manager supportForums
No se permite escribir sin estar logado. Por favor, login
Card question 17.07.2015 18:05
Hi,
I am trying to find a way to prevent displaying of field label in card view when there is no data for that field...
I tried using jQuery and :empty selector but somehow that did not work. Maybe because of the way LM loads.
Anybody thinks of another way ?
Thanks,
Regards,
--
Pascal
I am trying to find a way to prevent displaying of field label in card view when there is no data for that field...
I tried using jQuery and :empty selector but somehow that did not work. Maybe because of the way LM loads.
Anybody thinks of another way ?
Thanks,
Regards,
--
Pascal
Re: Card question 18.07.2015 09:37
Hi,
If you have average knowlegde of jquery, you can add script code after cards loaded. Cards are loaded using 'createCardLayout...()' function at JOOMLA/modules/mod_listmanager/tmpl/content.php, so you can add jquery code at the end of this function (around line 554).
Regards,
Moonsoft Team
www.moonsoft.es
If you have average knowlegde of jquery, you can add script code after cards loaded. Cards are loaded using 'createCardLayout...()' function at JOOMLA/modules/mod_listmanager/tmpl/content.php, so you can add jquery code at the end of this function (around line 554).
Regards,
Moonsoft Team
www.moonsoft.es
Re: Card question 21.07.2015 10:20
Thanks. That did it.
So for anyone interested, you just have to add the following jQuery at the line 546 of /modules/mod_listmanager/tmpl/content.php :
jQuery(".lmcardcontentblock>.lmcarditem_name+.lmcarditem_data:empty").parent().remove();
to remove entire block when there is no data for a field.
Regards,
--
Pascal
So for anyone interested, you just have to add the following jQuery at the line 546 of /modules/mod_listmanager/tmpl/content.php :
jQuery(".lmcardcontentblock>.lmcarditem_name+.lmcarditem_data:empty").parent().remove();
to remove entire block when there is no data for a field.
Regards,
--
Pascal