Гость
30 Авг 2013 09:14

I ask, as I can only currently assign a module to a page, and there is no cobalt record 'page'.

I assume the way to do this is possibly through templates maybe?

If so, could I somehow create a 'position' in the template and then assign what modules I like to it?

Thanks,

D.

Последние изменения: 02 Март 2014


Sackgesicht VIP
Total posts: 1,636
30 Авг 2013 12:49

as I can only currently assign a module to a page, and there is no cobalt record 'page'.

One option could be the Advanced module manager of NoNumber.nl with the "Custom PHP" option.

See here

Another option would be MetaMod. See also the tutorial on how to detect a page here or the "recipes" here

as I can only currently assign a module to a page, and there is no cobalt record 'page'.

I assume the way to do this is possibly through templates maybe?

you might try NoNumbers Modules Anywhere for this ...


pepperstreet VIP
Total posts: 3,837
30 Авг 2013 16:08

could I somehow create a 'position' in the template and then assign what modules I like to it?

NoNumber's Modules Anywhere is not a bad idea... although it adds system stuff to your installation. And you need to keep it updated. For sure, it simplifies the work by entering the proper plugin syntax into your cobalt article template. Might even work in field values. As the name implies: Anywhere!

If you want to get a similar result by "coding", you can read a step by step article here:

http://kiteplans.info/2012/10/08/display-a-joomla-modules-position-template-override-component-modul-without-jdoc/


pepperstreet VIP
Total posts: 3,837
30 Авг 2013 16:35

Strange, but another coding solution is loading the core "loadposition" plugin!

http://joomla-tips.org/component-hacks/insert-a-plugin-or-a-module-anywhere.html


Гость
31 Авг 2013 09:24

Thankyou all. ;-)))))


Sergey
Total posts: 13,748
01 Сен 2013 04:17

There are also way to do it right in template.

Edit article template and add column there,

$modules =& JModuleHelper::getModules('customposition');

foreach ($modules as $module)

{

echo '<h3>'.$module->title.'</h3>';

echo JModuleHelper::renderModule($module);

}

Use as parameter your unique position name, And place your modules inside that position.

Работает на Cobalt