0
For some reason grid view won't display on albums search. It just displays detailed view. I have the menu item changed to use grid view and the url is:

http://www.website[shortened for post].com/index.php?option=com_muscol&view=search&layout=grid&Itemid=101

I can change it to songs view and songs view displays correctly.
Just no grid view - always detailed view

Thanks,
John
Responses (21)
  • Accepted Answer

    Tuesday, June 29 2010, 04:06 PM - #Permalink
    0
    hm... can you please post the complete link? so I can check it...
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, June 30 2010, 12:14 AM - #Permalink
    0
    Here it is:

    http://www.website-istage.apmdev.com/index.php?option=com_muscol&view=search&layout=grid&Itemid=101

    Thanks,
    John
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 02 2010, 10:15 AM - #Permalink
    0
    I've got exactly the same problem, would like to hear how to fix this.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 02 2010, 05:35 PM - #Permalink
    0
    here's a quick fix: on /models/search.php

    line 36, you find this:

    $this->setState('layout', 'detailed');

    just replace it for

    $this->setState('layout', 'grid');

    that should to the trick...
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 03 2010, 03:16 PM - #Permalink
    0
    sorry, it doesn't work, I just get a white page with the search engine... :(

    What lines of code do I have to change to get genre view in grid mode?
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, July 04 2010, 09:31 PM - #Permalink
    0
    germi wrote:
    here's a quick fix: on /models/search.php

    line 36, you find this:

    $this->setState('layout', 'detailed');

    just replace it for

    $this->setState('layout', 'grid');

    that should to the trick...


    Unfortunately, the client's requirement is that one search page has detailed view and one has grid view. So I really need it to work, as I've already signed off on this functionality.

    Thanks,
    John
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 05 2010, 04:30 PM - #Permalink
    0
    the try this one:

    $this->setState('layout', JRequest::getVar('layout', 'grid'));
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 05 2010, 05:13 PM - #Permalink
    0
    nope, still not working... I get a blank page with very simple search engine, 2 selectboxes for "all formats" and "all genres" which are empty?!?

    Should I change other models as well, like genre or artists?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, July 06 2010, 11:06 AM - #Permalink
    0
    Germi, is it the same detailed view that's used with the content plugin? If so, I think I will redesign the detailed view, so it looks good everywhere on the site.

    Where can I find the code to design the detailed album view?

    Though I would rather like to see the genre and search results in grid view :(
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, July 06 2010, 03:16 PM - #Permalink
    0
    mmm no, unfortunately is not the same. that plugin is a bit old and needs to be re-written.

    where is that you get a blank page? its strange... :S
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, July 06 2010, 05:55 PM - #Permalink
    0
    As a quick test today I changed the line (your 1st suggestion) to:

    $this->setState('layout', 'grid');

    I get a white screen also with only a:

    Search box followed by a two drop-down menus for 'all formats' and 'all genres' in the upper left corner. The rest of the page is blank.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 14 2010, 04:40 PM - #Permalink
    0
    Germi,

    Is there no fix for this - does grid view just not work on search?

    I get a whitescreen when modifying line approx. 35

    Here is the line 35 area from your 2.0 upgrade distribution:

    $default_layout = $params->get( 'albums_view' );

    $layout = $mainframe->getUserStateFromRequest('layout','layout', $default_layout ,'layout');
    $this->setState('layout', $layout);

    $this->setState('layout', 'detailed');

    $this->keywords = JRequest::getVar('searchword');
    $this->format_id = JRequest::getVar('format_id');
    $this->genre_id = JRequest::getVar('genre_id');
    $this->artist_id = JRequest::getVar('artist_id');
    $this->type_id = JRequest::getVar('type_id');
    $this->tag_id = JRequest::getVar('tag_id');

    If I modify $this->setState('layout', 'detailed'); to $this->setState('layout', 'grid');
    I get a white screen
    If I comment out this line I get a white screen
    It looks like it is hardcoded to only permit detailed layout?

    This is a serious problem for us as our launch is two weeks away and grid doesn't work.

    Thanks,
    John
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 16 2010, 11:31 AM - #Permalink
    0
    hmm....its strange that you get a white page...

    try to erase everything there's before $this->setState('layout', 'grid');

    I mean, just get ride of this:

    $default_layout = $params->get( 'albums_view' );

    $layout = $mainframe->getUserStateFromRequest('layout','layout', $default_layout ,'layout');
    $this->setState('layout', $layout);
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, July 18 2010, 11:39 PM - #Permalink
    0
    No, that does not work either. The white screen still appears when set to grid view, and search still shows detailed view. I also think it's hard coded somewhere. :(
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, July 20 2010, 06:40 PM - #Permalink
    0
    arggg..

    try open /views/search/view.html.php, line 122:

    $this->_layout = & $this->get( 'Layout');

    change it for

    $this->_layout = "grid";
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 21 2010, 11:23 PM - #Permalink
    0
    still a white screen... :(

    sorry Germi, but I give up, I'm already restyling the detailed view...
    The reply is currently minimized Show
  • Accepted Answer

    Adeel
    Adeel
    Offline
    Saturday, September 18 2010, 08:42 AM - #Permalink
    0
    any solution to fix this grid view thing???????? :huh:
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 21 2010, 03:16 PM - #Permalink
    0
    @adistars hello, can you give us your music collection order id? you dont appear on the system as a customer...

    thanks! :)
    The reply is currently minimized Show
  • Accepted Answer

    Adeel
    Adeel
    Offline
    Wednesday, September 22 2010, 11:39 AM - #Permalink
    0
    actually hav't purchased yet demo chking for some time component need to mould in required format for that reason i m doing some work on it. don't worry i m gonna purchase this with in a weak i don't have pay pal do u have alternative to get payment?
    The reply is currently minimized Show
  • Accepted Answer

    Adeel
    Adeel
    Offline
    Wednesday, September 22 2010, 11:41 AM - #Permalink
    0
    One thing more i have solved the problem of grid view in search...:D
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 23 2010, 04:39 PM - #Permalink
    0
    hello!

    you can contact us at joomlamusicsolutions@gmail.com for alternative payment methods..
    however, remember that you can use a credit card on PayPal! no need to have an account

    please contact us as soon as possible... (you are not authorized to be using a copy of Music Collection... there is no trial version!)

    Germi
    The reply is currently minimized Show
Your Reply