# Add dynamic block contents in category page In _backend > Catalog > Manage Categories_, we can configure a category page and put it on the main menu. The page contents are rendered in > app\design\frontend\base\default\template\catalog\category\view.phtml If we want to render an HTML table in which its data are taken from the database, we would follow these steps: 1. Create a custom block `mymodule/mytable` with template `mymodule/mytable.phtml`. 1. Whitelist our block for rendering in the frontend: backend > System > Permissions > Blocks 1. Create a CMS static block: backend > CMS > Static Blocks and set the _Content_ to render from our block with this directive: `{{block type="mymodule/mytable" template="mymodule/mytable.phtml"}}` 1. Create a subcategory: backend > Catalog > Manage Categories > Add a subcategory and in the _Display Setings_ tab, set the category attribute _Display Mode_ to _Static block only_ and _CMS Block_ pointing to our block. Voila, the HTML table is rendered under the menu we just created. However, every time the table in the database is updated, and because CMS blocks rendering are taken from the cache, we would need to refresh the cache. What if the table is constantly being updated, or there is an expiry condition on some data which shouldn't be included? In which case, we would want to render the HTML table dynamically. It's actually quite easy to do: 1. In the subcategory page in backend, set the _Description_ to this: `{{block type="mymodule/mytable" template="mymodule/mytable.phtml"}}`. 1. Continue on to the _Display Setings_ tab and set the _CMS Block_ to _Please select a static block ..._. 1. In our config file, either in the module `etc/config.xml` or in the `local.xml`, insert the following: ```xml cms/template_filter ``` That's it, the table is now rendered dynamically. There 's no need to create the CMS static block.