We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22303 MODX Staff
    • 10,725 Posts
    Your database is using a latin1 charset/collation and does not support storing utf8 characters. This is likely the source of your problem.
      • 3544
      • 9 Posts
      Thanks for the input which led me on a way to solving my problem.
      The charset was not the source of the problem, but i found some postings on how to change the charset in the db etc.
      The problem with content being chopped was caused by html special characters/html entities inserted by TinyMCE. This was solved by changing the "Entity Encoding" to raw in the TinyMCE configuration.
      But the question still remains if getfield does not allow html entities.
        • 43968
        • 25 Posts
        Hi there!
        I've a little Problem with GetField. I'm calling an eForm Form with following Parameters:
        <a href="[~12~]&event=[+id+]">...</a>

        On Page with ID 12 there are 2 Calls:
        [!GetCode!] [!eForm? &formid=`TicketOrderForm` &subject=`Kartenbestellung` &to=`...` &ccsender=`1` &tpl=`TplTicketOrderForm` &report=`TplTicketOrderReport` &vericode=`1` &thankyou=`13` &eFormOnBeforeFormParse=`eformGetCode`!]

        GetCode will parse the GET-Parameter 'event' and it will be available in my eForm Chunk as:
        [+eventid+]

        So, now my Problem (assume &event=2):
        <p>[!GetField? &docid=`[+eventid+]` &field=`pagetitle` !]</p>
        will output nothing.
        <p>[!GetField? &docid=`2` &field=`pagetitle` !]</p>
        will output the pagetitle correctly.
        <p>[+eventid+]</p>
        will output 2 as expected.
        <p>GetField? &docid=`[+eventid+]` &field=`pagetitle`</p>
        will output GetField? &docid=`2` &field=`pagetitle` (Notice that I removed the [!!])
        I don't know why [+eventid+] is not parsed correctly in the GetField call...
        Any Ideas are very welcome!
        Mike