• Resolved linhd

    (@linhd)


    We would like to add an image to the directory, but I have a few questions:
    – Image can only be added by csv import?
    – If the list is already populated, which is the best way to add images?
    – Which is the recommended format / resolution / size
    Thanks in advance for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ERA404

    (@era404)

    Hello @linhd

    If you’re only using the standard columns that ship with StaffList, there won’t be a column for your staff images. So it’s advised that you modify your spreadsheet to add a new column where the image URLs will be recorded (and later, imported). Once you import your spreadsheet, the column will be available for individual edits/updates from the StaffList administration page.

    To your second question: we advise you to re-import your staff from spreadsheet. If you don’t have a spreadsheet created, you’ll need to make one, unfortunately. It’s also possible, if you have direct access to your database (via a tool like PHPMyAdmin), you make the adjustments to the table directly — but we don’t advise this approach, as it can be damaging to your website if you do it improperly.

    Regarding format, JPG or PNG will do nicely.
    You’re given CSS classes to fine-tune how your images will appear both in the StaffList table and the tooltip. So your image resolution will depend on how you ultimately wish for the images to be viewed on your web site.

    ERA404

    Thread Starter linhd

    (@linhd)

    Thank you for your information.
    I have one more question:
    Is there a “hard” limit on the URL length for the image? I have made some tests and it seems that if the path is above 60 characters the URL is truncated

    Kind regards

    Plugin Author ERA404

    (@era404)

    Hello @linhd

    The limit was increased to 255 with version 2.7.0:

    2.7.0
        Added support for images, using the prefix “img:”. Please see the installation instructions for an explanation on how to use image columns.
        At your request, we increased column width to 255 characters from 64, to accommodate longer column values.
        Updated plugin documentation and the StaffList WordPress Installation Page instructions.

    Because this is a schema change, you may need to deactivate and reactivate the plugin for the update. Doing so will empty your StaffList data, so be sure you have a current excel/csv beforehand. You can export your data directly from StaffList’s administration tool.

    ERA404

    Thread Starter linhd

    (@linhd)

    Thank you very much.
    Disabling and re-enabling the plugin solved the issue.

    Thanks again for your support

    Plugin Author ERA404

    (@era404)

    You’re quite welcome.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Picture in card or list’ is closed to new replies.