We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13860
    • 3 Posts
    hi guys,

    this may seem super simple, but i was wondering if anyone could tell me quickly or redirect me to a source where the syntax is explained for plugins configuration tab.

    for example, i am using a plugin called directresize, and there is a documentation with all the configuration variables, but i’m not sure how to write them exactly. for example, $big_width is a parameter with possible values of any width i choose, but how would i write that? $big_width=1000 ? or $big_width:1000 ?

    thanks,

    jon
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      &parameter=Label;type;value &parameter2=Label 2;type;value

      The TinyMCE plugin is a good one to look at for an example of using the configuration tab; it’s got a lot of stuff in there!
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 13860
        • 3 Posts
        thanks for the help!

        i think i may have found a solution - but not quite. directresize actually has a php file in a configuration folder that you modify, and it says "use the following syntax: $param = ’value’;". but i am following it exactly and am not getting any results.

        here is what i have:

        <?
        // Use the following syntax $param = ’value’;
        // You can use DIRECTRESIZE_PATH as full path to plugin folder
        $resize_method = ’0’;
        $big_width = ’1000’;
        $big_quality = ’10’;
        ?>

        i know that the plugin is working though because i see it resizing the images.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          You are defining those values as strings by using quotes, but if they are supposed to be numbers you can skip the quotes. It might make a difference; I’m not sure.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org