We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32982
    • 674 Posts
    UPdated dinamic order Values and some fixes
    Updated for clear cache and show the tv well
    its a rare snippet i do because want to make custom program for a client and only want to have one extra table in modx instalation. realy the snippet put defaults values in a tv what is called from another place like it <select>[*thetvwhiththevalueswant*]</select> and in the options of the tv only need to put htmlgenerictag || option || it show a dropdown in the snipet or everywhere the call are whith the defaults values of the tv.
    Now start the snippet is a frontend manager for this values and whithout using mysql could add values to the tv.
    this is my usage but could be use for anotherthig (if know another postit)
    if anybody whith more enghish could explain it better are welcome
      Jabiertxof (formerly XYZVISUAL)
      My bussines: http://marker.es
      https://www.youtube.com/user/jabiertxof/videos
      • 32982
      • 674 Posts
      updated
        Jabiertxof (formerly XYZVISUAL)
        My bussines: http://marker.es
        https://www.youtube.com/user/jabiertxof/videos
        • 32982
        • 674 Posts
        Updated for order values on submit alphabetic
          Jabiertxof (formerly XYZVISUAL)
          My bussines: http://marker.es
          https://www.youtube.com/user/jabiertxof/videos
          • 6726
          • 7,075 Posts
          Thanks but I still fail to see what this snippet does huh

          Could anyone care to explain ?
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l&#39;outil id
            • 32982
            • 674 Posts
            Whith this snipet (whith a few modifications can be for another things) i put in the default values of a tv a string like "for work || For love || for all...." puting alphabetic order this values and combert case to lower (surfing in the code is easy to change case to uper and order desc. whith this values i use for store information like in a help sql table sometimes dont need 2 columns id and the value you put. the id dont save but because you can use in the site calling like a tv (I use into a select stament whith widget htmltag option, and show me a dropdown orderer and in lowercase) and intead to save in the main table a row whith the value of the table id only store the final value directly in a only table whith all pseudosql tables you create duplicating the snipet.
            realy i dont know is useful for me go very well and in the future could be more poweful making the habilty to store multiples colums in a multidimensional array to solve the problem and expant to be more powefoul
            my english is bad but im interesting to know you understand me basic
              Jabiertxof (formerly XYZVISUAL)
              My bussines: http://marker.es
              https://www.youtube.com/user/jabiertxof/videos