OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Make media type Video as default (0 viewing) 

MediaLibary Component Support

Go to bottom Favoured: 0

Make media type Video as default

imendes (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Make media type Video as default 10 Years, 12 Months ago
Karma: 0  
Hello, I know how to delete others media types from combobox, so only 'Video' appears (we don't need others types).

The problem is that the default page is still for Books. I think I must simulate the selection on combobox, so the page information change to 'Video'.

How can I do that?

Thank you
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:Make media type Video as default 10 Years, 12 Months ago
Karma: 101  
hello,

Please try next:
in file

{yours site}/administrator/components/com_medialibrary/admin.medialibrary.php


find function editMedia

in it find code:
Code:

  if( $bid === 0 )  {
    $medialibrary->media_id = 0 ;
    $medialibrary->media_type = $media_type;
  }



and replace to

Code:

  if( $bid === 0 )  {
    $medialibrary->media_id = 0 ;
    $medialibrary->media_type = 'video';
  }



Please first backup files

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»