Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-108818

Map fields with SEO meta tags for display pages

    Details

      Description

      As a marketer creating a display page

      I want to decide which fields will be mapped to the SEO fields

      so that the meta data is field with the information I want.

       

      Title should appear mapped to the asset title by default

      Description should appear mapped to the asset description by default

       

      Note: to enable it: 

      echo "enabled=B\"true\"" > ../bundles/osgi/configs/com.liferay.layout.seo.web.internal.configuration.FFMappingInputConfiguration.config

       

      Acceptance criteria

      Given a display page

      When a user accesses the configuration

      Then she will find a section for SEO

       

      Given a display page

      When a user accesses the SEO configuration and selects the title

      Then she will be able to select a field from the list of the asset fields compatible with the title 

       

      Given a display page

      When a user accesses the SEO configuration and selects the description

      Then she will be able to select a field from the list of the asset fields compatible with the description

       

       

      Given a display page with mapped fields

      When a user accesses a page displaying a web content/document/blog entry

      Then title and description will be filled with the content stored in the mapped fields

       

      Design

      Figma Mockup

      Interactions:

      • Hovering the map button will show a tooltip, the action should be "Map" (to keep consistency with the page builder)
      • Clicking the map button at the right part of the input will trigger the Mapping component, allowing to select the content in both the inputs.
      • The inputs must be set to read only so it won't be possible to write inside them directly.
      • When there is a content selected, the map icon will change color to $purple (from clay) to show that there is a mapped content (same as the builder). **In our case we'll always provide content mapped by default, so the button should be $purple from the beginning.

      Note: the mapping component was designed/developed by the Echo team for the page builder.
      Ideally, it should be the same component with the same functionalities as for the builder, allowing to select as Source the Basic Web Content (Default), or a Specific Content.
      Once chosen the Source, it will be possible to select the single Fields.

      Test Scenarios

      ID Test Priority Test Scenarios Covered by Frontend? Test to add
      11.1 5 The HTML Title field is mapped by default when configuring the display page YES**  SEO#MapWebContentToDisplayPage 
      11.2 3 Map icon for HTML Title is $purple YES**  SEO#MapWebContentToDisplayPage 
      11.3 5 The Display Description field is mapped by default when configuring the display page YES**  SEO#MapWebContentToDisplayPage 
      11.4 3 Map icon for Description is $purple  YES** SEO#MapWebContentToDisplayPage 
      11.5 4 The MapPanel is opened when the map button is clicked  YES** Manual 
      11.6 4 The MapPanel is closed when it is open and the map button is clicked YES**  Manual 
      11.7 4 The MapPanel is closed when it is open and click outside the panel YES**  Manual  
      11.8 5 Title is filled with the mapped web content title when the display page displays a web content YES**   SEO#MapWebContentToDisplayPage
      11.9 5 Description is filled with the mapped web content description when the display page displays a web content  YES**  SEO#MapWebContentToDisplayPage
      11.10 5 Title is filled with the mapped document title when the display page displays a document  YES** SEO#MapDocumentToDisplayPage
      11.11 5 Description is filled with the mapped document description when the display page displays a document YES**  SEO#MapDocumentToDisplayPage 
      11.12 5 Title is filled with the mapped blogs entry title when the display page displays a blogs entry YES**  SEO#MapBlogsToDisplayPage 
      11.13 5 Description is filled with the mapped blogs entry description when the display page displays a blogs entry  YES** SEO#MapBlogsToDisplayPage 
      11.14 5 Able to select a field from the list of the asset fields compatible with the title YES**  SEO#MapWebContentToDisplayPage 
      SEO#MapDocumentToDisplayPage
      SEO#MapBlogsToDisplayPage  
      11.15 5 Able to select a field from the list of the asset fields compatible with the description YES**  SEO#MapWebContentToDisplayPage 
      SEO#MapDocumentToDisplayPage
      SEO#MapBlogsToDisplayPage  

      No backend tests for this story.

       

      YES**: Our frontend tests ensure that we applied this logic in general no in these particular cases.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              austin.chiang Austin Chiang
              Reporter:
              pablo.agulla Pablo Agulla
              Engineering Assignee:
              SE Support
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master