We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27889
    • 415 Posts
    I think to help developper to write MODx code, it could be usefull to add some guidelines to provide full compatibility for differents configurations.

    Some usefull

    • $modx->makeUrl(’id’) to generate the url of a document.
    • $modx->regClientStartupScript to avoid multiple load of same script
    • [(base_url)] in front of path to have correct path
    • modx->config[’rb_base_dir’] for local assets path.
    • Develop with respect of standards xhtml, css, ... (so hard with full compatibility sad) but closing all tags is easy!
    • ...
      MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
      MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
      • 22353
      • 4 Posts
      EVOLUTION: I think is missing documentation about "FOLDER STRUCTURE" in modx , at the beginning I cannot understand or follow a strict directory structure, many many plugins duplicate for example PHx classes, phpMailer classes etc, too bad for jScript inclusion, I have seen in the code misuse of regClientStartupScript, without name and version argument, may be they must become mandatory, because it is easy to duplicate code like jquery if every man put him version of script in the snippet/plugin/module