Results 1 to 6 of 6

Thread: Catalog variable

  1. #1
    User
    Join Date
    07-08-10.
    Location
    Madrid, Spain
    Posts
    145

    Default Catalog variable

    Hello

    Is there a way to access variables of catalog reader from the template of catalog reference ?
    I'd like to filter what is coming in the reference module with an element parameter.

    For example, I have a range of colors wich is used by various products.
    I can see the entire range of colors with a reader displaying everything (fine).
    In a product page I have a reader and a reference module displaying the associated range of color.
    But all the products are not using all the colors of the range, so I'd like to set up a maker wich will determine if the color will be displayed or not depending on the product.

    Thank's

    Eric
    Eric
    Contao 2.8 -> 3.0
    Evizer Web Agency

  2. #2
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: Catalog variable

    Hi evantro,
    why not with the catalog-related Module?
    This is for something like that (when i understand everything right...).

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  3. #3
    User
    Join Date
    07-08-10.
    Location
    Madrid, Spain
    Posts
    145

    Default Re: Catalog variable

    you understand well, and I am using it the catalog-related module; it works fine, but I want (need) to filter more over the relation...
    Eric
    Contao 2.8 -> 3.0
    Evizer Web Agency

  4. #4
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: Catalog variable

    Hmm you could try it with the Globals Variables. With that you can check the color in the related module and there you can filter it by hand in the template.

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  5. #5
    User
    Join Date
    07-08-10.
    Location
    Madrid, Spain
    Posts
    145

    Default Re: Catalog variable

    Could you give me a track about global variable I never used it

    Thank's
    Eric
    Contao 2.8 -> 3.0
    Evizer Web Agency

  6. #6
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: Catalog variable

    Sorry that i didn't write earlier....

    Here is a Hint from the german Wiki:
    http://de.contaowiki.org/Catalog_Steuer ... log_feldes

    The Part for you:
    $GLOBALS['Type_of_Item'] = $entry['data']['Typ']['value'];?>

    Hope that will help...

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

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
  •