Using composer vimeo in admin view and insert model methods in site view

9 views
Skip to first unread message

Kyriakos Liarakos

unread,
Dec 18, 2020, 5:23:02 PM12/18/20
to Joomla Component Builder
Hello!

I use  Admin View custom PHP postSaveHook Method to get thumbnail_url from vimeo based on vimeo_video_url field value and store that information to the database.
To get the data from Vimeo I am using composer.
So, I need to add the following to the top of controllers/myitemview.php, manually to make my code to  work.
require JPATH_SITE.'/vendor/autoload.php';
use Vimeo\Vimeo;
Is there any way to do it from JCB?

I am a newbie so excuse me for having  second question 
I'm using Site View custom button PHP (model methods) to add some functions.
In my list view the code is working perfect but in item view the code is missing  from models/myitemview.php  and I have to edit the file manually.
What am I missing?

Thank you!

((ewe))yn

unread,
Dec 19, 2020, 4:30:09 PM12/19/20
to Joomla Component Builder, Kyriakos Liarakos

We are moving to GitHub Discussions. We will keep this open to give access to old issues, resolved. But please continue conversations on the new github discussions area ;)
Reply all
Reply to author
Forward
0 new messages