Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Insert code into text area
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

T00N
Super User

573 Posts

Posted - 21 Mar 2007 :  16:03:07  Show Profile  Visit T00N's Homepage  Reply with Quote
At the moment I'm using Toko editor to give a client the opportiniy to update the site themselves.

I have to insert the following code to make sure the editor can edit the text in a text area:

<!-- <tokoeditarea> -->
Your HTML text
<!-- </tokoeditarea> -->

So when I insert a text area in DHE I fill it with a word -say TEST-.
Then I export the page, open the htm file and look for the word TEST.
I change it into the code:

<!-- <tokoeditarea> -->
TEXT
<!-- </tokoeditarea> -->

And voila, I can edit the text in Toko cms.

Now the question...

I tried to insert the code directly into a text area and export it.
The problem is that the code

<!-- <tokoeditarea> -->
TEST
<!-- </tokoeditarea> -->

Changes into:

<!-- <tokoeditarea> --><br>TEST<br><!-- </tokoeditarea> -->

So the code changes and the editor can't edit the text.
Is there a way to work around this?

T00N
Super User

573 Posts

Posted - 21 Mar 2007 :  16:38:54  Show Profile  Visit T00N's Homepage  Reply with Quote
Just found out that I can 'do'it by inserting a html box instead of an textbox.

But I would prefer a text box because then you set a shadow, font, colour etc.
Go to Top of Page

Waldorf
Super User

Belgium
284 Posts

Posted - 21 Mar 2007 :  16:47:11  Show Profile  Visit Waldorf's Homepage  Reply with Quote
testing [2 H:)]

*
"Happiness" is making -> The <- Choice!
*

Edited by - Waldorf on 21 Mar 2007 17:46:52
Go to Top of Page

T00N
Super User

573 Posts

Posted - 21 Mar 2007 :  19:55:11  Show Profile  Visit T00N's Homepage  Reply with Quote
Hmmm, when is post the code here it's as it should be.

This is what it is when I export the page:



& lt;!-- <tokoeditarea> --& gt;<br>Your HTML text<br>& lt;!-- </tokoeditarea> --& gt;

But without the space between & and lt

Must be ASCII code...

Edited by - T00N on 21 Mar 2007 19:58:55
Go to Top of Page

petran
Super User

Netherlands
345 Posts

Posted - 21 Mar 2007 :  23:53:44  Show Profile  Visit petran's Homepage  Reply with Quote
Toon,

I use it only within an I-frame in the main page. The I-frame points to a very simple page with only a textbox as you mentioned in your first post. There you can use the layout you like. A second advantage is that if you change the mainpage, you don't have to worry about the text your client already made. When you make your textbox a bit smaller than your I-frame, and add the variable "scrolling=no" to the I-Frame you can also control the maximum space a text can be. Possible disadvantage: I'm not sure yet how search engines will react on this
Hope this will help you

--------

regards

Petran
Go to Top of Page

T00N
Super User

573 Posts

Posted - 22 Mar 2007 :  07:43:48  Show Profile  Visit T00N's Homepage  Reply with Quote
That is also a good idea!

But the advantage that when you change the mainpage, the text stays the same is only applicable in the design fase in my case.

I'm also curious -as you- how Google feels about it.
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 22 Mar 2007 :  08:53:43  Show Profile  Visit s.dav's Homepage  Reply with Quote
I think it's a problem if you want to put "<!-- <tokoeditarea> -->" into the label editor because it will translate the signs "<" and ">".
I suggest you to use an HTML box or an IFRAME object.

Regards, Davide
Go to Top of Page

petran
Super User

Netherlands
345 Posts

Posted - 22 Mar 2007 :  12:08:20  Show Profile  Visit petran's Homepage  Reply with Quote
That's correct so you have to edit that part in Notepad. When you use the label-editor you just put some text in it like "test" or something to find the place were the TokoTags should be. You can choose fonts, colors etc. in the label-editor.
Toko uses FCK-editor. Within this editor you can hide the buttons you don't want your client to use, so your layout is protected.

About changing the mainpage; sometimes it can occur you have to change something in the design when a site is already in use, a logo or adres p.e. when you keep the mainpage apart from the text there's no problem with that.

--------

regards

Petran
Go to Top of Page

T00N
Super User

573 Posts

Posted - 22 Mar 2007 :  23:27:11  Show Profile  Visit T00N's Homepage  Reply with Quote
Okay, I understand the benefits of an i-frame but wath about Google?

If the page is found in Google it will show the (text_only) iframe page instead of the whole page, won't it?
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 23 Mar 2007 :  09:34:05  Show Profile  Visit s.dav's Homepage  Reply with Quote
Probably, but you can force the main page to be reloaded using the following code:

Assign the frame a name "pippo" for example then check if you are loading "pippo"

if (window.name=="pippo") window.document.location="your_main_page.htm"

Regards, Davide
Go to Top of Page

petran
Super User

Netherlands
345 Posts

Posted - 23 Mar 2007 :  11:02:34  Show Profile  Visit petran's Homepage  Reply with Quote
This is a code I found to load the I-frame in the mainpage. It has to be in the HEAD section, just below the metatags.

<script language="JavaScript">
<!--

