Page 1 of 1

Is this style Possible with S9y?

Posted: Thu Jul 28, 2005 1:29 pm
by Night-Walker
Hi Iwant to realize one Layout like this:
[img=http://img137.imageshack.us/img137/6641/template2dt.th.jpg]
Is this Possible with S9y?

I can realize the Header, and sidebars but i don't know how to realize the Random Picture and this style of entrys...

Re: Is this style Possible with S9y?

Posted: Thu Jul 28, 2005 3:42 pm
by garvinhicking
Yes, this is possible.

For the row alternation you'd have to learn Smarty syntax a bit, as the whole workflow in $entries.tpl needs to be modified.

But you can doo it all in the template.

Regards,
garvin

Posted: Thu Jul 28, 2005 6:11 pm
by Night-Walker
Maybe I'm too stupid but i can't work withe Smarty System :(
I've tried a really simple example but it doesn't work

I've replaced the text in entries.tpl with this:

Code: Select all

<!-- ENTRIES START -->
 {serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
<table width="225" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="400" height="27" valign="top" background="{$category.category_icon}"><span>{$entry.categories}</span></td>
  </tr>
  <tr>
    <td height="168" valign="top"><h4 class="serendipity_title"><a href="{$entry.link}">{$entry.title}</a></h4></td>
  </tr>
  <tr>
    <td height="149" valign="top">SUMMARY</td>
  </tr>
</table>       
But it doesn't work.
Smarty don't replace the {***} with anything.

(I've posted in a category with a category picture)

can someone say me what is wrong?

Posted: Thu Jul 28, 2005 7:13 pm
by garvinhicking
Yes, you need to copy all those {foreach} loops as well, because the variables only happen to exist within that loop.

I'm afraid there's a lot to learn to get this to work properly for a newbie. One other way would be to use CSS3, but since that is not supported everywhere it's not a real-life option.

Regards,
Garvin

Posted: Thu Oct 13, 2005 9:25 am
by Guest
I'm very interested in CSS3. Where can I find info?

I think I know enough about smarty, but don't see an easy way to do this layout. Uhm.. Do you think just with float divs and some css2 clases will work?

Posted: Thu Oct 13, 2005 10:10 am
by MySchizoBuddy
there is one guy who already has it done
he mentioned his site in the showcase. perhaps u can ask him if he will share it with you