Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# hugopt 7/25/2006 4:15 AM
Hello.
In the “Article” module, I would like to have the FCKeditor in the “Summary” field.
As you can see in the image is giving me an error.

I just replace the Text Field for
fckeditorv2:fckeditor id="fckSummary" runat="server" height="150px" width="650px"
What more I must do?
Thank you.
# martijnb 7/26/2006 6:54 AM
What does the error message say? Without a decent error message we can't guess what's going wrong.
# hugopt 7/26/2006 8:45 AM
Sorry...
The error is: "Page not found".
If I try to insert an Fckeditor box in any page, always give me this error.
What I must do to insert an Fckeditor area?
Thank you.

# martijnb 7/26/2006 3:10 PM
I have no idea what's going wrong. Can you find out which page the fckeditor is trying to load?
# Nicole 7/26/2006 6:21 PM
I tried this out to see what was going on and found that the iframe for the summary area wasn't being set to the proper full URL. If you dig into EditArticle.aspx.cs, you'll see that the first line of the Page_Load function defines the base path for fckContent:
this.fckContent.BasePath = this.Page.ResolveUrl("~/Support/FCKEditor/");

So, you just need to add a similar line for the summary area:
this.fckSummary.BasePath = this.Page.ResolveUrl("~/Support/FCKEditor/");
# martijnb 7/26/2006 6:50 PM
Thanks Nicole for backing up my lazyness :)
# hugopt 7/28/2006 6:04 AM
Hello. This problem is solve.
I not only insert this line in EditArticle.aspx.cs
this.fckSummary.BasePath = this.Page.ResolveUrl("~/Support/FCKEditor/");
but I also need to change in EditArticle.aspx the BasePath to the full path for FCKeditor.

Now I have one more problem... I'm trying to save the article but the summary field it's always empty????
I already change this lines in EditArticle.aspx.cs
//this.txtSummary.Text = this._article.Summary;
this.fckSummary.Value = this._article.Summary;
and
/*
if (this.txtSummary.Text.Length > 0)
    {
	this._article.Summary = this.txtSummary.Text;
    }
    else
    {
	this._article.Summary = null;
     }
*/
this._article.Summary = this.fckSummary.Value;

What more I must change?

Thank you.
# martijnb 8/7/2006 11:51 AM
this._article.Summary = this.fckSummary.Value

Can you check in the debugger if the fckSummary.Value property is filled?
# hugopt 8/8/2006 9:45 AM
Hello.
Sorry but I try to find were I can do the debug but I'm new in this :( .
If you can help me there's the link for the source files of Article module:
http://www.hugopt.com/Articles.rar

Thank you.
# martijnb 8/9/2006 2:56 PM
I'll have look at it when I have a little bit more time.
# hugopt 8/10/2006 3:20 AM
ok.

Thank you. ;)