• modx ignores mm_inherit... anyone got it to work?#

  • Lucas Reply #1, 1 year, 6 months ago

    Reply
    I'm trying to load the parent's longtitle for new documents created with template '7', using this line in the external mm_rules.inc.php file.

    mm_inherit('longtitle', '', '7');


    MM works fine for all of my other configurations but this seems to have no effect at all. I've tried different fields, roles and template combinations and same result.

    Is anyone using it successfully?
    I'm also wondering if it will apply for existing documents of that template too (if they have no longtitle), or will they need to be resaved...?

    I'm using the latest EVO and MM 0.3.6


  • ncrossland Reply #2, 1 year, 2 months ago

    Reply
    Sorry for the late reply, but this seems to be a bug which occurs when you change the template while editing the document (it would inherit OK when a document was created with the affected template by default).

    There's a fix in 0.3.10 which allows it to work even when changing templates.


  • Lucas Reply #3, 1 year, 2 months ago

    Reply
    Yes, that seems to have been the case regarding changing templates and it now works with the latest release.

    No problem about the late reply, many thanks for taking the time to comment!