admin_config type media #5044
Replies: 2 comments 6 replies
-
@LaocheXe well its way out of my league, but did you read the e_ajax_class.php , maybe it will give an insight, or idea? |
Beta Was this translation helpful? Give feedback.
-
check blank plugin, install it and see if it works. then change things one after the other.
I haven't seen the parameter "path"... only media_category... and you must it listed in plugin.xml too - owner or something Sorry, it is a long time... Maybe this helps too, just for inspiration:
|
Beta Was this translation helpful? Give feedback.
-
I have a field that saves as json, for media. However, I don't know why, but I can't save anything in that field in the admin ui -
the field is like this:
'v_media' => array ( 'title' => LAN_IMAGE_V, 'type' => 'media', 'tab' => 2, 'data' => 'json', 'width' => 'auto', 'help' => LAN_V_HELP_IMAGES, 'readParms' => 'thumb=80x80', 'writeParms' => array ('path' => 'plugin',), 'class' => 'left', 'thclass' => 'left',),
The screen shot below is from e107.org, I don't know if my readParms is listed as thumb=80x80 but i don't know, this is my first attempted on doing this in e107.
In the admin UI it doesn't give me much:
In the database field, it just shows [
{
"path": ""
}
]
I don't even know if there is an e107 method to display this like e107::getParser->toImage...
I've uploaded about 4 images, was going to also add a youtube video as well, then have it displayed as thumbnail carousel on a page.
Beta Was this translation helpful? Give feedback.
All reactions