How to Add or Replace a File in TablePress

MAD Communications - Stepping Stones to Your Businesses Future
TablePress Tables

There are two options on how to replace a file in a TablePress table. The first way is to copy and paste the link code directly into a table cell. The second is to edit and add a file within a table cell using the TablePress button Insert Link. Please note, the second option does not work for adding PDF files.

Swap out File – Option A

The first option is to upload your file and and then copy and paste the code directly into the designated cell row for the file you want to replace.

After you upload your file click Edit. Alternatively, if you have previously uploaded your file, go to Media | Library and click on the name of the file or Edit to open it.

Tablepress File Library

Make sure that you’re viewing your Media Library in List mode, or the next step will not apply for copying the URL of your file.

In the right side of the screen (if in List mode), select the entire file name as below and click Ctrl-c to copy the name of the file.

TablePress Copy and Past Filename

Mouse-over TablePress and click All Tables.

Select TablePress - All Tables

Once you are within the main screen of the TablePress plugin, scroll down and select the Table Name that you want to add the new PDF file to.

Depending on the contents of your table, you may see a various number of columns and rows. In this example, there is one column and five rows.

Select TablePress Table

To expand the table, click and drag the corner section to the right so that you can better see row content.

Next, go to the row and cell of the file that you want to replace. Select the file URL as below and click Ctrl-V to paste the filename you previously copied.

Tablepress - Select Filename

As a further example, you need to replace #### as below with your actual filename (i.e. https://www.youdomainname.com/wp-content/uploads/2020/07/name-of-file.pdf). The Title of PDF File will be what people see as the text link to your PDF file.

[php]<a href="####" target="_blank" rel="noopener">Title of PDF File</a>[/php]

One the cell is populated with the new file, click the Save button and exit TablePress. The new file that you just swapped out will auto-populate within the page.

Swap out File – Option B

This works to add files to TablePress, but not PDF files.

The first step is to upload the file that you want to add to the TablePress table. After uploading the file, mouse-over TablePress and click All Tables.

Select TablePress - All Tables

Once you are within the main screen of the TablePress plugin, scroll down and select the Table Name that you want to add the new PDF file to.

Depending on the contents of your table, you may see a various number of columns and rows. In this example, there is one column and five rows.

Selecting TablePress Table

To expand the table, click and drag the corner section to the right so that you can better see row content.

Next, select the file that you want to replace by highlighting it and then by deleting it so that the Row becomes empty.

Make sure that your cursor is in the tabel cell that you want to edit and then click the Insert Link button and select the file that you just uploaded.

Once selected the URL and Text Link sections will automatically populate. Click the Open link in a new tab so that when the link is clicked it will open in a new tab or window.

Click the Add Link button.

Tablepress - Select File

Once the cell is populated with the new file, click the Save button and exit TablePress. The new file that you just swapped out will auto-populate within the page.