Page 1 of 1

Text multiple blocks not horizontal, but vertical

Posted: Sat Oct 22, 2005 4:28 pm
by Peter
Hi there,

1st of all. I truely love this CMS and I like to give a BIG shoutout to the creators of it!!

I only have 1 major problem:

When creating multiple content blocks in a template (eg: {content}{content block='date'}{content block='time'}{content block='activity'}) and after that I put text in the 4 fields, after applying all the 4 fields with text appears vertically. In other words, beneath each other.

in theory:
22 october   10.00   Let's have a date   New York
23 october   12.00   Lunch                   Chicago


but the truth:

22 october
10.00
Let's have a date
New York
23 october
12.00
Lunch
Chicago

I'd like to make an agenda with 4 different fields, but you understand my problem. Can anybody please help me> It would be very appreciated!

Sincerly

Rika

Re: Text multiple blocks not horizontal, but vertical

Posted: Sat Oct 22, 2005 4:50 pm
by Hans
Did you put those content blocks in 4 colums of a table, maybe that works..
I did a quick try and with me it worked alright.
Hans

Re: Text multiple blocks not horizontal, but vertical

Posted: Sat Oct 22, 2005 5:16 pm
by Rika
Do you mean the I have to put in the CONTENT field (within the EDIT TEMPLATE) not only the {content) tags, but that I have to insert a whole tag?

Re: Text multiple blocks not horizontal, but vertical

Posted: Sat Oct 22, 2005 5:17 pm
by Rika
Can you please show me what and where i have to put it then? I really hope you can help me with this.

Re: Text multiple blocks not horizontal, but vertical

Posted: Sat Oct 22, 2005 6:44 pm
by Hans
Ok okay Rita, now I read more carefuly I realize that it not so easy as that for the agenda you want. Sorry, I overlooked you wanted a agenda. I'll try to come up with a sloution nevertheless, but I think that will take some time. Hope that somebody else will find a solution in the meantime.
Hans

Re: Text multiple blocks not horizontal, but vertical?

Posted: Sat Oct 22, 2005 6:49 pm
by Rika
ok :-) Thanks!!

the problem actually is that when writing in the 4 different content fields, after saving the document, the page looks like all those 4 fields are beneath each other, not horitonzal to each other. That's the only problem.

May be you or someone can provide me with a basic script for creating a new template with just 4 fields?

Thanks in advance.

Rika

Re: Text multiple blocks not horizontal, but vertical

Posted: Sat Oct 22, 2005 7:00 pm
by westis
If you want to use tables (which is the easiest with fixed widths of the columns) you could put this in the template:

Code: Select all

<table>
  <tr>
    <td>{content}</td>
    <td>{content block='date'}</td>
    <td>{content block='time'}</td>
    <td>{content block='activity'}</td>
  </tr>
</table>
But if you will use this only for events I guess you could use one of the calendar modules instead.

Re: Text multiple blocks not horizontal, but vertical

Posted: Sat Oct 22, 2005 7:20 pm
by Rika
Thanks! it works! Hans en Westis

Many many thanks!!