dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #10150
Re: Displaying images (resources) in the dashboard
Well, you can add the same widget multiple times, and then on initial load
just show a simple selection box. If you want to make it more fancy, you
could attach the possible images to a system settings using base64'd data
urls.
If it's worth a blueprint or not, I don't know. You can always create it :)
you still would have to deal with image upload somehow, either on the disk
using filestore, or base64.
--
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org
On Thu, May 5, 2016 at 3:07 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
> Thanks Morten, will do that for now - but don't you agree it would be nice
> NOT to have to create an app for every image you want to include? Would be
> nice if this could be supported out of the box (perhaps through automatic
> wrapping in exactly such an app?). Blueprint?
>
> On Thu, May 5, 2016 at 2:35 PM, Morten Olav Hansen <morten@xxxxxxxxx>
> wrote:
>
>> Sorry, appType=DASHBOARD_WIDGET of course
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Thu, May 5, 2016 at 3:04 PM, Morten Olav Hansen <morten@xxxxxxxxx>
>> wrote:
>>
>>> Hi Knut
>>>
>>> It should be very easy, create a small app that display a image (maybe
>>> you want with/height 100%), and set appType=RESOURCE, then you can add it
>>> to the dashboard (don't need any fancy build process for that one)
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Thu, May 5, 2016 at 2:38 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
>>>
>>>> Hello team,
>>>>
>>>> Given the limits of the current charting solution (no selection of (the
>>>> rather dull) colors), few types of charts etc, I have a request to be able
>>>> to import charts made externally (with Excel or other tools) for display in
>>>> the dashboard.
>>>>
>>>> 2.23 can already display youtube videos, so would it be easy to also
>>>> display Resources of type image? Or do we have to make a wrapper app (for
>>>> each such image)?
>>>>
>>>> --
>>>> Knut Staring
>>>> Dept. of Informatics, University of Oslo
>>>> Norway: +4791880522
>>>> Skype: knutstar
>>>> http://dhis2.org
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>> More help : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> Norway: +4791880522
> Skype: knutstar
> http://dhis2.org
>
References