Single item display
For example you want to have a page with list of coffee recipes. And you have 4 Flexicontent items with them. You can substitute their content on catalog page, just by inserting {flexi:id} into your article.
Here is how you are to do it in Joomla backend on article create or edit:
And here is how you site visitors will see it:
You may want to show only into (link in this example) on the catalog page and full text on the item's page. You can control it in your Flexicontent template in many ways, one of them is checking current displayed article's ID for example.
Dynamic items list display
You can show a list of items generated dynamicly. Just use SQL request to query all IDs of com_content items by some condition. You can use all SQL features like JOIN, ORDER, LIMIT. For example you want to show on homepage the newest 3 blog articles (Flexicontent type blog-post
). You are to modify your homepage article like this:
So the homepage visitors see becomes like:
Also you can use pager adding this parameters like this: flexisql(10,someclass):... Where 10
is items count on one page, someclass
is CSS class applied to pager. Do not forget to remove LIMIT construction from your SQL!