Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting module data or information #395

Open
Sama34 opened this issue Mar 3, 2020 · 1 comment
Open

Getting module data or information #395

Sama34 opened this issue Mar 3, 2020 · 1 comment

Comments

@Sama34
Copy link

Sama34 commented Mar 3, 2020

HI.

I told you I had two suggestions, but removedTemplates solves one. Still, I would like to suggest to be able to get the module data more than just the settings as currently, at least setting wrap_content=false, it is not possible to get the box name and link information.

I think getting that information is important, because sometimes I want to use the same module to display different data on different places. But displaying each box title or url is not possible, not if using wrap_content=false at least.

@WildcardSearch
Copy link
Owner

I'm so sorry, but I am having a terrible time understanding what you mean.

You can use the module class in PHP to retrieve all of the information about a module:

$module = new SideboxModule('latest_threads');
$info = $module->get('wrap_content');

But I don't think that is what you mean.

If you help me to see what you want, I will be glad to try to make it happen. That is the good thing about waiting to release. We can get these things polished, and even if it takes major change, it doesn't matter because this will not be an upgrade, anyway. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants