Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Multiple objects in a module - create positions

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hello,

I have 4 categories of items. I'd like to have 4 different accordion objects in one module.

Questions: 1. Can I do this?
2. How do you create new positions in a modules so you can use
{loadposition my_positionName} to activate the object?

Thanks
  • Ray Humphrys's Avatar
  • Ray Humphrys
  • 12 Month basic
  • 9 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Ray,

For 4 different accordion you would need either 4 zentools modules

You could select from 4 different categories in one module
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
With loadposition in an article

You would add the module position to the position box

my_positionName

Assign it to all pages (this isn't strictly necessary but can avoid confusion)

and then in the article

{loadposition my_positionName}
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
If you want to load other modules in a single module

It is the same process but in the custom html you need to enable the prepare content button
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Tried that. The effect I am looking for is this:

First category ...a literal string
{loadposition my_first_accordion}

Second category ...a second literal string
{loadposition my_first_accordion}

and so on. One descri[tive string, followed by an accordion with category stuff in it
  • Ray Humphrys's Avatar
  • Ray Humphrys
  • 12 Month basic
  • 9 posts
  • Karma: 0
The administrator has disabled public write access.
Tried which option?

in an article or modules inside a module?
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Regular Labs' 'modules anywhere' allows you to put modules inside of modules, or inside of articles. (Combine with ZenCode for some really zany tricks.) :)
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
Last Edit: 6 years 10 months ago by blueshift.
The administrator has disabled public write access.
Yep certainly an option

But prepare content should also work for basic situations

I go out of my way not to install anything unless it can't be avoided :)
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Today I was going to procrastinate, but I decided that can wait until tomorrow.
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
That is advice I intend to follow. Two joomla sites of mine were hacked, and one 5 days ago was completed deleted. Everything, not a shred of anything was left.

No doubt an old joomla, and a leaky plugin
  • Ray Humphrys's Avatar
  • Ray Humphrys
  • 12 Month basic
  • 9 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Ray,

Regular labs stuff is all really good so don't want to put you off using their stuff

But we always try and suggest ways of using the core rather than installing extra plugins or module

One less thing to update going forward

But just to restate I do use regular labs myself on some sites
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers