Okay
  Public Ticket #2020217
URL Link
Closed

Comments

  • Johnmulholland started the conversation

    Can I setup a 'calculated' URL link column - In my table there is a column detailing a product/item ID number and I want the users to be able to select the item in the table and be directed to a new window for that item. I'm looking for this to be calculated automatically as there will be thousands of rows with unique items with separate post/product pages. Doing this manually would be a nightmare....

    Alternatively, do you know if this could be done in excel, prior to uploading to the table and therefore prior to updating the table on a regular basis?


  •  2,572
    Aleksandar replied

    Hello Johnmulholland.

    Thank you for your purchase.

    You can add URLs to cells using "string" type columns, and then adding values to cells like this:

    <a href="http://www.google.com" target="_blank">Google</a>
    <a href="http://www.yahoo.com" target="_blank">Yahoo</a>
    <a href="http://www.amazon.com" target="_blank">Amazon</a>

    so it looks like this:

    2821442636.png

    Then, my advice would be to enable "selectbox" filtering, with "Exact filtering" enabled:

    6899358558.png

    You can also hide the table before filtering, if you want.

    When the user opens the page where the table is, they can select the product/item ID (which will already be linked to a new window for that item) and the table will filter showing only that result, so when they click on the ID in the table it will take them to a new page:

    6133899004.png

    You can, of course, do this in Excel, and then either import the table, or link to the Excel file. If you import it, the table will be editable in wpDataTables, but any changes in it will not affect the Excel file and vice versa. If you link the file, you will not be able to edit the file in wpDataTables, but all changes will have to be made in the file stored in ../wp-content/uploads/YEAR/MONTH/file.xlsx

    I hope this helps.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables