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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to add custom temp...
Power Pages
Unanswered

How to add custom template to a list element

(0) ShareShare
ReportReport
Posted on by 14

bishwaroopdey_0-1623098570690.png

I am brand new to Power Apps. This is the feature I want to implement. I have a courses table which stores n number of courses. There is a list on the portal website. Each list element is a course. How can I change the look of each list element to the one in the image?

Categories:
I have the same question (0)
  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Hi @bishwaroopdey ,

    For the styling of the Portal MS uses Bootstrap 3, so I would advise you to check how to work with it (for example on w3school). You can show a row that will have two columns and each column has a panel something like this:

    <div class="row">
     <div class="col-sm-6">
     <div class="panel panel-default">
     <div class="panel-body">
     <h1>Title</h1>
     <p>Details</p>
     <a href="">Show more</a>
     </div>
     </div>
     </div>
     <div class="col-sm-6">
     <div class="panel panel-default">
     <div class="panel-body">
     <h1>Title</h1>
     <p>Details</p>
     <a href="">Show more</a>
     </div>
     </div>
     </div>
    </div>
    

    Do you want you use a list/ entity list for rendering or you are ok with querying data directly on the page? If you want to use a list (especially if pagination is important to you) take a look at this official doc on how to render an entity list using liquid. You will need to replace the table part with custom code like above. If you ok with fetching data directly you can do it with fetchxml tag (see docs here) and then use output of the query in the custom code.

  • bishwaroopdey Profile Picture
    14 on at

    There is one issue with your solution. If I had an odd number of records, it will show one extra. How do I overcome that?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 70 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard