WordPress.org

Ready to get started?Download WordPress

Forums

Participants Database
Open a row in Lightbox when clicked (2 posts)

  1. senyoraangelica
    Member
    Posted 1 year ago #

    Hello! I'm using the plugin to create a huge list of books- with columns containing: Cover Photo, Title, Author, ISBN, Description, etc. Most of the books have a long text in the Description (2-3 paragraphs), so I was wondering if it's possible to have the book description show in the Table (pdb_list) as an incomplete sentence with a "read more" link? --- Clicking on the "read more" would pop-up the row data (all the info about the book) in a lightbox.

    Or is it possible to display just a few columns in the Table and when someone clicks on the row, a lightbox will pop-up displaying all the columns and data available on that row even if it's not displayed on the table?

    I would be extremely grateful for your help and advice.
    Hoping to hear from you soon,
    Angelica

    http://wordpress.org/extend/plugins/participants-database/

  2. xnau
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Angelica,

    You have two choices here, both will require some coding know-how. Probably the best choice is to create a custom template for your list that wraps the description field in a div tag, then truncates the content of the field, appending your "more" link, which would take them to the book detail page where the full excerpt can be seen.

    This can also be done post-display by javascript. If you want to the pop-up box, that will also have to be done with javascript.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic