Adding Hreflang | Community
Skip to main content
Level 2
January 10, 2018
Question

Adding Hreflang

  • January 10, 2018
  • 2 replies
  • 2116 views

Hello,

I want to add hreflang for SEO in the page header. Using querybuilder is the only way to fetch all the pages from other edition/language ? since this will impact performance.

Any pointers on this is helpful.

Thanks,

Meenakshi

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

kautuk_sahni
Community Manager
Community Manager
January 10, 2018

Hi,

I am not very clear with your question,

If question is on performance of fetching such pages via Query builder API then the performance depends on type of query and amount of data to be searched.

I recommend using JCR API to query the AEM JCR.  However -- you can also use the QueryBuilder API. This API is a wrapper of the JCR API. Using either API  -- you can query for a result set and then process the result set and place the data in a report.

Or use Xpath acs-aem-samples/SampleQueryBuilder.java at master · Adobe-Consulting-Services/acs-aem-samples · GitHub

Reference good reads:- http://aempodcast.com/2015/aem-resources/aem-queries-xpath-jcr-sql2-query-builder-syntaxes/#.WlXeBkqWbRY

and

I hope this would be of some help to you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
Level 2
January 10, 2018

Thanks for the info.

The hreflang tag list is pretty big and need to be added dynamically. We have totally 26 * 3 eiditions which i have to iterate and check in which all editions the page exists and add the hreflang dynamically.