Support

  1. Hackwar
  2. Features Request
  3. Sunday, October 22 2017, 02:22 PM
Hi,
I have a website that displays 2 different galleries in the profile tabs. I use the Joomgallery for this and the Joomgallery-Plugin. However, in order to display more than one tab, I have to copy the plugin. That also means any code changes have to be done twice, etc. It would be good if one plugin could provide more than one tab in the profile tabs. I fear that this would require an at least partially backwards incompatible change, but I would propose that tab plugins can either return an object or an array of objects. Each object would be a tab and have the attributes "title", "content". That would allow to later add additional attributes, like maybe "script" or "scriptfile". It would also provide a (clearer) interface for the development of such a plugin.

A backwards compatible way to implement this would be by doing the following:

foreach($tabs as $tab)
{
if (is_object($tab[0]))
{
foreach ($tab as $tabobject)
{
$contents[]='<fieldset><legend>'.$tabobject->title.'</legend>'.$tabobject->content.'</fieldset>';
}
}
else
{
$contents[]='<fieldset><legend>'.$tab[0].'</legend>'.$tab[1].'</fieldset>';
}
}


Would you be interested in adding this? The downside would be, that multiple tabs would always show up next to each other in the order of the plugins. But that would be acceptable for me...

I've recently joined the Joomgallery Project and I will rewrite the Joomgallery Plugin. If you are interested, you could also provide it here, maybe alongside your version, maybe as a replacement.
admin Accepted Answer
Admin
Hi Hannes,
Would you be interested in adding this?
No problem about this, in next release we will add this code.

If you are interested, you could also provide it here, maybe alongside your version, maybe as a replacement.
Great, we can remove our plugin and put a link to your plugin page.
  1. more than a month ago
  2. Features Request
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.