Contacts
The content of contacts, such as names, phone numbers, email addresses, etc., is created as a Content Fragment with the Contact model. The Contact Component allows you to display contact information from a Content Fragment on a page. Choose between two styles: card or page. In both styles, the information comes from the same source, i.e., the Content Fragment.
- Jens Henriksson
- President and CEO
-
President and CEO. M.Sc. Electrical Engineering, B.A. Economics. Employed since 1 October 2019. Born 1967.
How it works
-
Contacts as Content Fragments
Contacts are created as Content Fragments, which follow the structure defined by the Content Fragment Model for Contacts.
-
Contact Component
The Contact Component displays contact information from a Content Fragment based on the Contact model. Choose between two styles: card or page, with the flexibility to customise which fields are shown. For the card style, you can choose to display it with or without a background. Editors can easily manage displayed details by ticking or unticking checkboxes, and the card style can optionally include a link to a dedicated contact page.
Best practice
- Open the image under "Smart Crop" in Assets.
- Adjust the square crop format to ensure there is enough space above the person’s head for a proper circular crop.
- Publish the image. It may take a while before the changes appear on the live page.
- Have all metadata fields been completed? (Check under image properties)
- Has the expired date passed? (Check under image properties)
- Is the image published?
- Is the image stored in a folder with a cropping profile? Check under "Smart Crop", in Assets, if a crop has been generated according to the folder’s cropping profile.
- If no crop exists or some is missing, run "Reprocess Assets".
- Once the crop has been generated, publish the image. It may take a while before the changes appear on the live page.
How to create a contact in Content Fragments
Card style
- Jens Henriksson
- President and CEO
-
President and CEO. M.Sc. Electrical Engineering, B.A. Economics. Employed since 1 October 2019. Born 1967.
- jens.henriksson@swedbank.se
Card style with background color "Mist", displaying job title, email, short information and image.
- Jens Henriksson
- President and CEO
- jens.henriksson@swedbank.se
Card style with no background color, displaying job title, email, and image.
Card style with name link
- Jens Henriksson
- President and CEO
-
President and CEO. M.Sc. Electrical Engineering, B.A. Economics. Employed since 1 October 2019. Born 1967.
- jens.henriksson@swedbank.se
Card style with a "Rose" background colour, displaying the job title, email, short information, image, and name as a clickable link that redirects to the contact page with additional contact details.
Page style
The Contact Component with Page style should only be used on a dedicated page for that contact. In this example, we are illustrating that we have created a dedicated page for Jens Henriksson in the site structure, where we have added the Contact Component with Page style.
-
Jens Henriksson
- President and CEO
- The Group Executive Committee
-
President and CEO. M.Sc. Electrical Engineering, B.A. Economics. Employed since 1 October 2019. Born 1967.
- jens.henriksson@swedbank.se
-
In Swedbank as
President and CEO
Education
M.Sc. Electrical Engineering, Lund University
B.A. Economics, Lund University
Fil. Lic. Economics, Stockholm School of Economics and University of California, San DiegoWork experience
2019: President and CEO, Swedbank
2013-2019: President and CEO, Folksam
2010-2013: CEO, NASDAQ OMX Stockholm
2010: Global Head of Bank Relations, Swedbank
2010: Senior Advisor NASDAQ OMX, Rockville, MD, USA
2008-2010: Executive Director, International Monetary Fund (IMF), Washington, DC, USA
2007: Senior Policy Fellow, Bruegel, Brussels, Belgium
2002-2006: State Secretary, Swedish Ministry of Finance
1999-2002: Chief Economic Advisor, Swedish Ministry of Finance
1998-1999: Chief Political Advisor, Swedish Ministry of Finance
1994-1998: Political Advisor, Swedish Ministry of Finance
1993-1994: Columnist, Arbetet
- Navigate to correct folder in Content Fragments
- Click on Create in the top right corner and choose Content Fragment
- Choose Contact under the Content Fragment model drop down
- Add a title to the fragment. Use the name of the contact.
- Adding a description is optional
- Click Create and open
- If the fragment does not open you can choose it and click ”Open in new Editor” or click on the title.
- Add the appropriate information. You can choose later which information is going to be displayed on the page.
Link to page
If you want to link to a contact page with additional contact information, you should add the link to the page where you have added the Contact Component with
Page style. To be able to do this, we advise you to first create the page in the site structure.
- Click "Add content path" and paste the path, for exemple; /content/sites/swedbank/aem-help/en/home/working-with-aem/components/contacts/jens-henriksson
Image
- You can add an image to the contact, which will be displayed on both the Card and the Page.
- Click "Add Asset" and then "Browse Assets" to add an image. Use the browse or search function to find the correct image.
- Visit Images to learn more about uploading a portrait image, applying a cropping profile, and what to consider when uploading an image.
- Click publish now or schedule, depending on your choice.
In some cases you need a variation of a contact. The contact can have different positions in the organisation and maybe different titles depending on the position. Instead of creating a new contact fragment you can create a variation of the original.
Create a variation
- Go to the contact fragment and choose Open in new Editor
- Click on + next to Variations in the top left corner
- Give the variation a name
- Change the appropriate information
- Click Publish
You can create how many variation as you want, but why would you? Think about it ... do you really need so many variations?
In this example we created two variations, "CEO" and "President".
How to configure Contact Component
- Add the Contact Component to a page and click the configure icon to open the configuration dialog.
- Browse for the content fragment and click "Select".
Card
Default style is Card.
Backgound color
There are five background colors available for the Card style; default is none.
Display name field as link
This option is selected when contact information is displayed on a page. The name field (in card style) will be configured as a link, directing users to that page.
- Jens Henriksson
- President and CEO
-
President and CEO. M.Sc. Electrical Engineering, B.A. Economics. Employed since 1 October 2019. Born 1967.
- jens.henriksson@swedbank.se
-
Download image
- Adjust the fields displayed on the card, click Done and publish.
- Start by creating a page. In this example we are creating a page for Jens Henriksson in the site structure.
- Add the Contact component on that page.
- Configure the component by browsing for the content fragment.
- Default style is Card. Change to Page under Style.
- Adjust the fields displayed on the page and click Done and publish.
- Click the Fields option to select the information to display on the card or page. By default, all information is selected.
- To customise the display, uncheck the boxes for any information you want to exclude.
- Select the options appropriate for a contact card, as the card design is not intended to display all information.
Choose fields carefully
If a field is selected but no information exists, nothing will show. However, added information will appear later if the field remains selected.
Deselect unnecessary fields to prevent unintended displays, e.g., the CEO’s email address.
By default, all information is selected:
Example of customization:
- Add a Contact component to the page
- Choose the appropriate variation under Content Fragment Variation
Contact fragment variation works the same for Card and Page style.
Variation examples:
Content Fragment Variation "Master":
- Jens Henriksson
- President and CEO
Content Fragment Variation "President":
- Jens Henriksson
- President
- The Group Executive Committee
Content Fragment Variation "CEO":
- Jens Henriksson
- CEO
- Swedbank AB