1
sbkiller
Additional Block into Theme.html
  • 2004/10/1 14:12

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


Xoops system has 5 blocks area,
|====================|
|List 
of blocks      |
|====================|
|
Left block          |
|
Center Center block |
|
Center Left block   |
|
Center Right block  |
|
Right block         |
|                    |
|
Content*            |
|====================|

*
not refer as block but a content area for page

It is possible to modified the system for addtional block (custom) into theme.html?
(not the custom block you will add in the control panel)

In theme.html file, you have something like:

<td id="leftcolumn">



<{foreach 
item=block from=$xoops_lblocks}>
  <
div style="padding: 5px;">
    <
fieldset>
      <
legend class="blockTitle"><{$block.title}>legend>
      <
div class="blockContent"><{$block.content}>div>
    fieldset>
  div>
<{/foreach}>



td>


As you can see this default unique block id will refer to the system block:

<td id="leftcolumn">
and
<{foreach 
item=block from=$xoops_lblocks}>


If I have to make a custom of this, I can simply change to this:

<td id="mycustomblock">
and
<{foreach 
item=block from=$xoops_myblocks}>


In this case I need to hack/modify the system function and add options to the admin control panel in order to use this.

If I'm right, anyone interest hacking and developing it?

If I'm wrong, anyone have another way of doing it?

2
studioC
Re: Additional Block into Theme.html
  • 2004/10/1 15:52

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


hello kev, ..
i had this discussion one year ago and i got no real solution of this ..

actually : just the 5 blocks ..

but, as you have mentioned ! there are some other "content areas" which may be [ab]used in themefile. think of smartys like <{$xoops_footer}>, <{$xoops_banner}> which you may control (the content) via admin section (if not needed) .. perhaps have a look at smarty debug console to see, what smarty is displayed ...

-----------
another workaround for special display whishes of clients of mine was to include static extra html files in th way

<{include file="youtheme/extracontent_or_script.html"}>

but you have only control via ftp not admin section to edit that content.
-----------------

next way to get additional sections in themefile nowadays is to create a "dummymodul" only with templates ... Changing templates within Templatemanager is the way to change "content" via adminsection -> say without the usage of ftptools.

call the templatefiles within theme from db:
<{include file="db: ...."}>

(edit: call the files direct from db not using the blockfunktions)
------------------

hope these ideas help a bit to let your head render this
perhaps a module dev will help us to get more flexibility within our themes .... sometimes.. no real solutions until now ...

so far ... don't think in blocks and positions
cheers

michael

3
sbkiller
Re: Additional Block into Theme.html
  • 2004/10/1 16:16

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


Great idea,

I will use wiwimod to make page and pull the database into the custom part.

4
carnuke
Re: Additional Block into Theme.html
  • 2004/10/1 16:17

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Hi Kev ...

A little idea that I implemented is stealing unused blocks and putting them in different places for example:
Quote:

<{foreach item=block from=$xoops_crblocks}><{include file="mytheme/theme_blockcenter_r.html"}><{/foreach}>



was taken from the body position and placed right in the headerbar of theme.html

That way I could use it to display a scrolling news block. Im going to do the same with center-left blocks by putting it in the footer. This sort of placement can be more useful if you dont need center left and center right blocks.

Login

Who's Online

309 user(s) are online (203 user(s) are browsing Support Forums)


Members: 0


Guests: 309


more...

Donat-O-Meter

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

Latest GitHub Commits