Results 1 to 6 of 6

Thread: Listing form data condition

  1. #1
    User
    Join Date
    07-06-09.
    Posts
    44

    Default Listing form data condition

    Hi,

    I have a listing form data that connects to a database and I would like to put a condition something like show only the data that is equal to the logged-in user's id.

    Is that possible?
    Thank you,

    Dan

  2. #2
    User
    Join Date
    07-06-09.
    Posts
    44

    Default Re: Listing form data condition

    Nodoby?

  3. #3
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default Re: Listing form data condition

    Do you mean the listing module?

  4. #4
    User
    Join Date
    07-06-09.
    Posts
    44

    Default Re: Listing form data condition

    Hi Leo,

    Yes, the Listing Form Data module under Applications.

    Thx,
    Dan

  5. #5
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default Re: Listing form data condition

    You can use insert tags in the condition field:

    Code:
    id={{user::id}}
    However, put the listing module on a protected page in this case, to make sure that there is a user ID.

  6. #6
    User
    Join Date
    07-06-09.
    Posts
    44

    Default Re: Listing form data condition

    Thank you Leo.

    Yes, the module is inside the restricted area.

    Have a good day,

    Dan

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •