Attention Do we need Collapsible functionality for blocks in new template

Discussion in 'Subrion CMS Templates' started by Gleb_S., Aug 20, 2015.


Do we need collapsible functionality for blocks?

  1. Yes

  2. No

  3. I am batman

  1. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

    Hello everyone!

    One question: do we need collapse/expand functionality for blocks in new default template for Subrion CMS?

  2. It allows great flexibility to be able to collapse ads, headers, footers, member block, etc.
    Being able to use them is great, if the block that is being collapsed, is not used every day (like calender, news, birthdays, old ads)
  3. tomukasteris

    tomukasteris New Member

    I think so that collapsible blocks is complete not necessary feature because if admin decided to add something to block and to show something for user
    Why you want to display old ads? Simply just turn off.
  4. Not old as in expired, just ads that someone has replied to and doesn't need to see it anymore.
    Others will not have applied to the ad and will still need to see the add.
  5. andrei_r

    andrei_r New Member

    I know that less it's more, but i'm trying to figure out all the possibility of templating system (nice trick the flyout in publish template). It could be nice have a template with all the positions oh header footer and so on..I can make some good templates based on that.

    Thank you guya
  6. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

    Hi @andrei_r !

    It is really easy to create new positions especially when you start from scratch.
    In install.xml (any template) file, there is a block of code, named layout, with defined positions:
    Code (Text):
            <position menu="1" movable="0">account</position>
            <position menu="1" movable="0">mainmenu</position>


            <section name="content">
                <position fixed="1">left</position>
                <position width="6">center</position>
                <position fixed="1">right</position>
    Add new position like this:
    Code (Text):
    And then anywhere in layout.tpl add this code to reserve a place for newly created position:
    Code (Text):
    {ia_blocks block='my_new_position'}
    And that is it.

    Greg, Vasily_B. and andrei_r like this.
  7. andrei_r

    andrei_r New Member's that easy?
    Gleb really thank you very much for that tips... I will give it a try now!

  8. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

    @andrei_r ,
    I forgot one thing. After adding this code - reinstall template.

  9. andrei_r

    andrei_r New Member

    It could be a nice functionality, a big button with a refresh reinstall... you know, go from a template to an other and comeback ( I use to do also a db integrity, just to be sure that doesn't remain anything in the db of the old template... It's that a good practice? :) thanks guys
  10. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

    Hi @andrei_r !

    Well, we have it already implemented :)
    You need to enable debug mode in this file: includes/
    After this on Templates page you will see Reinstall button in active template block.

    Have a nice day!
  11. Greg

    Greg Super Moderator

    Hi @Gleb_S. or ?

    If I wanted to add User #1 block position and User #2 and maybe more (such as "Startup Template has) . Do I follow these same instructions or do I need to also go into the database and create these positions?

  12. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

    Hi @Greg!

    If you are sarting from scratch, use these instruction. No need to go to database. When installing template with new positions, they will be automatically added to database.

    Greg likes this.
  13. Greg

    Greg Super Moderator

  14. Greg

    Greg Super Moderator

    Howdy @Gleb_S.

    I don't see it?

    ScreenHunter_224 Jul. 20 17.37.jpg
  15. Greg

    Greg Super Moderator

    Is there suppose to be another icon in the pic above? Could someone please take a pic of it so I can see what I should see. o_O

  16. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

  17. Greg

    Greg Super Moderator

    @Gleb_S. Yeah, I saw that. I just didn't know it was for that reason. I thought that just showed what the active template was. And I had enabled debug mode. Live and learn. :)


Share This Page