Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Get logo sub-sites with Display template OR CQWP.

$
0
0

Hi Guys,

I work on a web part content search with 2 custom template item display and control I display subsites with CQWP but I was unable to display the logo of each sub-sites.

the issue is that I do not know if I have to display on its template or with CQWP and how I can call these logo.

Query(CQWP):

path:"https://company.sharepoint.com/sites/coll"   contentclass:STS_Web   -Title:Espace  WebTemplate=CMSPUBLISHING

CODE ( DisplayTemplate-ITEM)

<body><script>
    $includeLanguageScript(this.url, "~sitecollection/_catalogs/masterpage/Display Templates/Language Files/{Locale}/CustomStrings.js");</script><div><!--#_
    var item = ctx.CurrentItem;
    var date = new Date(item.Created);
    var formatdate = date.getDate() + "/" + (date.getMonth() + 1) + "/" + date.getFullYear();

 _#--><div class="bloc_grille chantier"><div class="content_text"><a href="_#= item.Path =#_" title="_#= item.Title =#_"><span>_#= item.Title =#_</span></a><div class="ms-descriptiontext">_#= formatdate  =#_</div></div></div></div></body>
Thanks

Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>