I have a blocklist with a block called articleRow. On the start page i want to use this block multiple times and display different articles in each block. Now how could i provide the controller where i fetch the data with the already used articles? Is there anything like a global state which i could fill? Before we always worked with ViewData and passed it everywhere we needed and filled it up. But i dont think this is the cleanest way to do it.
m
Matt Wise
08/11/2023, 9:09 AM
Hi, why not have one block that shows multiple articles?
p
PascalEugster
08/11/2023, 9:12 AM
This is the start page. One block "Artikel" block can show multiple articles but this block is also used down below. And the block should always show the newest articles in descending order. Now the second block should know which articles where already used.
PascalEugster
08/11/2023, 9:12 AM
PascalEugster
08/11/2023, 9:27 AM
Is this possible at all with blocks?
m
Matt Wise
08/11/2023, 9:50 AM
I think you could use ViewData or TempData Request cache would also be an option