Embed image in dashboard from path not File Manager
Permalink
Authored a package that includes a theme, blocks, single pages, and single pages for dashboard management.
The goal is to:
Display a custom alert icon image within a div triggered by an update operation facilitated by one of my custom dashboard single pages. The outgoing message about the update operation is triggered by JQuery to set the background image of the message box.
1) easy way to just generate the path to an image within a theme or package? (I can hard code it I guess but that seems horribly lame).
2) barring 1, is there a to load images from within a package or theme into the file manager at install time, and set a custom ID or get that ID returned and save in some Concrete5 idiomatic run-time storage place?
Ideally I'd like to avoid having to load said image into the file manager (although I do know how to refer to files within said file manager, it just seems like overkill).
http://andrewembler.com/posts/concrete5-5.5-content-import-format-s...
Gratzie!
The goal is to:
Display a custom alert icon image within a div triggered by an update operation facilitated by one of my custom dashboard single pages. The outgoing message about the update operation is triggered by JQuery to set the background image of the message box.
1) easy way to just generate the path to an image within a theme or package? (I can hard code it I guess but that seems horribly lame).
2) barring 1, is there a to load images from within a package or theme into the file manager at install time, and set a custom ID or get that ID returned and save in some Concrete5 idiomatic run-time storage place?
Ideally I'd like to avoid having to load said image into the file manager (although I do know how to refer to files within said file manager, it just seems like overkill).
http://andrewembler.com/posts/concrete5-5.5-content-import-format-s...
Gratzie!