kingdingeling
Forum Replies Created
-
Yes, I know how to get meta data, but what is the required hook or filter to change the stored value in the rml static function
getDefaultFolder()
in inc/usersettings conditionally where the user opens the media library in the backend?Regards
Ok, thank you Matthias.
I found it is possible to set a default folder by usermeta ‘rmlDefaultFolder’.
Is it possible to change this ID conditionally later by a filter or extended class?
The idea is, if an author in the backend opens the media library in a custom post type, a specific folder opens, but not the ‘rmlDefaultFolder’.
By the way, I use the Pro version.
Regards
- This reply was modified 1 year, 9 months ago by kingdingeling.
Hi Jan,
thank you for your quick response.
What is the Hook to add the
rml_folder
parameter to the upload.php URL?Like this:
wp-admin/upload.php?rml_folder=
, to select a folder when the media menu is called, or the media form (select, upload) is triggered in the backend?Regards
We have the same error here.
When a post will be edited, the error appears.
The site works ok, but we can’t do anything in the backend.I found a solution myself. Here is a link to the WPML forum:
How to translate Cookie Consent PluginRegards.
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] clear_on_hide won’t workThe script.js file of the conditional fields plugin has only 356 lines.
You use the latest version 1.4.1?Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] clear_on_hide won’t workI had the same issue with WP 4.9.8, just updated to 5.0. Same problem.
Contact Form 7 isn’t the problem, it is the javascript in conditional fields.
I added this line to scipts.js after line 215:
$(':input', $group).get(0).selectedIndex = 0;
So the condition will look like this:if ($group.attr('data-clear_on_hide') !== undefined) { $(':input', $group).get(0).selectedIndex = 0; $(':input', $group) .not(':button, :submit, :reset, :hidden') .val('') .prop('checked', false) .prop('selected', false); }
Now the select dropdown value will be cleared.
But make sure you have a “first_as_label” value in your select field.