web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : ZzOZR2L/o64LPIqHr2jcd/
Power Pages - Power Apps Portals
Unanswered

Creating Custom Blog Details Page (Liquid code)

Like (0) ShareShare
ReportReport
Posted on 27 Aug 2020 08:04:26 by 84

Hi

I have created custom web template which retrieve all the blog post and display on the web page.

Now I want when user click on any of the blog post that blog post should get open. For Blog Post we don't want to open out of the box blog post detail page we want to create custom page for that and want to show detail.

 

Any idea how this can be achieve? 

 

Liquid code which I have written to render all the blog post is:

 

{% fetchxml res %}
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
 <entity name="adx_blogpost">
 <attribute name="adx_name" />
 <attribute name="adx_published" />
 <attribute name="adx_partialurl" />
 <attribute name="adx_date" />
 <attribute name="adx_blogid" />
 <attribute name="adx_authorid" />
 <attribute name="adx_blogpostid" />
 <attribute name="adx_copy" />
 <attribute name="new_url" />
 <attribute name="adx_summary" />
 <attribute name="adx_commentpolicy" />
 <order attribute="adx_name" descending="false" />
 <filter type="and">
 <condition attribute="new_account" operator="eq" value="{{user.parentcustomerid.id}}" />
 </filter>
 </entity>
</fetch>
{% endfetchxml %}

 {% for result in res.results.entities %} 
 <div name="content" style="padding: 15px 30px 0 0; clear: both;">
 <h5 style="color:red; font-weight:bold"> {{ result.adx_summary }} </h5>
 {% assign summary = result.adx_summary %}
 	<div name="image" style="width: 300px; height:146; float: left; padding: 0 0 0 15px;">
 	 <img src="{{ result.new_url }} height="150" width="150" >
 {% assign image = result.new_url %}
 	</div> 		
 	<div name="main-content" style="; margin-left: 300px; max-width: 800px;">
 		<p> {{ result.adx_copy | truncate: 500 }} </p>
 {% assign content = result.adx_copy %}
 		<br /> 			
 	</div> 		
 	<div class="clear"></div>
 </div> 
 {% endfor %}

 

 

and when user click on any of the post detail of that post should get open on another page.

I have the same question (0)
  • rimatos Profile Picture
    on 28 Aug 2020 at 15:46:26
    Re: Creating Custom Blog Details Page (Liquid code)

    Hi @vaishalivyas1 ,

     

    Are you attempting to perform this in a Power Apps canvas app or in other Microsoft Solution? would it be possible to give some additional insight on how you are trying to achieve this?

    If you are using Power App portals you might want to take a look into our training on Building custom Power Apps portals web templates, as it can provide you with some additional insights.

     

    Regards,

    ricardo

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Pages

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 45 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 44 Super User 2025 Season 2

#3
Jerry-IN Profile Picture

Jerry-IN 40

Last 30 days Overall leaderboard
Loading complete