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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Creating Custom Blog D...
Power Pages
Unanswered

Creating Custom Blog Details Page (Liquid code)

(0) ShareShare
ReportReport
Posted on 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.

Categories:
I have the same question (0)
  • rimatos Profile Picture
    Microsoft Employee on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 49

#2
11manish Profile Picture

11manish 33

#3
Haque Profile Picture

Haque 28

Last 30 days Overall leaderboard