I am new to smarty and just getting familiar with it in the context of OXID. Was looking at the ‘oxid_include_dynamic’ function which is described in the manual for the single ‘file’ attribute but noticed its use with several additional attributes. A quick look at the code suggests that these extra attributes are used as variables in the template being included, with the name of each variable prefixed by the name of the ‘type’ attribute. For example, in the code
[{oxid_include_dynamic file=“dyn/mini_basket.tpl” type=“basket” extended=true testid=“RightBasket”}]
the variable $_basket_extended and $_basket_testid will be available for use in the mini_basket.tpl template.
However, I’ve noticed use of the ‘type’ attribute alone, such as with
[{oxid_include_dynamic file=“dyn/top_basket.tpl” type=“basket”}]
What is the purpose of the ‘type’ attribute in this case?