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 ForumsRepositoryRepositoryDates, Sorts and SearchesDates, Sorts and Searches
Previous
 
Next
New Post
4/18/2006 1:11 PM
 

Is there any way to over-write or manually enter the upload date? Change I change the Sort options (eliminate some choices I don't need, like by author) and add ones that I do, such as title in descending, rather than ascending order?

Here's what I am trying to do - my company has an almost daily newsletter and I would like to display the ten most recent ones first. Sorting by date should work, but if there are any edits or additions made to the repository entry, the edited docs go to the head of the listing and I can't figure out how to edit the date. Sorting by title doesn't work because we preface the titles with ascending numbers, like 2006-121, 2006-222, etc. To sort by title gives me the least recent docs first.

One last issue, how can I add the Search button to the Directory template and is there a way to pre-populate the search field with the list of attributes created for those docs?

Thanks so much for your work on the module and for this forum, where newbies like me can find some friendly help.

 
New Post
4/18/2006 4:57 PM
 

The only way to overwrite the date is to do it manually in the database. To change the sort options you'd have to change the stored procedure at minimum. I don't have access to my install of DNN at the moment but I think the sproc is called grmRepository_GetRepositoryObjects. I also think you'd have to edit some of the code behind but I can't remember at the moment if that has changed from an earlier version of the Repository. I'll try to look at it tonight and get back to you.

Currently there is no way to pre-populate the search field.

To add the search button you need to put the [SEARCH] tag in the header.html for the template and then in the header.xml file you'd need the following:

<Object>

<Token>[SEARCH]</Token>

<Settings>

<Setting>

<Name>CssClass</Name>

<Value>Normal</Value>

</Setting>

</Settings>

</Object> 

<Object>

<Token>[SEARCHBOX]</Token>

<Settings>

<Setting>

<Name>CssClass</Name>

<Value>Normal</Value>

</Setting>

<Setting>

<Name>Width</Name>

<Value>100</Value>

</Setting>

</Settings>

</Object> 

<Object>

<Token>[SEARCHBUTTON]</Token>

<Settings>

<Setting>

<Name>CssClass</Name>

<Value>Normal</Value>

</Setting>

</Settings>

</Object>

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryDates, Sorts and SearchesDates, Sorts and Searches


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