DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Folder filtering  (Read 6,837 times)

cldcp00

  • Participant
  • Joined in 2010
  • *
  • Posts: 5
Folder filtering
« on: August 04, 2010, 04:25 PM »
I am new to LBC is there a way to filter out the folder you do not wish to be shown in the menu. i have a folder that has lots of historical stuff which cannot be moved out I just want to see certain folder on the LBC menu is there some way of doing this?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Folder filtering
« Reply #1 on: August 04, 2010, 04:37 PM »
there sure is.  when you create a node that shows the contents of one (or more) folders, you can specify accept and reject patterns for files and folders:

Screenshot - 8_4_2010 , 11_35_40 AM.png

cldcp00

  • Participant
  • Joined in 2010
  • *
  • Posts: 5
Re: Folder filtering
« Reply #2 on: August 04, 2010, 07:49 PM »
Mouser thanks for your reply, but could you explain how if I have a folder which have sub folders that are number from 1 up to 1110, where anything before 500 could be classed as historic and just clutter up the menu scrolling down to the higher number folders.
The folder contain a mixture of files pdf jpg doc etc. what exactly would i need to do just to see folders that are numbered higher than 700.

Thanks for any help in advance

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Folder filtering
« Reply #3 on: August 04, 2010, 07:57 PM »
hmm thats a bit trickier.  you MIGHT be able to do it by accepting subdir patterns of 5??;6??;7??;8??;9??;1???
but im not sure if the ? will work.

what i would honest suggest is that you re-organize a bit and move the older stuff into its own subdir called "old" and then exclude that.

cldcp00

  • Participant
  • Joined in 2010
  • *
  • Posts: 5
Re: Folder filtering
« Reply #4 on: August 05, 2010, 09:02 AM »
Can someone explain why when I enter 525 as the folder I want to accept, it filters out all the rest and just shows 525. But when i enter 525;869;1058 it returns no folders? This is becoming very frustrating >:(

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Folder filtering
« Reply #5 on: August 05, 2010, 12:49 PM »
seems a bug in the code regarding the ;
try using < instead of ; to separate
for the inclusion and exclusion items.

Original address: https://www.donationcoder.com/forum/index.php?topic=23642.0