Wednesday, August 16, 2017

Login

Don't have an account yet? Register now!

Create an account

Fields marked with an asterisk (*) are required.

Mark
Mark
Offline
0
I can upload doc file or excel file in media manager but when i open media manager from article you will not see anything except folders and images file type.Any solutions to this?
Responses (1)
  • Accepted Answer

    hanif
    hanif
    Offline
    Monday, March 09 2015, 09:37 AM - #permalink
    0
    you need to change in joomla core file for this solution

    go to the administrator/components/com_media/views/imagelist/view.html.php


    add this line
    $documents = $this->get('documents');
    below
    $state = $this->get('state');

    Add this line
    $this->documents = &$documents;

    below
    $this->state = &$state;

    Add this function
    function setDocument($index = 0)
    {
    if (isset($this->documents[$index])) {
    $this->_tmp_doc = &$this->documents[$index];
    } else {
    $this->_tmp_doc = new JObject;
    }
    }


    go to the administrator/components/com_media/views/imagelist/default.php



    find below code
    <?php for ($i = 0, $n = count($this->images); $i < $n; $i++) :
    $this->setImage($i);
    echo $this->loadTemplate('image');
    endfor; ?>

    Add this code

    <?php for ($i=0, $n=count($this->documents); $i<$n; $i++) :
    $this->setDocument($i);
    echo $this->loadTemplate('documents');
    endfor; ?>

    Please add attached file into administrator/components/com_media/views/imagelist/tmpl folder
    The reply is currently minimized Show
Your Reply