Text multiple blocks not horizontal, but vertical

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Peter

Text multiple blocks not horizontal, but vertical

Post 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
Hans
Forum Members
Forum Members
Posts: 61
Joined: Sun Oct 09, 2005 10:49 am

Re: Text multiple blocks not horizontal, but vertical

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

Re: Text multiple blocks not horizontal, but vertical

Post 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?
Rika

Re: Text multiple blocks not horizontal, but vertical

Post 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.
Hans
Forum Members
Forum Members
Posts: 61
Joined: Sun Oct 09, 2005 10:49 am

Re: Text multiple blocks not horizontal, but vertical

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

Re: Text multiple blocks not horizontal, but vertical?

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

Re: Text multiple blocks not horizontal, but vertical

Post 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.
Rika

Re: Text multiple blocks not horizontal, but vertical

Post by Rika »

Thanks! it works! Hans en Westis

Many many thanks!!
Locked

Return to “CMSMS Core”