How to get config value as a formula, preprocessor, search function?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
nikov
Posts: 131
Joined: Fri Dec 24, 2021 10:31 am

How to get config value as a formula, preprocessor, search function?

Post by nikov »

Hi,
I have seen a method to read config value and apply settings according to it:
Like in the "viewtopic.php?p=64526#p64526" post's "/right_sidebar_wide=right_sidebar_wide==325?1000:325".

But how to do that as a formula, preprocessor, search function?
I thought there would be a "get_config()" type method for formula, preprocessor, search function but found none.

A "get_config()" method for formulas, preprocessors, search functions, would be nice.
I also suggest, if "get_config()" ever implemented, it will be preferable, if it reads the active config that is already stored in the memory and not from the hard-disk; so that, "get_config()" gets the most updated configs and works fastest too.

Thank you.
void
Developer
Posts: 15806
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to get config value as a formula, preprocessor, search function?

Post by void »

The preprocessor has:

[get-setting:setting-name]

For example:

[get-setting:last_export_filename]
=>
C:\Users\user\Desktop\Control Panel.efu



I will consider a get_setting() formula function.
Thank you for the suggestion.
nikov
Posts: 131
Joined: Fri Dec 24, 2021 10:31 am

Re: How to get config value as a formula, preprocessor, search function?

Post by nikov »

void wrote: Sun May 12, 2024 5:05 am
Sorry for missing that, preprocessor has this.
I also tested this get-setting preprocessor, and it is working very nice.
Now, only implementing a get_setting() formula function is left for this.

Thank you very much and also for your consideration.
Post Reply