This isn't technically a Glass specific question but I'm hoping someone might be able to provide me with a solution, Glass or otherwise.
I have the following setup:
Promotion Module View Rendering:
<div class="promo-module" style="background-image: url('/~/media/images/cards/promotions/background.png');">
@Html.Sitecore().DynamicPlaceholder(Model.ItemsPlaceHolder)
Promotion Card View Rendering:
<div class="promo-card">
...
</div>
The flow for this is that users add a promotion module to a page and then add a promotion card to the placeholder within the module rendering. The module rendering then needs to extract the background from the promotion card (which is an item stored in the child placeholder).
How do I access these items from the parent module view rendering?
I realize that another solution for this would be to set the item AT the module rendering itself but given the way we have our modules/cards configured that isn't as simple as that and I'd prefer to not rework things to support this that way right now unless absolutely necessary.
Thanks in advance!
-K