Hello everyone! One question: do we need collapse/expand functionality for blocks in new default template for Subrion CMS? Thanks!
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)
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.
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.
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
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): <layout> <position menu="1" movable="0">account</position> <position menu="1" movable="0">mainmenu</position> <position>teaser</position> <position>verytop</position> <position>top</position> <position>bottom</position> <position>verybottom</position> <position>copyright</position> <position>footer1</position> <position>footer2</position> <section name="content"> <position fixed="1">left</position> <position width="6">center</position> <position fixed="1">right</position> </section> </layout> Add new position like this: Code (Text): <position>my_new_position</position> 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. Thanks!
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
Hi @andrei_r ! Well, we have it already implemented You need to enable debug mode in this file: includes/config.inc.php After this on Templates page you will see Reinstall button in active template block. Have a nice day!
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? Thanks
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. Thanks!
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. Thanks
@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. Thanks