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

[Feature]: Make it easier to read static data from within an add on #3171

Closed
cwisniew opened this issue Nov 13, 2021 · 1 comment
Closed
Assignees
Labels
documentation needed Missing, out-of-date or bad documentation feature Adding functionality that adds value tested This issue has been QA tested by someone other than the developer.

Comments

@cwisniew
Copy link
Member

Feature Request

The new MacroScript function data.getStaticData() allows macros to retrieve static information from add-ons.
This should be easier for add-ons that are retrieving data from themesleves

The Solution you'd like

@this is used in many places for macros that want to access other macros or data from themselves, we can extend this behaviour to the data.getStaticData function as below

data.getStaticData("@this", "/path/to/data")]

Alternatives that you've considered.

Creating another function, but that seems a little too much.

Additional Context

This will also help when add-on developers want to test multiple versions of their add on by using different names.

@cwisniew cwisniew added the feature Adding functionality that adds value label Nov 13, 2021
@cwisniew cwisniew self-assigned this Nov 13, 2021
@Phergus Phergus added the tested This issue has been QA tested by someone other than the developer. label Nov 20, 2021
@Phergus
Copy link
Contributor

Phergus commented Nov 20, 2021

Tested.

Working as expected.

@Phergus Phergus closed this as completed Nov 20, 2021
@Phergus Phergus added the documentation needed Missing, out-of-date or bad documentation label Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation needed Missing, out-of-date or bad documentation feature Adding functionality that adds value tested This issue has been QA tested by someone other than the developer.
Projects
None yet
Development

No branches or pull requests

2 participants