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 / Blog post add meta tags
Power Pages
Answered

Blog post add meta tags

(0) ShareShare
ReportReport
Posted on by 15

Hi,

I would like to add some meta tags per blog post (adx_blogpost) (Community Portal).

However, can't find how to add them in a standard or custom way.

Is this something that can be done through Power Pages?

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

    Hi @victorsolaya 

     

    In any of the portal types you can try the article from @OliverRodrigues 

     

    https://oliverrodrigues365.com/2020/06/14/power-apps-portals-adding-head-meta-tag/ 

     

    Should be applicable to the Community portal as well. 

     

    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.

  • victorsolaya Profile Picture
    15 on at

    Hi!

    it is applicable only for the main page, however you can’t retrieve the data from the blog post, as far as I know. That article was the first thing I tried, however couldn’t get it working

  • oliver.rodrigues Profile Picture
    9,398 Most Valuable Professional on at

    hi @victorsolaya that article would apply to your entire portal, I recently tested the code and it worked fine.. can you tell me the issue you were facing?

  • victorsolaya Profile Picture
    15 on at

    Hi @OliverRodrigues ,

     

    This works if it is static, however, I couldn't find the solution when we want it to be dynamically set.

    The example is, we have several blog posts such as ... https://org/blog/entry1, https://org/blog/entry2

    These entries have different attributes such as images, descriptions...blah, however couldn't find the way to get this data dynamically per entry, in order to generate the meta tags, such as partialurl and so on.

    Thanks!

  • Verified answer
    victorsolaya Profile Picture
    15 on at

    I have found how to do it with a blog post. Probably it is not the best way, however, if somebody has any other suggestions for the following code, please, feel free.

    First, as everybody mentioned in this thread, the head/bottom is needed.

    In the Head/Bottom content snippet we have the following code:

     
    {% include 'Meta Tags' %}


    Then, inside that Web Template we have the following:

    {% assign blogposts = blogs.posts | all %}
    {% for eachblogpost in blogposts %}
    {% if eachblogpost.url == {{request.path}} %}
    {% assign post = eachblogpost %}
    {% endif %}
    {% endfor %}

    Once you have assigned the post in the variable we have retrieved the attributes we may need from the adx_blogpost (we created some custom fields) and we are retrieving them with fetchxml liquid.

    Hopefully, somebody can get some light on this problem, or if you have some better practices, please, feel free as the iteration we are doing for the last I am totally convinced there is some other way, however, I couldn't find the solution.

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Thanks for sharing @victorsolaya 

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!

Leaderboard > Power Pages

#1
Suriyanarayanan V Profile Picture

Suriyanarayanan V 45

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 14 Most Valuable Professional

#3
Fubar Profile Picture

Fubar 6 Super User 2026 Season 1

Last 30 days Overall leaderboard