We have now seen quite a few recipes on how to create web items and place them at different places in the UI. But in all the cases, we knew what links we needed. How about creating these links on the fly?
In this recipe, we will see how to create web items dynamically.
Create a new web item, Favourites, in the system's top navigation bar, as discussed in the previous recipe.
Let's assume we want to create some links in the system's top navigation bar. We have seen the same thing in the previous recipe, but that works only when we know the links in advance. Let us consider a new scenario where the user sees different sets of links when he/she is logged in and not logged in! Here the links ...