# Type attribute in oxid smarty extensions

**URL:** <https://forum.oxid-esales.com/t/type-attribute-in-oxid-smarty-extensions/46559>\
**Category:** English forums\
**Tags:** basics\
**Created:** [October 27, 2010, 9:05pm UTC](https://forum.oxid-esales.com/t/type-attribute-in-oxid-smarty-extensions/46559 "2010-10-27T21:05:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![spurvis](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/s/8491ac/32.png) [@spurvis](https://forum.oxid-esales.com/u/spurvis)\
**Post date:** [October 27, 2010, 9:05pm UTC](https://forum.oxid-esales.com/t/type-attribute-in-oxid-smarty-extensions/46559/1 "2010-10-27T21:05:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![spurvis](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/s/8491ac/32.png) [@spurvis](https://forum.oxid-esales.com/u/spurvis)\
**Post date:** [October 29, 2010, 3:07pm UTC](https://forum.oxid-esales.com/t/type-attribute-in-oxid-smarty-extensions/46559/2 "2010-10-29T15:07:19Z")

</div>

…Hello? 😕

Is this question not relevant on this thread? Should I post elsewhere?

Previous thread mentions that English posts may have to be ‘pushed’ to get a response… is this considered pushing or should I do something else?

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![marco.steinhaeuser](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/marco.steinhaeuser/32/1832_2.png) [@marco.steinhaeuser](https://forum.oxid-esales.com/u/marco.steinhaeuser)\
**Post date:** [October 29, 2010, 3:39pm UTC](https://forum.oxid-esales.com/t/type-attribute-in-oxid-smarty-extensions/46559/3 "2010-10-29T15:39:04Z")

</div>

Hi spurvis,

hey, you don’t push in forums 😃  
I just had a look at it and found this Smarty extension:  
[http://svn.oxid-esales.com/tags/CE-4.4.4-30554/eshop/core/smarty/plugins/function.oxid\_include\_dynamic.php](http://svn.oxid-esales.com/tags/CE-4.4.4-30554/eshop/core/smarty/plugins/function.oxid_include_dynamic.php)

On line 56, the type attribute is defined:

```auto
        if ( array_key_exists('type', $params) ) {
            $sPrefix.= $params['type']."_";
        }

```

I cant see any usage without a parameter. So I reckon it is a rudiment or something “dirty”.

Regards

---

<div class="post-metadata">

**Author:** ![marco.steinhaeuser](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/marco.steinhaeuser/32/1832_2.png) [@marco.steinhaeuser](https://forum.oxid-esales.com/u/marco.steinhaeuser)\
**Post date:** [October 29, 2010, 4:30pm UTC](https://forum.oxid-esales.com/t/type-attribute-in-oxid-smarty-extensions/46559/4 "2010-10-29T16:30:56Z")

</div>

Hi again,

caught just a short hint, didn’t look by myself yet:  
Have a look at the method oxcache::\_processDynContent

Regards

---

<div class="post-metadata">

**Author:** ![spurvis](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/s/8491ac/32.png) [@spurvis](https://forum.oxid-esales.com/u/spurvis)\
**Post date:** [November 1, 2010, 4:22am UTC](https://forum.oxid-esales.com/t/type-attribute-in-oxid-smarty-extensions/46559/5 "2010-11-01T04:22:06Z")

</div>

Thks, I will have a look.

---

<div class="post-metadata">

**Author:** ![system](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/system/32/4245_2.png) [@system](https://forum.oxid-esales.com/u/system)\
**Post date:** [July 13, 2026, 7:38pm UTC](https://forum.oxid-esales.com/t/type-attribute-in-oxid-smarty-extensions/46559/6 "2026-07-13T19:38:04Z")

</div>

Closed on July 13, 2026, 7:38pm UTC


