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
TOPIC: Make media type Video as default
#7603
imendes (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Make media type Video as default 3 Years, 8 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.
#7607
admin (Admin)
Admin
Posts: 4867
graph
User Offline Click here to see the profile of this user
Re:Make media type Video as default 3 Years, 8 Months ago Karma: 61  
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
What are you looking for?
Anti-spam question: How many eyes has a typical person?