Content Blocks Blogs field

I am using Content Blocks and this is a field I am using to display my blog posts. Currently ‘the date published’ is displayed and I would like to know if I am able to remove that. Can anyone see something useful in the Code for the blog post field?

cbField>
	<id>102</id>
	<parent>0</parent>
	<parent_properties></parent_properties>
	<input><![CDATA[chunk]]></input>
	<name><![CDATA[Blog Posts]]></name>
	<description><![CDATA[]]></description>
	<content_desc></content_desc>
	<sortorder>32</sortorder>
	<category>0</category>
	<icon><![CDATA[gallery]]></icon>
	<icon_type><![CDATA[core]]></icon_type>
	<template><![CDATA[<div class="posts">
	[[!blogFilter:is=`search`:then=`
	    [[!SimpleSearch? 
	        &ids=`[[+container:is=``:then=`[[*id]]`:else=`[[+container]]`]]` 
	        &exclude=`[[+container:is=``:then=`[[*id]]`:else=`[[+container]]`]]`
	        &showExtract=`1`
        	&highlightTag=`strong`
        	&minChars=`2`
        	&noResultsTpl=`no-results`
	    ]]  
	`]]
	
	[[!blogFilter:is=`tag`:then=`
		[[!getResourcesTag? 
			&parents=`[[+container:is=``:then=`[[*id]]`:else=`[[+container]]`]]` 
			&tpl=`ArticleRowTpl`
			&tagKey=`blog-tags`
			&tpl=`ArticleRowTpl`
            &showHidden=`1`
		    &includeContent=`1` 
		    &includeTVs=`1`
		    &processTVs=`1`
		]]
	`]]
	
	[[!blogFilter:is=`cat`:then=`
		[[!getResourcesTag? 
			&parents=`[[+container:is=``:then=`[[*id]]`:else=`[[+container]]`]]` 
			&tpl=`ArticleRowTpl`
			&tagKey=`blog-categories`
            &showHidden=`1`
		    &includeContent=`1` 
		    &includeTVs=`1`
		    &processTVs=`1`
		]]
	`]]
	
	 [[!blogFilter:is=`arc`:then=`
	    <!--Archives-->
	    [[!getResources? 
    	    &parents=`[[+container:is=``:then=`[[*id]]`:else=`[[+container]]`]]` 
    	    &tpl=`ArticleRowTpl` 
    	    &showHidden=`1`
    	    &includeContent=`1` 
    	    &includeTVs=`1`
    	    &processTVs=`1`
    	    &where=`[[!blogArchives]]`
    	    &limit=`[[+limit:default=`0`]]`
    	]]
	`]]
	
	[[!blogFilter:is=`false`:then=`
	    <!-- Posts-->
		[[+paginate:is=`yes`:then=`
	        [[!getPage? 
	            &element=`getResources` 
	            &parents=`[[+container:is=``:then=`[[*id]]`:else=`[[+container]]`]]` 
	            &tpl=`ArticleRowTpl`
	            &showHidden=`1`
    		    &includeContent=`1` 
    		    &includeTVs=`1`
    		    &processTVs=`1`
    		    &tvFilters=`blog-tags==%[[+tagged:replace=`,==%,%`]]%,blog-categories==%[[+category:replace=`,==%,%`]]%`
    		    &limit=`[[+limit]]`
	        ]]
	        <div class="paging"><ul>[[!+page.nav]]</ul></div>
	    `:else=`
	        [[!getResources? 
    		    &parents=`[[+container:is=``:then=`[[*id]]`:else=`[[+container]]`]]` 
    		    &tpl=`ArticleRowTpl` 
    		    &showHidden=`1`
    		    &includeContent=`1` 
    		    &includeTVs=`1`
    		    &processTVs=`1`
    		    &tvFilters=`blog-tags==%[[+tagged:replace=`,==%,%`]]%,blog-categories==%[[+category:replace=`,==%,%`]]%`
    		    &limit=`[[+limit:default=`0`]]`
    		]]
	    `]]
	`]]
</div>
]]></template>
	<properties><![CDATA[{"chunk":"35","custom_preview":"<span><\/span>"}]]></properties>
	<availability><![CDATA[[]]]></availability>
	<layouts><![CDATA[]]></layouts>
	<times_per_layout>0</times_per_layout>
	<times_per_page>0</times_per_page>
	<settings><![CDATA[[{"reference":"container","title":"Blog Container ID","fieldtype":"textfield","default_value":"","image_source":"","image_directory":"","image_file_types":"","image_thumbnail_size":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"limit","title":"Limit","fieldtype":"textfield","default_value":"","image_source":"","image_directory":"","image_file_types":"","image_thumbnail_size":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"paginate","title":"Paginate","fieldtype":"select","default_value":"no","image_source":"","image_directory":"","image_file_types":"","image_thumbnail_size":"","fieldoptions":"no==No\nyes==Yes","field_is_exposed":"modal"},{"reference":"tagged","title":"Show Tag(s)","fieldtype":"textfield","default_value":"","image_source":"","image_directory":"","image_file_types":"","image_thumbnail_size":"","fieldoptions":"","field_is_exposed":"modal"},{"reference":"category","title":"Show Category(s)","fieldtype":"textfield","default_value":"","image_source":"","image_directory":"","image_file_types":"","image_thumbnail_size":"","fieldoptions":"","field_is_exposed":"modal"}]]]></settings>
	<Children >
		
	</Children>
	<Category >
		
	</Category>
</cbField>

I’m not really sure what all this code does, but the markup for a blog post seems to be in the chunk “ArticleRowTpl”. You probably have to make the change there.

1 Like

you are very wise thank you.

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.