On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Quote from: Bruno17 at Apr 05, 2016, 06:30 PM
    They don't need to be connected to resources.
    This is just one way of many to create groups of records, where each group is related to one resource (by the field resource_id in this case).

    Can you still help me?
    Now i have made resources, TV's and templates and connected templates to resources and TV's.
    Page structure is following:

    Frontpage <-- This has other template
    Gallery <-- gallery-template is connected to this
    Item <-- gallery-template is connected to this

    Is it possible to get only links from grid items and show them on separate page (page Item) and how this can be done?

    My target is to get one page to display grid contents partially (name, description) and link where rest information can be read.

    I appreciate your help.
    • Ok, i have it working but i still need some help with query parameters on snippet call.
      I would like to add deleted parameter (AND) to query so it only gets those records which are published and not deleted, but don't know how to do that. Where i add that {"deleted":"0"} parameter?

      [[!snippetloop2?
      &packageName=`itemcatalog`
      &classname=`itemCatalog`
      &where=`{"published":"1"}`
      ...
      • does this work?

        [[!snippetloop2?
        &packageName=`itemcatalog`
        &classname=`itemCatalog`
        &where=`{"published":"1","deleted":"0"}`
        ... 
        
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
        • Quote from: Bruno17 at May 02, 2016, 10:06 AM
          does this work?

          [[!snippetloop2?
          &packageName=`itemcatalog`
          &classname=`itemCatalog`
          &where=`{"published":"1","deleted":"0"}`
          ... 
          

          Thanks.