<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sumit Kanchan</title>
    <description>The latest articles on DEV Community by Sumit Kanchan (@sumitkanchan4).</description>
    <link>https://dev.to/sumitkanchan4</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F430034%2F5cd6eaff-e5f2-4ba7-a0e6-464f3f093e14.jpeg</url>
      <title>DEV Community: Sumit Kanchan</title>
      <link>https://dev.to/sumitkanchan4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sumitkanchan4"/>
    <language>en</language>
    <item>
      <title>List View row Formatting: Discussion Board</title>
      <dc:creator>Sumit Kanchan</dc:creator>
      <pubDate>Mon, 13 Jul 2020 10:52:11 +0000</pubDate>
      <link>https://dev.to/sumitkanchan4/list-view-row-formatting-discussion-board-1k14</link>
      <guid>https://dev.to/sumitkanchan4/list-view-row-formatting-discussion-board-1k14</guid>
      <description>&lt;p&gt;I have seen that in on-prem many of the users are using the discussion feature, but in SharePoint Online we do not have this feature. To give it a thought I have implemented somewhat similar functionality.&lt;/p&gt;

&lt;p&gt;Discussion board formatting gives the ability to showcase the discussion which is a page, under specific category which will make more sense to the discussion board. So, whatever category you want to create, create the folder for that and the corresponding pages beneath it.&lt;/p&gt;

&lt;p&gt;This discussion board formatted displays the banner image (not the thumbnail image) and showcases it in the front along with the title, description, Likes, Comments, Date of last edit, and the owner of the page(not the author).&lt;/p&gt;

&lt;p&gt;No new column needs to be created only the existing column needs to be added to the view. For that execute the below PnP code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt; &lt;span class="c"&gt;# If want to modify the existing view&lt;/span&gt;
 Set-PnPView &lt;span class="nt"&gt;-List&lt;/span&gt; &lt;span class="s2"&gt;"Site Pages"&lt;/span&gt; &lt;span class="nt"&gt;-Identity&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;Name of the view&amp;gt;"&lt;/span&gt; &lt;span class="nt"&gt;-Fields&lt;/span&gt; &lt;span class="s2"&gt;"Modified"&lt;/span&gt;,&lt;span class="s2"&gt;"_CommentCount"&lt;/span&gt;,&lt;span class="s2"&gt;"Description"&lt;/span&gt;,&lt;span class="s2"&gt;"ID"&lt;/span&gt;,&lt;span class="s2"&gt;"_LikeCount"&lt;/span&gt;,&lt;span class="s2"&gt;"BannerImageUrl"&lt;/span&gt;,&lt;span class="s2"&gt;"_AuthorByline"&lt;/span&gt;,&lt;span class="s2"&gt;"Title"&lt;/span&gt;

 &lt;span class="c"&gt;# If want to create a new view&lt;/span&gt;
 Add-PnPView &lt;span class="nt"&gt;-List&lt;/span&gt; &lt;span class="s2"&gt;"Site Pages"&lt;/span&gt; &lt;span class="nt"&gt;-Title&lt;/span&gt; &lt;span class="s2"&gt;"Discussion Board"&lt;/span&gt; &lt;span class="nt"&gt;-Fields&lt;/span&gt; &lt;span class="s2"&gt;"Modified"&lt;/span&gt;,&lt;span class="s2"&gt;"_CommentCount"&lt;/span&gt;,&lt;span class="s2"&gt;"Description"&lt;/span&gt;,&lt;span class="s2"&gt;"ID"&lt;/span&gt;,&lt;span class="s2"&gt;"_LikeCount"&lt;/span&gt;,&lt;span class="s2"&gt;"BannerImageUrl"&lt;/span&gt;,&lt;span class="s2"&gt;"_AuthorByline"&lt;/span&gt;,&lt;span class="s2"&gt;"Title"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;The above PnP code will add all the necessary columns to the view. Now paste the JSON in the formatter.&lt;/p&gt;

&lt;p&gt;Code can be found &lt;a href="https://github.com/SumitKanchan4/SP-List-Formatting/tree/master/Row%20Formatting/Discussion%20Board"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4xAsmGwW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/w1blo5b5hi76s0137kvu.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4xAsmGwW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/w1blo5b5hi76s0137kvu.gif" alt="Discussion Board"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hope this will help you.&lt;/p&gt;

&lt;p&gt;Happy Coding..!!&lt;/p&gt;

</description>
      <category>sharepoint</category>
      <category>listformatting</category>
      <category>microsoft</category>
      <category>rowformatting</category>
    </item>
  </channel>
</rss>
