We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31410
    • 66 Posts
    i just want to inform you that code example given in http://rtfm.modx.com/display/xPDO20/xPDOObjectExistsValidationRule
    is a bit wrong
    <validation>
    <rule field="name"
    name="chunkExists"
    type="xPDOValidationRule"
    rule="xPDOMinLengthValidationRule"
    pk="12"
    classKey="modChunk"
    message="The Chunk does not exist, so this object cannot be saved."
    />
    </validation>
    the rule="xPDOMinLengthValidationRule" should be rule="xPDOObjectExistsValidationRule"

    or am i wrong here?

      • 28215
      • 4,149 Posts
      splittingred Reply #2, 16 years ago
      No, you’re right. Fixed.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com