if(top.frames.length < 1) top.location.href="your_main_page.htm";

// -->
</script>

that works fine.

Davide, I don't see how to use the code you gave us, I'm not a great coder you know ;)


--------

regards

Petran
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 23 Mar 2007 :  18:25:54  Show Profile  Visit s.dav's Homepage  Reply with Quote
exactly as yours ;-)

Regards, Davide
Go to Top of Page

T00N
Super User

573 Posts

Posted - 26 Mar 2007 :  22:55:28  Show Profile  Visit T00N's Homepage  Reply with Quote
quote:
Probably, but you can force the main page to be reloaded using the following code:

Assign the frame a name "pippo" for example then check if you are loading "pippo"

if (window.name=="pippo") window.document.location="your_main_page.htm"


I assume you have to put this code in the page that contains the text area thats going into the iframe of the other page?

So you name the text area "Pippo" and put this code into the header section of that page?

Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 27 Mar 2007 :  09:00:44  Show Profile  Visit s.dav's Homepage  Reply with Quote
No, you have to create an IFRAME in the main page giving it a name (ex. <iframe src="mypage.htm" name="myiframe"></iframe>)

Then in the mainpage.htm code you have to write the code above ;-)

I think that you should use the petran code ;-) it's simpler than mine and you haven't to give a name to the iframe.

Regards, Davide
Go to Top of Page

petran
Super User

Netherlands
345 Posts

Posted - 13 Jun 2007 :  12:05:25  Show Profile  Visit petran's Homepage  Reply with Quote
I'm still searching for a good way to combine a CMS with D.H.E.. I am now testing MicroCMS. It is a database driven CMS. To use it I have to place a bit of code in a D.H.E.-HTML box (the blue part). The code D.H.E. makes looks like this:

<div id="lD.H.E.Html1" style="position: absolute; left: 1px; top: 255px; width: 546px; height: 236px; overflow: hidden;" align="left">
<?php echo editBox('test_content'); ?> </div>

So far so good. But now I want to change the font. I can do that by manually adding the class in the code, but that's not the right way I think. It should look like this:

<div id="lD.H.E.Html1" class="verdana100FFFFFFt" style="position: absolute; left: 1px; top: 255px; width: 546px; height: 236px; overflow: hidden;" align="left"><?php echo editBox('test_content'); ?> </div>

Is there a way to add the class from within D.H.E.

--------

regards

Petran

Edited by - petran on 13 Jun 2007 13:40:25
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 13 Jun 2007 :  17:26:27  Show Profile  Visit s.dav's Homepage  Reply with Quote
Sorry, actually there isn't a way to modify the DIV container HTML code for an object.

Regards, Davide
Go to Top of Page

richinri
Expert

78 Posts

Posted - 14 Jun 2007 :  05:40:10  Show Profile  Visit richinri's Homepage  Reply with Quote
I would highly suggest snippetmaster.com. They have a program that makes client edits a breeze and use html comment tags to avoid any problems with validation. It is the easiest client edit program I have seen and I have tried 3. For most users the free version is enough, if not the program is certainly affordable.

Richard
Go to Top of Page

petran
Super User

Netherlands
345 Posts

Posted - 14 Jun 2007 :  08:43:10  Show Profile  Visit petran's Homepage  Reply with Quote
Thanks for your suggestion, I will defenitly take a look at it

--------

regards

Petran
Go to Top of Page

11Notroek77
Novice

Netherlands
10 Posts

Posted - 14 Jun 2007 :  17:49:18  Show Profile  Visit 11Notroek77's Homepage  Reply with Quote
I just found WebYep: a CMS php application so simple your client does not realise what is difficult about chaging his website. The client side is really easy implemented. The client can change blocks of text and images wysiwyg.
Text changing goes by writing directly into the visible webpage. Replacing an image is done with the help of the most simple uploading I have ever seen.

It is not simple, it's dead simple! The client must know where the imagefile is on the computer that's all. And the result is immediatly clear (everything is done in the browser of the client and wysiwyg.
How it combines with D.H.E. I still have to find out, but if Toko works why this not!

Louis

A. Roek
Go to Top of Page

Fouch
Expert

Netherlands
84 Posts

Posted - 25 Jun 2007 :  21:41:39  Show Profile  Visit Fouch's Homepage  Reply with Quote
This is really very simple, just made a layer in a new Dreamweaver (i still have a copy on my computer) saved it as a PHP file and placed it in a i-frame and it works[2 H:)]

Fouch
Go to Top of Page

joneq
Super User

433 Posts

Posted - 30 Jun 2007 :  23:09:53  Show Profile  Visit joneq's Homepage  Reply with Quote
Maybe this might come in handy.Looks like you can use one copy[$27-US] for any amount of sites.You can login and test it out on this page.

http://cubescripts.com/script/instant-update-test.php

I would like to know what you think.

Go to Top of Page

11Notroek77
Novice

Netherlands
10 Posts

Posted - 09 Jul 2007 :  18:20:32  Show Profile  Visit 11Notroek77's Homepage  Reply with Quote
Hallo,

It seems you can only edit text. Not place or replace pictures. And it is complicated for the ordinary user.

But indeed it cost only $25,- once

Aloys

A. Roek
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000