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 ForumsRepositoryRepositoryEdit Sort ByEdit Sort By
Previous
 
Next
New Post
2/21/2008 12:38 AM
 

Is there a way to remove some of the items in the sort by drop down list?  I am not permitting download so the presence of it is odd to the user.

Thanks

 
New Post
2/24/2008 10:01 PM
 

anyone out there? - seems posts get lost here... ; )

 
New Post
2/25/2008 1:20 PM
 

seems posts get lost here

... really? I thought I was doing a pretty good job of keeping up with the questions ... sorry

to remove Downloads from the sort box, you would need to change code and re-compile (in VS2003) then re-deploy the module. The code is in Repository.ascx.vb. in the ParseHeaderTemplate() function .. find the case statement for the SORT tag and remove the highlighted lines...

Case "SORT"
  Dim objDDL As New DropDownList
  Dim objItem As ListItem
  objDDL.EnableViewState = True
  objDDL.ID = "cboSort"
  objDDL.AutoPostBack = True
  objItem = New ListItem(Localization.GetString("SortByDate", LocalResourceFile), "UpdatedDate")
  objDDL.Items.Add(objItem)
  objItem = New ListItem(Localization.GetString("SortByDownloads", LocalResourceFile), "Downloads")
  objDDL.Items.Add(objItem)
  objItem = New ListItem(Localization.GetString("SortByUserRating", LocalResourceFile), "RatingAverage")
  objDDL.Items.Add(objItem)
  objItem = New ListItem(Localization.GetString("SortByTitle", LocalResourceFile), "Name")
  objDDL.Items.Add(objItem)
  objItem = New ListItem(Localization.GetString("SortByAuthor", LocalResourceFile), "Author")
  objDDL.Items.Add(objItem)
  objItem = New ListItem(Localization.GetString("SortByCreatedDate", LocalResourceFile), "CreatedDate")
  objDDL.Items.Add(objItem)
  If mSortOrder <> "" Then
    objDDL.Items.FindByValue(mSortOrder).Selected = True
  End If
  objDDL.CssClass = oRepositoryBusinessController.GetSkinAttribute(xmlHeaderDoc, "SORT", "CssClass", "normal")
  AddHandler objDDL.SelectedIndexChanged, AddressOf cboSortOrder_SelectedIndexChanged
  hPlaceHolder.Controls.Add(objDDL)

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryEdit Sort ByEdit Sort By


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