39 Posts
dazzafact
9 years ago
Topic

Hello there!

How do i get the current module parameters in a Template - i need e.g. the current module-position in a Module.

Anybody Know?

Get a VIP membership
4229 Posts
Kadministrator
9 years ago
2
Level 1

This is done by using joomla functions:

$module = JModuleHelper::getModule('mod_headlineticker');
$moduleParams = new JRegistry($module->params)
39 Posts
dazzafact
9 years ago
1
Level 2

ok this :

	$module = JModuleHelper::getModule('mod_cck_list');

	$moduleParams = new JRegistry($module->params);

	print_r($module->position);

will show  me a Module position, but if i have mutliple modules it show me everytime the position of the first Module.

4229 Posts
Kadministrator
9 years ago
0
Level 3

Function signature for module helper is "public static function &getModule($name, $title = null) ", so you can add module title as second parameter to get the exact one

Get a VIP membership