I come across the following code in demo site on home.html
Code: Select all
<div id="banners">
<a th:href="@{${contentItem['targetUrl']}}"><img th:src="@{${contentItem['imageUrl']}}" alt="Buy One Get One" /></a>
</div>
What I know above code is that 'ContentItem' is a map and 'targetUrl' is the key and contentItem stored in Model object returns by the controller.
But I checked that in model object only four objects are stored namely category, products, facets, results. I checked this by putting a breakpoint in BroadLeafCategoryController.
My question or doubt is where the contentItem map stored? and when it is stored? Similar to the contentItem I also faced the code related cart object and customer object as mention below
1. th:text="${cart.itemCount}
2.th:text="${customer.firstName}
I debug these but not found from where these are accesed on html page by thymleaf engine. Means where these objects are stored.
Please also tell me the following custom tag details
<blc:content/> what is the purpose of this tag and where its crossponding code(class)