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 ForumsRepositoryRepositoryCategory All - By design?Category All - By design?
Previous
 
Next
New Post
5/18/2006 6:02 AM
 
Hello

I noticed that you have to explicitly check the ALL category - eg. I have 2 categories - "All" and "Funny" and I need to check both if I want the video to appear under ALL on the main view. I would have thought that ALL would always show ALL items, regardless of whether I ticked ALL or not?

It should be treated as a special category that automatically shows everything, but it seems to be just like a pre-definied named category - perhaps it should not be shown on the item edit screen and then always show all categories on the main view if they sellect ALL? Am I being pedantic?

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
5/19/2006 2:37 PM
 

we all do things we're not proud of now and then ... :)

The 'ALL' category is mine

There's really no special significance to the 'ALL' category. When you upload a file to the repository it must be associated with at least one category since you view repository items 'by category'. When you first place a repository module on a page, I auto-create a category for you so that you will have at least one category. I named that category 'ALL'. It's really just a normal category and you can rename it to anything you want as well as add additional categories.

Now, when you upload an item, I verify that the item has been associated with at least one category, otherwise there would be no way to view the file if it wasn't associated with at least one category. So when you click Update, if you have NOT checked any categories, I will auto-check the first category in the list for you. 

So now, hopefully you can see that if you don't check anything, then the file will show up in the 'ALL' category. However, if you check any other category, then I will NOT auto-check the 'ALL' category.

I will definately revisit this in a future release and will implement a true 'ALL' category that makes sense.

Sorry for the confusion.

 
New Post
5/20/2006 10:06 AM
 

I had looked at this also, and came up with a fix that i posted earlier here. I will paste it in here for you to look at.

The ALL Category problem has been bugging me too. I have alot of users that don't check the ALL Ckbox. I even put a note in the Upload form, and it still doesn't get checked. I was having to change it manually in the DB every time this happened. And if i edited the file through the Repository, it then showed me as the Author. Neither one of these solutions were very good. So, i finally got around to installing the source code and found a quick fix for now.

In the Form.ascx.vb, there is a comment about checking to see if there was more than 1 category, if not, add it to the ALL Category automatically.

Line 688 Form.ascx.vb

If strCategories.Length = 1 Then

' every item must be associated with the ALL category

I changed it to:

If strCategories.Length > 0 Then

' every item must be associated with the ALL category

This automatically gave me every file uploaded to be added to the ALL Category. Problem now is that i didn't want to have the ALL Checkbox shown in the Upload form.

Line 448 and 474 Form.ascx.vb

For i = 0 To Arr.Count - 1

I changed it to

For i = 1 To Arr.Count - 1

This now lists the categories in your upload form, skipping the first one, which is the ALL Category. Note that if you changed the order of listing your Categories, it will skip the first one regardless if it is the ALL Category or not.

Now I changed these and have tested it on my pc and then tryed it online, and it seems to work just fine. I am not a programmer, so there may be a reprocussion somewhere else, but i haven't found it yet. Hopefully this will shed some light for others.

Hope that helps



Gary
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryCategory All - By design?Category All - By design?


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