SharePoint JSON List Formatting - Image Preview Full Solution

Поделиться
HTML-код
  • Опубликовано: 30 янв 2025

Комментарии • 16

  • @stevecorey365
    @stevecorey365  Год назад +2

    🔥 Learn JSON formatting with my online course - www.modernworkmastery.com/courses/jsonformatting

  • @ChasHoff
    @ChasHoff Год назад

    Awesome tip!

  • @kmuralikrishna1582
    @kmuralikrishna1582 Год назад +2

    Really appreciated Steve, but thing is first you deleted the column, which means when you delete the column column data also deleted, after you created a single line text field and update column format to field, how did you get the images back? how did you get back the field data in images?

    • @stevecorey365
      @stevecorey365  Год назад +1

      Great question! So with this example, I was using a document library filled with images. Since the image data was already there (in the file itself), I didn't need to populate the field. The formatter I used simply referenced the preview image of the existing file. Does that answer your question?

  • @Theoriginal1981
    @Theoriginal1981 Месяц назад +1

    Thanks for the video Steve, really informative. I have recently been playing with JSON quite a bit, and I've managed to create a Document Library with a custom view format using JSON snippets. When I've added Power Points, Doc etc it automatically applies an image preview of the first page when in Gallery mode, which looks really nice. However recently I've had to add web-links, but its gives a default image to those links. Do you know if there is a way to add a custom picture to each of the documents in the library which I can reference in the JSON somewhere?

    • @stevecorey365
      @stevecorey365  Месяц назад

      Thanks so much for the feedback! Yes, you can change the JSON formatting and reference another custom column (like a custom image)! You would have to learn a bit of JSON formatting to know what to change, though. I have an online course that teaches that, but there's also content on learn.microsoft.com that might help.

  • @davesheehan7990
    @davesheehan7990 Год назад

    Thanks, thats awesome!

  • @KathyChang-x5x
    @KathyChang-x5x Год назад +1

    Hello teacher, I would like to ask how to update the contents of the attachments column in SharePoint (there are multiple contents in the attachment) to json format for storage?

    • @stevecorey365
      @stevecorey365  Год назад

      Unfortunately I don't believe you can use JSON formatting with the attachments column.

  • @cvkealey
    @cvkealey Год назад +1

    I don't suppose you've found any way to "select" items in a gallery view other than using that tiny little dot in the top right corner, have you? The use case is I have a list of "suppliers" which has a "category" column that's a lookup to another list. I want to put them both on a page so that selecting the category filters the list of suppliers. It works great, except that selecting that little dot is not intuitive. I'd rather make the entire item a button to select it, or add a button labeled "select this category".

    • @stevecorey365
      @stevecorey365  Год назад +2

      Just edit the that default card JSON, and remove the customRowAction that you see at the top of that JSON. Also remove the comma that comes before the block. Here's the JSON you're looking for.
      "customRowAction": {
      "action": "defaultClick"
      }

    • @cvkealey
      @cvkealey Год назад

      @@stevecorey365 THANK YOU! I spent like 5 hours yesterday looking for this answer.

    • @stevecorey365
      @stevecorey365  Год назад

      You're very welcome, my friend!

  • @virajnighot2909
    @virajnighot2909 14 дней назад

    loading process takes too much time