Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Collpsible Module Positions

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29513
    Pro Blogger
    Member

    Hi I am building a template for my site which is using Joomla. I was wordering if someone can help me with making module positions collapsible.

    I mean, I create 5 module positions namely box1, box2, box3, box4 and box5.

    All these boxes are in a horizontal line next to each other, in the same row.

    Lets say if I publish modules only in box1, box2 and box3. the other two (box4 and box5 must collapse) and these three published boxes should spread to the entire row’s width.

    In short all unpublished positions must collpse and the published positions must stretch to the row’s width.

    #79261
    jingjang
    Member

    here’s the sample code:

    Code:
    countModules(‘box1’) || ($this->countModules(‘box2’) ||($this->countModules(‘box3’) || ($this->countModules(‘box4’) ): ?>

    countModules(‘box1’) ): ?>

    countModules(‘box2’) ): ?>

    countModules(‘box3’) ): ?>

    countModules(‘box4’) ): ?>


Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.