• Resolved idevval

    (@idevval)


    How to I dynamically change the datasource or the “input file path or URL”. I have a website and the table and chart options are the same, but the source data which is a CSV file in the webservers directory = “wp-content/uploads/2023/09/” for example needs to be different for each unique user who is logged on. For example the input file path needs to be able to change with the logged in user. So user 1 gets the CSV data from directory “wp-content/uploads/2023/09/1”, user 2 gets the data to be displayed from “wp-content/uploads/2023/09/2” and so on. Is it possible to have a variable in the input file path name, such as “wp-content/uploads/2023/09/{user_id}. I have tried this but I get errors such as “path” or “url” not found. I am new to wpdatatables but I cannot find how to have a variable/dynanic input data path to show different charts/tables (values) for different users but with the same format of chart. I want to create a table and chart once, but many different users who log on see their own, different chart which is read from their own CSV file from a different path or URK. May use path in web server or AWS S3 bucket as CSV source file and I can change/create these as required. Summary, one table, one chart definition but many different CSV input files in different paths/URLs dependent on the user logged onto the website.

    • This topic was modified 2 years, 7 months ago by idevval.
    • This topic was modified 2 years, 7 months ago by idevval.
Viewing 1 replies (of 1 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hello,
    Sorry to disappoint you, but something like this is not possible with our current Plugin’s capabilities.
    We like this idea for a future development, though.

    Please feel free to search on our suggestions page (https://features.wpdatatables.com/), to see if someone may be already suggested this feature. If you can’t see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list. You can certainly follow our changeLog if you’d like(https://wordpress.org/plugins/wpdatatables/#developers), where we state any changes/new features/bug fixes during updates; and our newsletter(https://wpdatatables.com/newsletter/), so you’re informed about new features, bug fixes, freebies, etc.

Viewing 1 replies (of 1 total)

The topic ‘Dynamic or variable input file path or URL for wpdatatable’ is closed to new replies.