Results 1 to 6 of 6

Thread: Referenced and related data

  1. #1
    User
    Join Date
    06-20-09.
    Location
    Middlesbrough, UK
    Posts
    246

    Default Referenced and related data

    A feature I used a lot in the Catalog module was the calalog reference and catalog related feature.

    with this you could create a list of services a business offered and then show staff from the staff catalog on the same page by relating it to the services catalog.

    Is this possible in Metamodels? If so does anyone know how?

    Thanks
    Ben
    360fusion: Virtual Tours - Web Design
    Social Media: Twitter - Facebook Page

  2. #2
    User
    Join Date
    06-20-09.
    Location
    Middlesbrough, UK
    Posts
    246

    Default

    Does anyone have any ideas on this?
    360fusion: Virtual Tours - Web Design
    Social Media: Twitter - Facebook Page

  3. #3
    User
    Join Date
    06-20-09.
    Location
    Middlesbrough, UK
    Posts
    246

    Default

    I have found this which looks promising but doesn't work: http://de.contaowiki.org/MetaModels_...ferenced_items

    Surely if this exists there is a template somewhere that someone has that works?

    Anyone?
    360fusion: Virtual Tours - Web Design
    Social Media: Twitter - Facebook Page

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

    Default

    Quote Originally Posted by Ben_360fusion View Post
    I have found this which looks promising but doesn't work: http://de.contaowiki.org/MetaModels_...ferenced_items

    Surely if this exists there is a template somewhere that someone has that works?

    Anyone?
    Hi Ben_360fusion,
    as far as i know should this work with an second MM-List Element and an Filter for that (own SQL should do it) based on the Alias (or ID) from the Item on the Detail Page.

    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
    06-20-09.
    Location
    Middlesbrough, UK
    Posts
    246

    Default

    Hi,

    Thanks for the reply.

    I have tried that, I could get it to filter based on ID or alias but I would need to specify the exact alias or ID for a metamodel. This then doen't work across all items.

    so if you imagin the film database as an example. I would like to show actors that are in a film, when you click on the actor I would like to have an actor profile page and then a list of films the actor is in. I don't want to create a new filter or module for each actor, just have one that know what 'this' metamodel ID is.

    I need to to know what page/metamodel item is being displayed and then reference a 'this alias/ID'. I can't find a way to do that with SQL or metamodels. I'm not a developer so I#m not great in SQL.

    I hope this explains it properly.

    Thanks
    360fusion: Virtual Tours - Web Design
    Social Media: Twitter - Facebook Page

  6. #6
    User
    Join Date
    04-01-10.
    Posts
    271

    Default

    Hi,

    Sorry to answer a little bit… late ;-))
    I've just had the same question and couldn't make the example work (no error but array() ).

    Here is the solution proposed by MacKP : http://metamodels.readthedocs.org/de...ustom-sql.html (last paragraph).

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
  •