Need help making your time within Tridion more effective and produce better results? You could probably use a few tips and tricks. In this new blog we've set up, we will be adding new tips and tricks for working within Tridion to make the most out of our implementation.
Creative commons photo credit: Dai Williams.
Featuring lists of recent article items on Flex Layout pages
6/27/2018 11:19:33 AM
Michael Tangen
Adding Article Spotlights to your Flex Layout pages is quick and easy! Now you have even more ways to display your article spotlights, which we've highlighted in one of our Development Updates articles. You can also check out sample article spotlights page to give you an idea of what they look like in their default state. Both of the templates labeled "Article Spotlight List" can be used in any Flex Row column — in any column configuration along side other columns or even all by itself. However, both of the Article Spotlight List Row templates require their own row. Later on in this article I'll cover this in more detail. But first, let's cover what you need to do to get started.
If you already have an article list out there, you're almost set! If not, check out our
In the Article List component there are two fields in particular that I want to draw your attention to: Spotlight Headline and Spotlight Number. The Spotlight Headline field gives you the option to precede your list of articles with a headline (defaults to an H2 heading). By no means are you required to use the Spotlight Headline, but sometimes it's useful to give context for your non-sighted users for that list of article items.
The other field is Spotlight Number — this is the number of article items that will be listed out on your Article Spotlights. Typically people list out between three to five articles in their spotlights — any more than that and you're starting to take up valuable real estate.
You also have additional options, including the Default Sort Field and Default Sort Direction fields which define by what and how you wish to display your article list. Most article lists will sort by Date and in Descending order.
IMPORTANT: You can only have one Article List component for your article list/detail page and wherever you want your article spotlights to appear. You cannot share multiple Article List components between the same list and expect the links to resolve in the same location. Simply put: if you want your article links to work, only one Article List component per Article List.
There are two Article Spotlight templates that require their own row (i.e. they cannot share a row with another component) — those two templates are Article Spotlight List Row (with thumbnails) and Article Spotlight List Row (feature image and list). You still should include a Flex Row Configuration component for each Article Spotlight List Row component that you include on the page, which allows you to set a contextual headline along with your preferred background color.
You also will need to select the following layout configuration: [ - - - - ] — a single column layout that spans all four columns. After you've set that value, along with the aforementioned items, you'll be good to go. Make sure that your Flex Row Configuration component precedes your Article Spotlight List Row component.
Here are a few use cases and some tips for each of the four Article Spotlight templates, ideas to help trigger ways in which you might use these templates to display your article lists.
For more ideas, consider coming to our User Group meetings to brainstorm with your fellow users or ask any of our SDL Web (Tridion) developers for some more ideas on how you might use these templates.
We've found a scenario where links in your article spotlight list do not resolve to the article detail page, and instead point to the current page. This bug is a bi-product of the changes made to the Component Templates that are used by the Article Spotlights. Fortunately the fix is simple — republish all of your pages that are using the Article Spotlight List component template and then republish the page using the new Article Spotlight templates. Re-publishing those pages will force them to be updated with the right code and will also set their linking priority to the correct value. That's all you need do.
If you have any questions about the new templates or how you might best use them, reach out to us and we will gladly lend you a hand. If you need help implementing a new article list or implementing these templates, please submit a Work Order Request detailing what you need done along with your requirements and other details necessary to complete the work. If something isn't working right, submit an Incident and we'll see what we can do to resolve the issue.
General
Tips
New Features
Help