Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

unavailable_after meta tag on robots tag

Avatar

Level 3

Dear All,

      I want to add unavailable_after(including date) meta tag on robots tags under page properties-->advanced tab--> Robots Tags drop down. Kindly help on this. please find the attachment.

rajathannasi_0-1702353930862.png

 

About unavailable_after meta tag:

The unavailable_after meta tag is a way to tell search engines that a web page should not be crawled or shown in the search results after a certain date and time. It is useful for pages that have an expiration date, such as event pages, temporary promotions, or news articles. The unavailable_after meta tag is a hint, not a directive, meaning that search engines can choose to ignore it and still crawl or show the page.

For example, if you want to tell search engines not to crawl or show your page after August 5, 2023, you can use this tag:

<meta name="robots" content="unavailable_after: 8/5/2023">

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @raja-thannasi 
1.Need to overlay and extend the Advance Tab dialog to add the type from dropdown from /libs/wcm/foundation/components/basicpage/v1/basicpage/tabs/advanced/items/column/items/seo/items/robotsTags/items

2. Add another field to get the date

3. Need to overlay and update head.html to add date along with type e.g. <meta name="robots" content="unavailable_after: 8/5/2023">



Arun Patidar

View solution in original post

2 Replies

Avatar

Community Advisor

Hello @raja-thannasi 

 

As per my knowledge, the feature isn't available OOTB.

You can however add a new field to Page component and use that value in meta tags in head.html 

 

Another conversation on adding custom meta tags:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/create-custom-meta-tag-in-... 


Aanchal Sikka

Avatar

Correct answer by
Community Advisor

Hi @raja-thannasi 
1.Need to overlay and extend the Advance Tab dialog to add the type from dropdown from /libs/wcm/foundation/components/basicpage/v1/basicpage/tabs/advanced/items/column/items/seo/items/robotsTags/items

2. Add another field to get the date

3. Need to overlay and update head.html to add date along with type e.g. <meta name="robots" content="unavailable_after: 8/5/2023">



Arun Patidar