Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositorysimple text box for description fieldsimple text box for description field
Previous
 
Next
New Post
1/23/2007 4:26 PM
 

Is it possible to configure the Repository module to use a simple text box for the description field instead DNN's text editor?

I looked into using the FckHtmlEditorProvider but I'm trying to avoid such structural changes to the whole dnn instalation because of the impact it might have on other modules


Joao Beltrao
IT Manager
Desejo Sem Limites Multimedia
PORTUGAL
View João Beltrão's profile on LinkedIn
 
New Post
1/23/2007 10:18 PM
 
I also had need for a simple Textbox field and though I make every effort to avoid code changes knowing they will haunt me with each new release ...converting the Description field seemed like the least obstrusive change. I haven't seen any issues using the following "minimal" changes in Form.ascx/Private Sub CreateInputForm()...


Case "DESCRIPTION"

'Begin TMW change DESCRIPTION from HTML Editor to Textbox
'*******************************
Dim objTextbox As New TextBox
objTextbox.ID = "__TEDescription"
objTextbox.Text = ""
objTextbox.TextMode = TextBoxMode.SingleLine
'objTextbox.CssClass = oRepositoryBusinessController.GetSkinAttribute(xmlDoc, "DESCRIPTION", "Default", "")
objTextbox.CssClass = oRepositoryBusinessController.GetSkinAttribute(xmlDoc, "DESCRIPTION", "CssClass", "normal")
objTextbox.Width = System.Web.UI.WebControls.Unit.Pixel(CInt(oRepositoryBusinessController.GetSkinAttribute(xmlDoc, "DESCRIPTION", "Width", "150")))
objTextbox.Text = objRepository.Description.ToString
PlaceHolder.Controls.Add(objTextbox)
' Required Field Validator
If oRepositoryBusinessController.GetSkinAttribute(xmlDoc, "DESCRIPTION", "Required", "true") = "true" Then
Dim oValidator As New RequiredFieldValidator
oValidator.ControlToValidate = "__Description"
oValidator.CssClass = "normalred"
oValidator.ErrorMessage = Localization.GetString("ValidateDescription", oRepositoryBusinessController.LocalResourceFile)
oValidator.ID = "__ValDescription"
oValidator.Display = ValidatorDisplay.Static
PlaceHolder.Controls.Add(oValidator)
End If
'**************************************

'Dim oControl As New System.Web.UI.Control
'oControl = CType(LoadControl("~/controls/TextEditor.ascx"), DotNetNuke.UI.UserControls.TextEditor)
'oControl.ID = "__TEDescription"
'PlaceHolder.Controls.Add(oControl)
'Dim TEDescriptionField As DotNetNuke.UI.UserControls.TextEditor = PlaceHolder.FindControl("__TEDescription")
'If Not TEDescriptionField Is Nothing Then
' If objRepository.ItemId = -1 Then
' TEDescriptionField.Text = oRepositoryBusinessController.GetSkinAttribute(xmlDoc, "DESCRIPTION", "Default", "")
' Else
' TEDescriptionField.Text = objRepository.Description
' End If
' TEDescriptionField.Width = System.Web.UI.WebControls.Unit.Pixel(CInt(oRepositoryBusinessController.GetSkinAttribute(xmlDoc, "DESCRIPTION", "Width", "560px")))
' TEDescriptionField.Height = System.Web.UI.WebControls.Unit.Pixel(CInt(oRepositoryBusinessController.GetSkinAttribute(xmlDoc, "DESCRIPTION", "Height", "280px")))
'End If
'' Required Field Validator
'If oRepositoryBusinessController.GetSkinAttribute(xmlDoc, "DESCRIPTION", "Required", "true") = "true" Then
' Dim oValidator As New RequiredFieldValidator
' oValidator.ControlToValidate = "__TEDescription"
' oValidator.CssClass = "normalred"
' oValidator.ErrorMessage = Localization.GetString("ValidateDescription", oRepositoryBusinessController.LocalResourceFile)
' oValidator.ID = "__ValDescription"
' oValidator.Display = ValidatorDisplay.Static
' PlaceHolder.Controls.Add(oValidator)
'End If

...and then adjust Form.xml accordingly...


[DESCRIPTION]


Width
150


Default



Required
false


 
New Post
1/23/2007 10:22 PM
 

I've had absolutely no problem with using the FCK Editor with any module. Out of all the providers the FCK is the one I've had the least problems working with modules.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositorysimple text box for description fieldsimple text box for description field


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out