Configure favorite content type on Mobile

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 1 minute to read
  • Configure the favorites option on Mobile to help employees personalize the content and easily access the content.

    Before you begin

    Role required: portal admin and sp_admin

    Procedure

    1. Navigate to All > System Mobile > Mobile UI > Mobile.
    2. Edit the mobile UI rules to suit your needs.
      See Mobile UI Rules and configure the following field values.
      Table 1. Mobile UI Rules
      Field Description
      Condition For the Condition field, specify text_02=sysId, where sysId indicates the the sys_id of the new Favorite Content Type record. This rule applies only to the favorite items that belong to this content type.
      Parent My favorites (without image)
      Parent Table Mobile View
      Trigger OnLoad
      Table 2. Mobile UI Rule Action
      Field Description
      Target text_01
      Operation Set UI Style
      Value Example JSON{ "TextDecorator":{ "Type": "Font", "FontName": "now-mobile-icons", "Value": "f15c", "FontColor": "#333E3F" } }

      When the content configuration associated with this content type can have images to render on the favorite card, create another record with the parent value as My favorites (with image)

    3. Create a function and function instance to suit your needs.
      See Create a function and function instances and configure the following field values.
      Table 3. Mobile Function
      Table Favorite (App Use) [sn_ex_sp_st_favorite]
      Conditions Add appropriate conditions so that this function only applies on desired content types.
      Parent Set the table name to sys_sg_master_item and document to My favorites (without image).

    Result

    The content type display is configured for Mobile.