Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8040 Posts in 1853 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Pasting into header & footer  (Read 431 times)
0 Members and 1 Guest are viewing this topic.
Harv
Guest
« on: April 27, 2005, 10:24:00 AM »

I would like to be able to cut and paste a block of HTML code into the header and footer sections when designing a calendar.  However, it appears I can only move the content of one backeted section at a time. For a large table, this is time-consuming and likely to produce errors. Anyone found a work around?
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: April 27, 2005, 12:29:00 PM »

** it appears I can only move the content of one backeted section at a time **

A form text field  will only accept a single line of text. If you remove all the line feeds from the code you want to insert, there should be no reason all the text couldn't be pasted there in a single shot (provided it didn't exceed the length the field accepts).

You may also be able to change those text fields into textareas (see the following link) to allow you to enter multi-line code in one shot.

LINK > How to make fields longer

JFYI

Dan O.

[Link Updated]
[This message has been edited by DanO (edited November 21, 2006).]
« Last Edit: September 06, 2007, 01:46:46 AM by DanO » Logged
Harv
Guest
« Reply #2 on: April 28, 2005, 08:10:00 AM »

Sorry, I must not have explained my question very well.

In the "Template Display Preferences," when I try to paste into the field "Header: Any text or HTML to display above everything else in the calendar display," I can add lots of code, but I cannot add it in one paste.  I have to move over smaller segments, one at a time.

Is there a way around this?

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: April 28, 2005, 03:27:00 PM »

** I must not have explained my question very well. **

Yes you did, I must not have explained my answer well enough.

If you put all the text you want to enter into a single line (without line feeds), you can paste that single line into the space provided as long as it does not exceed the amount of text that field will accept.Eg.

- You can NOT enter this into a text form field:

code:
<p>
this is a line<br>
this is a line<br>
this is a line<br>
</p>

- You CAN enter this:
code:
<p>this is a line<br>this is a line<br>this is a line<br></p>

If you want to maintain the line feeds in your code (the first example above), you'd need to change the field type for the header/footers from a text field (which only accepts a single line of text) to a textarea field (see the previous link) which can accept multi-line input.

- You CAN enter this into a textarea form field
(which you'd have to edit CalendarScript to provide instead - as per the previously linked message):

code:
<p>
this is a line<br>
this is a line<br>
this is a line<br>
</p>

It is a limitation of the HTML language not CalendarScript. Maybe you can get a better understanding of the differences between the HTML form field types than I apparently am able to provide, at this link?

LINK > HTML FORM TAGS

Dan O.

[This message has been edited by DanO (edited April 28, 2005).]

Logged
Pages: [1]   Go Up
Print
Jump to: