Results 1 to 2 of 2

Thread: [resolved] dca label and conditional test

  1. #1
    User
    Join Date
    11-23-09.
    Location
    Valais, Switzerland
    Posts
    77

    Default [resolved] dca label and conditional test

    hello

    I'm doing a DCA where i what to display differents kind of "label" selected by a condition (if). What the best practice? I can put all the string of the DCA array in separate strings and build after the array, but maybe there is a better way...

  2. #2
    User
    Join Date
    06-19-09.
    Posts
    328

    Default Re: dca label and conditional test

    Quote Originally Posted by synergie
    hello

    I'm doing a DCA where i what to display differents kind of "label" selected by a condition (if). What the best practice? I can put all the string of the DCA array in separate strings and build after the array, but maybe there is a better way...
    if you are talking about the "listing" you can use a label_callback

    you can find an example of usage here
    Consulenza Contao CMS https://www.intco.it

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
  •