Subpages in Custom Aparna Modules?
Design and Skin Customization
an Aprana created module is the same as a module created from scratch. You can download it to your IDE and build upon it as if you'd created the whole thing.
Take a look in your other modules in the index.php file for functions called view_(module name)_default() for examples.
If you have it, the jrFeed module is a good structure.
function view_jrFeed_default($_post, $_user, $_conf)
{
return jrCore_parse_template('rss.tpl', $_rt, '(your module name here)');
}
So then you can do all your processing in php for whatever you want out to the template.
-----------
Another way to do it would be in the index.tpl file for your module. you can put in a {debug} to see what variable returns 'local' mysite.com/news/local and pass that in to your list function:
{jrCore_list module="dnNews" order_by="_item_id numerical_desc" pagebreak="10" page=$_post.p pager=true search1="news_category = $option"}
or perhaps a check first:
{if strlen($option) > 2}
{jrCore_list module="dnNews" order_by="_item_id numerical_desc" pagebreak="10" page=$_post.p pager=true search1="news_category = $option"}
{else}
{jrCore_list module="dnNews" order_by="_item_id numerical_desc" pagebreak="10" page=$_post.p pager=true}
{/if}
thats a couple of different ways to do it. There might be others but those are the first that spring to mind.