Purpose

csvCrud is designed to give you full CRUD(Create, Retrieve, Update, Delete) capabilities. Not with a database table, but a CSV file!

You set the path and filename which allows you to decide where the file is stored. This also gives you the ability to use this to populate a TotalCms datastore file.

Key Features

  • Easy Drag and Drop Implementation 
  • Intuitive Settings with help screen in preview
  • A simple, easy way to create, display and update a CSV file.
  • Powerful options for both admin and public pages

Install 

Installs like any other stack. Unzip the file, drag and drop onto the RW icon. Restart RW.

Setup/Use

(See gallery for screen shots)

  1. Add a csvCrud stack (only one per page) to your page.
  2. Set the path and file name of the csv file. One will be created if it doesn't exist.
  3. Change the settings in the UI for the display options you want.
  4. Publish

Done! 

Setup/Pretty Url's

if you check the pretty url's box, csvCrud will send pretty url to the details page url. This requires a .htaccess rule similar to this:

# csvCrud Pretty URL rules to paste into your .htaccess file
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^csvcrud/details/(\S+) /csvcrud/details/index.php?row=$1 [L,QSA]

Note: You will need to change the paths in the RewriteRule line above.

Requires:

Stacks 4+ or StacksPro by: Yourhead.