Attachment Plugin In Front End

  • LAC Webadmin
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 2 months ago #149275 by LAC Webadmin
Attachment Plugin In Front End was created by LAC Webadmin
Hello Tuan,

How do I enable the Attachment Plugin in the Frontend just like in the backend where it shows a repeatable subform? I checked the attachment plugin code and the canRun() function disables it by default for the frontend. 
Code:
private function canRun($row) { if ($this->app->isClient('site') && !$this->params->get('show_on_frontend')) { return false; } return true; }

Thanks,
Jackson

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #149279 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Attachment Plugin In Front End
Hello

Please install this updated plugin. I added Show On Frontend parameter so that you can use it on frontend. I will add this change to core package. Most template does not care much about repeatable form fields in the frontend, so consider using this option as your own (style) risk.

Regards,

Tuan
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc