Hi again! I am having some troubles implementing the write to file part. I want to write the variable "Current" to 1/2/3 in the Variables.inc file located in the @Resources folder. I tried searching, but saw people used what I tried already.
The above code throws no error, and I have tried quotes/magic-quotes and removed them.. I can't get what have I missed.. The root folder does not contain any spaces/special characters, neither do the skin files.
Edit: I already have checked this part in the manual: [!WriteKeyValue Variables Page 2][!Refresh] This just adds the things to the skin, not variables.inc file.
Good catch! The file in which you want to write, same way as the name of the config in which you want to set a variable, option or do anything else with the appropriate bang, has to be the last parameter. There are no exceptions. Additionally in the first bangs of all ContextAction options (which should have been writing the Current variable), the number of parameters are too small. You forgot the name of the section in which you expect the option (in this case the variable) to be written.
Fixed now? Does it work as expected?