Skip to main content
yasminea4528
May 9, 2024
Solved

documents filter

  • May 9, 2024
  • 6 replies
  • 0 views

Hey developers, I need some help. I have a folder in which there are documents with an ID and a name. I need to create a condition in an interface to display only a document with a specific name. Is that possible?

    Best answer by davidj137213

    IN content tools plugin ( [mention:53156b1b7e64485095c92d09ad41f6fb:f7d226abd59f475c9d224a79e3f0ec07] )  you can find the function finddocumentsbyname..

    6 replies

    davidj137213
    Brainy
    May 9, 2024

    IN content tools plugin ( [mention:53156b1b7e64485095c92d09ad41f6fb:f7d226abd59f475c9d224a79e3f0ec07] )  you can find the function finddocumentsbyname..

    yasminea4528
    May 9, 2024

    How can I use it on an interface, please?

    richardm900458
    May 9, 2024

    What do you use on that interface to display the content? a grid? document and folder browser?

    For filtering documents a usually like a recordtype which contains the documentId and other metadata for a document like ids, tags, lastedited. Way easier to filter and search for specific values. 

    yasminea4528
    May 9, 2024

    this is what i use : 

    a!sectionLayout(
    label: "",
    
    
    contents:
    
    a!documentViewerField(
    label: "",
    labelPosition: "ABOVE",
    document: local!document,
    height: "TALL"
    ),

    stefanhelzle0001
    Brainy
    May 10, 2024

    I support [mention:c03f69cc9b264af29d5e31ca80c64eff:e9ed411860ed4f2ba0265705b8793d05]  in his suggestion to store additional meta data to the database and use that information to display documents to the user.