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 refer image in ...
Power Pages
Unanswered

How to refer image in web-template through visual code

(0) ShareShare
ReportReport
Posted on by 9

Hi,

 

tried referring an uploaded image in web-template but its not showing up in a page, did cache refresh in browser still doesn't show up, is my reference path right?, or am i missing something, 

 

and do i need to use only .png images in web templates, do other formats like .gif and .jpeg allowed?

Sannadi77_0-1682515495367.png

Sannadi77_1-1682515574548.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @Sannadi77 

     

    Try this way 

     

    In portal management: 

     

    1.  Under Content  Web Files > Hit New 

    2. Provide the name 

    3. Make sure your parent page is set to "Home" 

    4. Enter the partial URL just like the Name field. 

     

    Screenshot below for reference 

     

    ragavanrajan_0-1682904284870.png

     

    To refer the image in the web template or in your HTML . Below is the reference 

    ragavanrajan_1-1682904809240.png

     

    Either you can do an absolute path like my screenshot or do a relative path like "\image.jpg" 

     

    Note: Any image file formats are allowed


    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

  • Sannadi77 Profile Picture
    9 on at

    Thanks for the response, but found the solution by trail and error approach, appreciate your help, accepted your answer

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
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard