Adding the Site’s First Web Content
Now that you have structures and templates for two new types of content, you’re ready to add some articles. Here, add content to the site for both of these types (Event and FAQs).
The site administrator doesn’t add individual content articles. Log out and log back in as your site’s content manager, Olivia O’Neal, before you begin.
Add an Event Article
First, add an event article to announce the Clarity site going live soon.
-
Navigate to the Site Menu () → Content & Data → Web Content.
-
Click Add () → Event.
-
At the top of the page, title the article
Clarity Site Going Live Soon
. -
In the Summary field, enter this text:
The Clarity Vision Solutions site is under construction, but it will be going live soon!
-
In the Body field, enter this text:
The Clarity site is almost ready to go live! For now, it's currently undergoing construction and maintenance. Some features of the site may not be fully in place yet. If you have any questions about what's missing, ask us at hello@clarityvisionsolutions.com. Thank you!
-
Click Select beside the Banner Image field, and choose the Clarity logo (
clarity-logo.png
) you used for the site’s header and footer in the previous module. -
Click Publish at the top of the page.
You’re brought back to the Web Content page, and now you have an Event article. Next, create an article to answer some frequently asked questions.
Create a FAQs Article
-
While on the Web Content page, click Add () → FAQs.
-
At the top of the page, title the Article “Clarity Site FAQs”.
-
Click Add () at the top-right of the Question Group to create two more sets of questions and answers (for 3 total).
-
In the first Question field, enter this question:
I bought my glasses from Clarity previously, but I can't find them on the site. Is Clarity no longer selling them?
-
In the first Answer field, enter this answer:
They might only be sold through other retailers now. Try checking our partner websites!
-
Enter this in the second Question field:
Where can I find information about new products or changes at Clarity?
-
Enter this in the second Answer field:
We will be making a news announcement for any major changes or recalls with Clarity products. Keep an eye on our Announcements page!
-
Enter this in the third Question field:
I found a link that isn't working.
-
Enter this in the third Answer field:
The site is still undergoing maintenance. Please email hello@clarityvisionsolutions.com with a screenshot of where you found the broken link, and we'll fix it as soon as we can. Thank you!
-
In the Properties menu on the right side of the screen, ensure that the second template you added, Collapsible FAQs, is selected.
-
Click Publish at the top of the page.
Now you have a new article for each of the web content structures you’ve added.
Import More Articles
You can populate your site with more content by importing it.
-
Download and unzip the LAR file with the other web content articles:
curl https://resources.learn.liferay.com/courses/latest/en/liferay-s7z9.zip -O
unzip liferay-s7z9.zip
-
Still on the Web Content page, click Options () at the top right corner of the page and select Import/Export.
-
In the modal that opened, select the Import tab.
-
Click Select File, select the
web-content-articles.lar
file you downloaded and unzipped, and click Continue. -
Use the default settings and click Import.
To learn more about the import process and its options see Exporting/Importing Widget Data that has a similar import process.
-
Once the import process is complete, close the modal. All the web content articles, structures, and templates created in this module are imported.
Next, add templates to show your events and FAQs on specific display pages.