Parameters
-
Hi
We are using the basic version of your plugin and love the results.
We have a piece of PHP code to load an Excel spreadsheet into an article. This works fine but we have to create a snippet for each article and we want to make it as easy as possible for any future developers of our site.
We would like to be able to pass a filename of a spreadsheet as a parameter to a piece of PHP from the shortcode. Is this possible?
The filename is already specified in the PHP code but if we can specify this from the shortcode using a variable it would allow us to only have to use one snippet.
In the article you would have [xyz-ips snippet=”LoadCheatSheet”, “c:\\xampp\\test data\\SATU\\SATU (data).xls”]. The PHP code would then load the data from the specified file and display the results as normal.
Is this possible?
Thanks
- The topic ‘Parameters’ is closed to new replies.