1
ilovelfc
How to create multi blocks?
  • 2007/7/20 7:17

  • ilovelfc

  • Just popping in

  • Posts: 5

  • Since: 2007/7/18


Hi,

I wish to put more than one block in the left area i.e. user login and search, but at the same time want to style the backgrounds of the two differently. example: login has a red background and search has a yellow background. Basically, can I have multiple left areas or do it via some other way.

Ta
Andy

2
stefan88
Re: How to create multi blocks?
  • 2007/7/20 7:27

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

you can edit templates for each block ...

To be able to do that, you need to clone default template(administration -> system admin -> templates -> clone), set the new one to be used(administration -> system admin -> preferences -> general settings -> default template set) and clean cache (delete all files except index.html in templates_c folder) to see the changes.

..

3
ilovelfc
Re: How to create multi blocks?
  • 2007/7/20 7:47

  • ilovelfc

  • Just popping in

  • Posts: 5

  • Since: 2007/7/18


But what file do I edit so when you go to: Blocks Administration > Edit a block > Block Type

You get the option of assigning the search or login etc to more than 1 left area?

I need to have multiple left areas, so I can allocate and style separately?

Can you help?

4
stefan88
Re: How to create multi blocks?
  • 2007/7/20 8:23

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

you need to edit the template of the block. You can do this in two ways.

1. edit the coresponding file. For example for log in block you need to edit "system_block_login.html" file in XOOPSROOT\modules\system\templates\blocks. Then you need to update the system module.

Or you can use the template override in 2.0.14+ as described here:https://xoops.org/modules/news/article.php?storyid=3367

2. in XOOPS admin -> templates -> list the templates for the module you want to change (system for login) find "system_block_login.html" and click edit in action column. When you finish with changes submit and clear cache.

Or go to blocks, select edit for block you want to edit (Login for example) and nect to Content click "Edit Template". When you finish with changes submit and clear cache. If you don't have submit button you need to clone template set and set XOOPS to use the cloned one as default. You can't edit default template set from XOOPS admin.


Learn more about templates here:
https://xoops.org/modules/smartfaq/faq.php?faqid=208
https://xoops.org/modules/smartfaq/faq.php?faqid=181
https://xoops.org/modules/smartfaq/faq.php?faqid=182
...

For managing templates you may try templatesadmin (or the newer altsys) module from GiJoe (http://xoops.peak.ne.jp)

..

5
ilovelfc
Re: How to create multi blocks?
  • 2007/7/20 13:10

  • ilovelfc

  • Just popping in

  • Posts: 5

  • Since: 2007/7/18


Cool, thanks

Login

Who's Online

168 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits