1
russtik
The incredible disappearing content trick
  • 2004/8/26 15:50

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Right, this is a bit of a headscratcher.

I've made a new tableless theme which seems to be working very well with the exception the main center-center content which is a no show. Within the central <div> I've copied the markup from the default theme:

<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>

But when run throught the browser it produces this:

<div class="centre">
<!-- Start center-center blocks loop -->
<!-- End center-center blocks loop -->
</div>

The same markup for left & right column blocks and center left/right works fine. It's just the main center-center content that won't display and I have no idea why.

Can anyone shed any light on this?

2
fireguy
Re: The incredible disappearing content trick
  • 2005/2/25 2:02

  • fireguy

  • Just popping in

  • Posts: 2

  • Since: 2005/1/28


Did you get this sorted out yet? I'm considering a XOOPS install, and I would definitely want to use CSS and DIVs vs Tables, assuming that's possible and easy.

3
Wheeler
Re: The incredible disappearing content trick
  • 2005/2/25 3:17

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


Can you please post a link to your site using the theme with 'no tables'?

I am designing a new theme with tables and want to replicate it with NO tables. I could use an example.

You have spelled "centre" the Canadian way!
<div class="centre">
Quote:

russtik wrote:

<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>

Search trough your css for "centre", maybe it is "center".

ps. Very Funny Post Title

4
rowdie
Re: The incredible disappearing content trick
  • 2005/2/25 4:00

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


The problem is that $xoops_ccblocks is not the center contents.

You need to use <{$xoops_contents}> to display the center contents.

There are quite a few tableless css themes around. StudioC for one only designs tableless themes. Here's a direct link to his site.

5
Wheeler
Re: The incredible disappearing content trick
  • 2005/2/25 4:14

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


Hey thanks for the link!

6
russtik
Re: The incredible disappearing content trick
  • 2005/3/3 12:05

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Hi yeah I've sorted the problem now...

As Rowdie pointed out the content of modules gets outputted at the location of <{$xoops_contents}>, I'd assumed it would displayed within $xoops_ccblocks which was the reason why I saw nothing when I navigated away from my home page (made up of blocks). I've since made a new template with my custom styling and the <{$xoops_contents}> tag which gets included when modules contents needs to be displayed. See this thread.

As for the tableless layout, it's been a lot of trial and error. For me this has consumed quite a bit of time in development. The site I'm working on is a 100% width, 3 column with a liquid centre(English UK spelling Wheeler ) column. I've tried numerous methods to get the specifications I was looking for but in the end adopted the BlueRobot 'Flanking Menus' layout which has proved to be stable cross browser/cross platform. It also has the added bonus of rendering the centre column before the left & right in the markup, which gives you extra SEO cred'. Here's the layout:

http://bluerobot.com/web/layouts/layout3.html

I'll post a link to the site I'm working on once it's finished

@fireguy: If you're thinking of going down the tableless/css layout route then you'd do well to choose XOOPS for your CMS. It's already xhtml and the smarty template system is great for getting control over the markup.

7
Wheeler
Re: The incredible disappearing content trick
  • 2005/3/8 2:46

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


russtik,
thanks for all that great info. I have built a 'tables only' theme with the content column first in the code. What do you think? This seems to work okay, it is designed on simplicity, so browsers won't crunch too many numbers rendering tables.

<table class="wrapper">
<
tr>

<
td></td>

<
td class="content" rowspan="2">
<
table id="spacer"><tr><td></td></tr></table>
centre column
</td>

<
td></td>

</
tr>
<
tr>

<
td class="spine">
left column
</td>

<
td class="spine">
right column
</td>

</
tr>
</
table>


One more question, what are the pros and cons when using tables vs div's? I have not been able to get this information. Thanks again.

Login

Who's Online

186 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 186


more...

Donat-O-Meter

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

Latest GitHub Commits