1
russtik
Theme templates disappearing...
  • 2005/2/3 15:33

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


I've got some modified theme templates (left, right, centre, centre-left, centre-right) with their own set of styles. They all appear on the top page but the centre ones disappear on any subsequent pages.

Does anyone know why this might be?


2
russtik
Re: Theme templates disappearing...
  • 2005/2/18 12:34

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Can no one tell me why theme_blockcenter_c.html, theme_blockcenter_l.html & theme_blockcenter_r.html only appear in the home page?


3
russtik
Re: Theme templates disappearing...
  • 2005/2/18 17:41

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Okay... I've figured it out, just to continue my little monologue for the sake of the archives here goes:



the content of the individual modules doesn't appear in a block and therefore bypasses the call to the block templates in the main theme.html, thus ignoring the code below:

<!-- Display center blocks if any -->
  <{if 
$xoops_showcblock == 1}>
            
  <
div class="centre">
    <!-- 
Start center-center blocks loop -->
    <{foreach 
item=block from=$xoops_ccblocks}>
    <{include 
file="default/theme_blockcenter_c.html"}>
    <{/foreach}>
    <!-- 
End center-center blocks loop -->
  </
div>

      <
div class="centreleft"
        <!-- 
Start center-left blocks loop -->
        <{foreach 
item=block from=$xoops_clblocks}> <{include file="default/theme_blockcenter_l.html"}> 
        <{/foreach}> 
        <!-- 
End center-left blocks loop -->
      </
div>
            
      <
div class="centreright"
        <!-- 
Start center-right blocks loop -->
        <{foreach 
item=block from=$xoops_crblocks}> <{include file="default/theme_blockcenter_r.html"}> 
        <{/foreach}> 
        <!-- 
End center-right blocks loop -->
      </
div>
            
  <{/if}>
  <!-- 
End center blocks if any -->


Seeing as I've compiled some custom background styles in the style.css that relate specifically to elements in the block templates, the custom background doesn't appear in the centre column when I navigate away from the home page.

Now in order to get my custom background visible across the board I've either got to force all the content to appear in a block, or somehow apply the element structure from the block templates to what ever gets spat out between:

< div id="content" >
<{$xoops_contents}>
< /div >

Hmmmm

Login

Who's Online

129 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 129


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