Html Content multiple items issues

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
6/4/2007 6:07:41 AM
Gravatar
Total Posts 488

Html Content multiple items issues

Some issues and questions on the html content feature when using multiple items mode.

1. What are begin and end dates? When I try to change them, the change is just not saved, so all the content is shown.

2. What is "Excerpt" functionality? Even when I check the "use excerpt" checkbox in the module settings, it is not displayed anywhere.

3. About "more" links... how do they work? If I try to write something, it links to /Modules/something...

6/5/2007 1:57:21 PM
Gravatar
Total Posts 18439

Re: Html Content multiple items issues

There is a module setting in the Html Module for Use Multiple Items, Excerpt and more link are only relevant when that is true. The idea was to support multiple articles in a single module but its not the greatest implementation so I don't really encourage people to use it. I have found it works better for me to just use single item mode and make each article its own module instance.

Later I plan to work on a lot of improvements to the Html module for wiki mode, tagging, comments ratings etc. When I get to working on those things I will revisit the multi items feature and decide whether to improve it or remove it.

Joe

6/6/2007 4:18:26 AM
Gravatar
Total Posts 488

Re: Html Content multiple items issues

1. Excerpt does not appear even in the multile items mode.

2. Am I right that the answer is "the issues will not be fixed as this functionality is to be completely rewritten in future"?

6/6/2007 7:31:31 AM
Gravatar
Total Posts 18439

Re: Html Content multiple items issues

When using multiple items with use excerpt set to true, the items are displayed on the main module using only the excerpt portion and the title of the iterm is the link to the full article.

In this mode the HtmlEdit.aspx page will show a field for the excerpt so it can be specified, but if left blank it will use a portion of the main content to create an excerpt.

If use more link is true then instead of using the title of the article to link to the full article, a more link will appear at the end of the article. and an edit field for the more link will appear on the HtmlEdit.aspx page. The idea was that this could be used to link to a full article on another site.

I will revisit this functionality when I get to improving the module as a whole. At that time I will decide whether this feature should be improved or removed. At the moment I'm leaning toward removed but I defer the final decision until I get my brain wrapped around working on that module.

Joe

 

6/6/2007 12:49:58 PM
Gravatar
Total Posts 488

Re: Html Content multiple items issues

Excerpt field does not appear even in multiple items mode.

I just wanted to complete the mode localization and saw it does not work properly.

As far as I understand, you consider this implementation not worth fixing at the moment.

6/6/2007 3:21:59 PM
Gravatar
Total Posts 18439

Re: Html Content multiple items issues

Excerpt does appear when I test it with Use Multiple Items true and Use Excerpt true.

Joe

6/7/2007 6:51:57 AM
Gravatar
Total Posts 488

Re: Html Content multiple items issues

Sorry, I just cannot understand the way I examined this functionality, I am sure it was not shown in that case too.

 

Still there are issues that I can see (in pgsql version, I did not test the others):

1. When deleting the content module (permanently using content manager), the corresponding rows in mp_htmlcontent table are not deleted. Is that a bug or feature?

2. When changing the "end date" when editing html in mutiple items mode, the new value is not saved to the database.

3. If setting "begin date" to future the item just disappears and there is no way to change this back (only editing the database manually).

4. Also in multiple items mode. Click on "add item", and then on "cancel" without typing anything - an unhandled exception is thrown:

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: oldValue

Source Error:
Line 427: }
Line 428: // this is for when javascript is disabled
Line 429: String noScriptKey = postDataKey.Replace(this.ID, "editor_noscript");
Line 430: if ((postCollection[noScriptKey] != null)
Line 431: && (postCollection[noScriptKey] != this.Value)

Source File: F:\Billing\mojoPortal SVN\mojoPortal.Web.Editor\FCKeditor\FCKeditor.cs Line: 429

Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: oldValue]
System.String.Replace(String oldValue, String newValue) +0
mojoPortal.Web.Editor.FCKeditor.LoadPostData(String postDataKey, NameValueCollection postCollection) in F:\Billing\mojoPortal SVN\mojoPortal.Web.Editor\FCKeditor\FCKeditor.cs:429
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +408
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4526

6/7/2007 2:33:41 PM
Gravatar
Total Posts 18439

Re: Html Content multiple items issues

Yes, as I said all along the multi-item feature poorly implemented and either needs to be improved or removed. I will review it when I get to revamping the Html Content module.

Joe

6/8/2007 2:47:18 AM
Gravatar
Total Posts 488

Re: Html Content multiple items issues

Ok.

11/25/2008 5:44:23 AM
Gravatar
Total Posts 1

Re: Html Content multiple items issues

Hi Joe,

Am I right in thinking that the HTML Content Module no longer has multiple items as an option?

Cheers, Andrew

11/25/2008 5:55:39 AM
Gravatar
Total Posts 18439

Re: Html Content multiple items issues

I commented out the setting for it in the feature definition file. It was poorly implemented and I don't want to encourage new users to use it because I'd like to do away with it permanently. But if you have content already relying on it you can uncomment it in Setup/applications/mojoportal-core/FeatureDefinitions/10000_HtmlContentModule.config

My advice is to rework any content so it doesn't use this feature because eventually it will go away completely.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.