This topic is locked
[SOLVED]

 how to set default content in the innovaeditor box

12/2/2010 3:33:03 PM
PHPRunner General questions
A
aptivus author

Hi everyone,

is there a chance to set a predefined html content in the textearea where an Innovaeditor instance has been called?
I would like to have a standard layout for the pages I enter in my CMS.

Thanks
Francesco

J
Jane 12/3/2010

Francesco,
you can set up any default value on the "Edit as" settings dialog on the Visual Editor tab.

A
aptivus author 12/4/2010



Francesco,
you can set up any default value on the "Edit as" settings dialog on the Visual Editor tab.


Dear Jane,

thanks for your answer, but in Edit as settings I have just a1-line field.

I need a whole layout for my page (with a minimum header, 2 columns, a footer and some images here and there).

This cannot be written in that small default value field, as far I know.

Is there any other solution?

Maybe also hard-coding the interested page? (which one? _settings? _variables?)
This the code I need:

<!--======================== BEGIN COPYING THE HTML HERE ==========================-->

<table border='0' cellpadding='0' cellspacing='0' width='700'>

<tr><!-- row 1 -->

<td colspan='2'>

<img name='mailings_carnevale_pp_r1_c1' src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=54912&image=1&table=forumreplies'; width='700' height='135' border='0' id='topnews' usemap='#topnews' alt='' /></td>

</tr>

<tr><td align='right' colspan='2' style='padding-right:20px;background: #ededed;'>

<span style='font-family:Arial, Verdana;font-size:12px; color:#333;'>Comunicazione del ".date('d.m.Y')."</span></td></tr>

<tr><!-- row 2 -->

<td width='350' style='vertical-align:top;background: #ededed;padding:15px;text-align:center;'>

qui ci va un'immagine
per esempio. Oppure quello che si vuole
</td>

<td width='350' style='text-align:left;vertical-align:top;padding:15px;background: #ededed url(https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=54912&image=2&table=forumreplies) no-repeat right bottom;'>

qui ci va il testo
o una tabella con testo e immagini...qualsiasi cosa.
</td>

</tr>

<tr>

<td style='padding-top:20px;font-size:11px;text-align:left' colspan='2'>

Questa comunicazione &egrave; indirizzata ai clienti e agli iscritti di mysite.it. Hai ricevuto questo messaggio perch&egrave; hai dato autorizzazione, mediante registrazione sul sito mysite.it, al ricevimento di informative a mezzo email ai sensi della legge 196/2003 sulla privacy. Se non ti sei mai iscritto &egrave; possibile che qualcuno abbia effettuato una registrazione utilizzando i tuoi dati.
Se non desideri ricevere ulteriori inviti e altre comunicazioni da parte di mysite.it, scrivici a <a href='mailto:cancella@mysite.it' style='text-decoration:none;color:#999;'>cancella@mysite.it</a>

</td>

</tr>

</table>
<map name='topnews' id='topnews'>

<area shape='rect' coords='298,6,401,87' href='http://www.mysite.it'; alt='' target='_blank' />

</map>

<!--========================= STOP COPYING THE HTML HERE =========================-->


Thank you

A
aptivus author 12/6/2010



Dear Jane,

thanks for your answer, but in Edit as settings I have just a1-line field.

I need a whole layout for my page (with a minimum header, 2 columns, a footer and some images here and there).

This cannot be written in that small default value field, as far I know.

Is there any other solution?

Maybe also hard-coding the interested page? (which one? _settings? _variables?)
This the code I need:

<!--======================== BEGIN COPYING THE HTML HERE ==========================-->

<table border='0' cellpadding='0' cellspacing='0' width='700'>

<tr><!-- row 1 -->

<td colspan='2'>

<img name='mailings_carnevale_pp_r1_c1' src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=54936&image=1&table=forumreplies'; width='700' height='135' border='0' id='topnews' usemap='#topnews' alt='' /></td>

</tr>

<tr><td align='right' colspan='2' style='padding-right:20px;background: #ededed;'>

<span style='font-family:Arial, Verdana;font-size:12px; color:#333;'>Comunicazione del ".date('d.m.Y')."</span></td></tr>

<tr><!-- row 2 -->

<td width='350' style='vertical-align:top;background: #ededed;padding:15px;text-align:center;'>

qui ci va un'immagine
per esempio. Oppure quello che si vuole
</td>

<td width='350' style='text-align:left;vertical-align:top;padding:15px;background: #ededed url(https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=54936&image=2&table=forumreplies) no-repeat right bottom;'>

qui ci va il testo
o una tabella con testo e immagini...qualsiasi cosa.
</td>

</tr>

<tr>

<td style='padding-top:20px;font-size:11px;text-align:left' colspan='2'>

Questa comunicazione &egrave; indirizzata ai clienti e agli iscritti di mysite.it. Hai ricevuto questo messaggio perch&egrave; hai dato autorizzazione, mediante registrazione sul sito mysite.it, al ricevimento di informative a mezzo email ai sensi della legge 196/2003 sulla privacy. Se non ti sei mai iscritto &egrave; possibile che qualcuno abbia effettuato una registrazione utilizzando i tuoi dati.
Se non desideri ricevere ulteriori inviti e altre comunicazioni da parte di mysite.it, scrivici a <a href='mailto:cancella@mysite.it' style='text-decoration:none;color:#999;'>cancella@mysite.it</a>

</td>

</tr>

</table>
<map name='topnews' id='topnews'>

<area shape='rect' coords='298,6,401,87' href='http://www.mysite.it'; alt='' target='_blank' />

</map>

<!--========================= STOP COPYING THE HTML HERE =========================-->


Thank you


Up.

Anyone?

Ann, Jane, Sergey?

Thank you
Francesco