media module: how to integrate with stk

View: New views
9 Messages — Rating Filter:   Alert me  

media module: how to integrate with stk

by Ernst Bunders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hello

I am looking at the openmindLab media module, as a basis for hour
media management. The problem is how to integrate it with the stk.
I found the 'mediaSelection' control and naively added an instance to
the stkTextImage dialog, and this indeed created a 'select' button
which opens the selection dialog.
But alas, I can not select an image here. Perhaps some configuration
is missing in the control configuration. What's missing?

But I suppose that if this step would work, the image would not be
displayed in the site, as the that would require changes to the
stkTextImage paragraph template.

So, how to go about this? how do I integrate the media module with the
skt? Any hints? exaples?

regards,

--
Ernst bunders
Ontwikkelaar VPRO

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: media module: how to integrate with stk

by Will Scheidegger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Check the archives... a few days back I asked the same question. In order to select a picture it either as to be activated or you have to turn on the development flag in the properties.

And yes, you would have to modify the templates.

-wil

On 11.11.2009, at 15:08, Ernst Bunders wrote:

>
> hello
>
> I am looking at the openmindLab media module, as a basis for hour
> media management. The problem is how to integrate it with the stk.
> I found the 'mediaSelection' control and naively added an instance to
> the stkTextImage dialog, and this indeed created a 'select' button
> which opens the selection dialog.
> But alas, I can not select an image here. Perhaps some configuration
> is missing in the control configuration. What's missing?
>
> But I suppose that if this step would work, the image would not be
> displayed in the site, as the that would require changes to the
> stkTextImage paragraph template.
>
> So, how to go about this? how do I integrate the media module with the
> skt? Any hints? exaples?
>
> regards,
>
> --
> Ernst bunders
> Ontwikkelaar VPRO
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------
>


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: media module: how to integrate with stk

by Ernst Bunders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


ah, thanks. I did google for this question though, assuming that the
archive is being indexed. perhaps not?

regards,

Ernst


2009/11/11 Will Scheidegger <willscheidegger@...>:

>
> Check the archives... a few days back I asked the same question. In order to select a picture it either as to be activated or you have to turn on the development flag in the properties.
>
> And yes, you would have to modify the templates.
>
> -wil
>
> On 11.11.2009, at 15:08, Ernst Bunders wrote:
>
>>
>> hello
>>
>> I am looking at the openmindLab media module, as a basis for hour
>> media management. The problem is how to integrate it with the stk.
>> I found the 'mediaSelection' control and naively added an instance to
>> the stkTextImage dialog, and this indeed created a 'select' button
>> which opens the selection dialog.
>> But alas, I can not select an image here. Perhaps some configuration
>> is missing in the control configuration. What's missing?
>>
>> But I suppose that if this step would work, the image would not be
>> displayed in the site, as the that would require changes to the
>> stkTextImage paragraph template.
>>
>> So, how to go about this? how do I integrate the media module with the
>> skt? Any hints? exaples?
>>
>> regards,
>>
>> --
>> Ernst bunders
>> Ontwikkelaar VPRO
>>
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>> ----------------------------------------------------------------
>>
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------
>
>



--
Ernst bunders
Ontwikkelaar VPRO

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: media module: how to integrate with stk

by gregoryjoseph :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Nov 11, 2009, at 3:14 PM, Will Scheidegger wrote:

>
> Check the archives... a few days back I asked the same question. In  
> order to select a picture it either as to be activated or you have  
> to turn on the development flag in the properties.
>
> And yes, you would have to modify the templates.

Another approach might be to modify said media module to make it dam-
aware; not sure how feasible it is at the moment, but the dam is  
intended to be used exactly for that.

Cheers,

-g

> On 11.11.2009, at 15:08, Ernst Bunders wrote:
>
>>
>> hello
>>
>> I am looking at the openmindLab media module, as a basis for hour
>> media management. The problem is how to integrate it with the stk.
>> I found the 'mediaSelection' control and naively added an instance to
>> the stkTextImage dialog, and this indeed created a 'select' button
>> which opens the selection dialog.
>> But alas, I can not select an image here. Perhaps some configuration
>> is missing in the control configuration. What's missing?
>>
>> But I suppose that if this step would work, the image would not be
>> displayed in the site, as the that would require changes to the
>> stkTextImage paragraph template.
>>
>> So, how to go about this? how do I integrate the media module with  
>> the
>> skt? Any hints? exaples?
>>
>> regards,
>>
>> --
>> Ernst bunders
>> Ontwikkelaar VPRO
>>
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>> ----------------------------------------------------------------
>>
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: media module: how to integrate with stk

by Ernst Bunders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi

First off: thanks for the replies. Modifying the module so it can use
dam is not interesting for us, because we don't intent on using that.
What we are actually looking for is a way to work with different media
from different sources. We already have an image server that contains
a huge amount of data, and one of the things i would like to find out
is if the meda module can be extended (by us :-) ) to integrate with
this system.

But first things first. I got the selection of images to work, and now
i actually want to show the image using The el functions that are part
of the media tld.

My assumption is that i should first use getContent([mediaSelection])
to get the content node, and then something like getUrl([contentNode])
and so on.

Perhaps to my shame I find it a trifle hard to access these functions
in my freemaker template. I am new to freemaker, but it seems
straightforward.

First declare the taglib:
[#assign media=JspTaglibs["http://net.sourceforge.openutils/mgnlMedia"]]

Then get the content Node:
${@media.getNode("b83d0546-759c-43a3-8ceb-d63a2eda5723")}
does not work: Expression @media is undefined

[@media.getNode("b83d0546-759c-43a3-8ceb-d63a2eda5723") /]
does not work: Expression media.getNode is undefined

[@media.getNode "b83d0546-759c-43a3-8ceb-d63a2eda5723" /]
 does not work: media.getNode not found


so, I'm out of ideas. Could anyone point my nose in the right direction please?

regards,

Ernst

2009/11/11 Grégory Joseph <gregory.joseph@...>:

>
>
> On Nov 11, 2009, at 3:14 PM, Will Scheidegger wrote:
>
>>
>> Check the archives... a few days back I asked the same question. In order
>> to select a picture it either as to be activated or you have to turn on the
>> development flag in the properties.
>>
>> And yes, you would have to modify the templates.
>
> Another approach might be to modify said media module to make it dam-aware;
> not sure how feasible it is at the moment, but the dam is intended to be
> used exactly for that.
>
> Cheers,
>
> -g
>
>> On 11.11.2009, at 15:08, Ernst Bunders wrote:
>>
>>>
>>> hello
>>>
>>> I am looking at the openmindLab media module, as a basis for hour
>>> media management. The problem is how to integrate it with the stk.
>>> I found the 'mediaSelection' control and naively added an instance to
>>> the stkTextImage dialog, and this indeed created a 'select' button
>>> which opens the selection dialog.
>>> But alas, I can not select an image here. Perhaps some configuration
>>> is missing in the control configuration. What's missing?
>>>
>>> But I suppose that if this step would work, the image would not be
>>> displayed in the site, as the that would require changes to the
>>> stkTextImage paragraph template.
>>>
>>> So, how to go about this? how do I integrate the media module with the
>>> skt? Any hints? exaples?
>>>
>>> regards,
>>>
>>> --
>>> Ernst bunders
>>> Ontwikkelaar VPRO
>>>
>>> ----------------------------------------------------------------
>>> For list details see
>>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>>> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>>> ----------------------------------------------------------------
>>>
>>
>>
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>> ----------------------------------------------------------------
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------
>
>



--
Ernst bunders
Ontwikkelaar VPRO

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: media module: how to integrate with stk

by Jan Haderka-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



> hi
>
> First off: thanks for the replies. Modifying the module so it can use
> dam is not interesting for us, because we don't intent on using that.

You might want to ask why it should be interesting to you - if module
supported DAM, you can use the functionality already provided by STK
such as stk.getAssetLink() etc and you can also use predefined macros
provided by STK such as image macro and then simply creating links to
your images like:

[#include "/templating-kit/paragraphs/macros/image.ftl"/]
[@image image=model.image! imageClass=model.imageClass/]

where "image" is an DAM asset resolved by the ImageModel

    public Asset getImage() {
        return STKUtil.getAsset(content, getImageName(),
getImageVariationName());
    }

this is much easier to use in the templates then resolving the things
yourself as you are trying to do below, plus you get the flexibility to
mix the sources of images without having to care about differences in
the templates themselves.

Cheers,
Jan

> What we are actually looking for is a way to work with different media
> from different sources. We already have an image server that contains
> a huge amount of data, and one of the things i would like to find out
> is if the meda module can be extended (by us :-) ) to integrate with
> this system.
>
> But first things first. I got the selection of images to work, and now
> i actually want to show the image using The el functions that are part
> of the media tld.
>
> My assumption is that i should first use getContent([mediaSelection])
> to get the content node, and then something like getUrl([contentNode])
> and so on.
>
> Perhaps to my shame I find it a trifle hard to access these functions
> in my freemaker template. I am new to freemaker, but it seems
> straightforward.
>
> First declare the taglib:
> [#assign media=JspTaglibs["http://net.sourceforge.openutils/mgnlMedia"]]
>
> Then get the content Node:
> ${@media.getNode("b83d0546-759c-43a3-8ceb-d63a2eda5723")}
> does not work: Expression @media is undefined
>
> [@media.getNode("b83d0546-759c-43a3-8ceb-d63a2eda5723") /]
> does not work: Expression media.getNode is undefined
>
> [@media.getNode "b83d0546-759c-43a3-8ceb-d63a2eda5723" /]
>  does not work: media.getNode not found
>
>
> so, I'm out of ideas. Could anyone point my nose in the right direction please?
>
> regards,
>
> Ernst
>
> 2009/11/11 Grégory Joseph <gregory.joseph@...>:
> >
> >
> > On Nov 11, 2009, at 3:14 PM, Will Scheidegger wrote:
> >
> >>
> >> Check the archives... a few days back I asked the same question. In order
> >> to select a picture it either as to be activated or you have to turn on the
> >> development flag in the properties.
> >>
> >> And yes, you would have to modify the templates.
> >
> > Another approach might be to modify said media module to make it dam-aware;
> > not sure how feasible it is at the moment, but the dam is intended to be
> > used exactly for that.
> >
> > Cheers,
> >
> > -g
> >
> >> On 11.11.2009, at 15:08, Ernst Bunders wrote:
> >>
> >>>
> >>> hello
> >>>
> >>> I am looking at the openmindLab media module, as a basis for hour
> >>> media management. The problem is how to integrate it with the stk.
> >>> I found the 'mediaSelection' control and naively added an instance to
> >>> the stkTextImage dialog, and this indeed created a 'select' button
> >>> which opens the selection dialog.
> >>> But alas, I can not select an image here. Perhaps some configuration
> >>> is missing in the control configuration. What's missing?
> >>>
> >>> But I suppose that if this step would work, the image would not be
> >>> displayed in the site, as the that would require changes to the
> >>> stkTextImage paragraph template.
> >>>
> >>> So, how to go about this? how do I integrate the media module with the
> >>> skt? Any hints? exaples?
> >>>
> >>> regards,
> >>>
> >>> --
> >>> Ernst bunders
> >>> Ontwikkelaar VPRO
> >>>
> >>> ----------------------------------------------------------------
> >>> For list details see
> >>> http://www.magnolia-cms.com/home/community/mailing-lists.html
> >>> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> >>> ----------------------------------------------------------------
> >>>
> >>
> >>
> >> ----------------------------------------------------------------
> >> For list details see
> >> http://www.magnolia-cms.com/home/community/mailing-lists.html
> >> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> >> ----------------------------------------------------------------
> >
> >
> > ----------------------------------------------------------------
> > For list details see
> > http://www.magnolia-cms.com/home/community/mailing-lists.html
> > To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> > ----------------------------------------------------------------
> >
> >
>
>
>
> --
> Ernst bunders
> Ontwikkelaar VPRO
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: media module: how to integrate with stk

by Ernst Bunders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hello Jan

What we are looking for in hour imaging solution:

1 we want to be able to create a new image from the web page we are editing
2 we want to be able to search through the available images
3 we want to be able to see a preview of the images in the selection dialog
4 we want to integrate hour present image service.

points 1 to 3 are not supported by dam for as fare as I can see. Yet
they are by the media module.
point 4 will have to be achieved through custom work of course, but at
least the media module already knows the concept of different media
types, as well as proxying for remote media sources.

Mind you, I am fresh to Magnolia, so perhaps i am missing some obvious
clues. But It seems to me that getting an url to an image is not my
biggest problem at the moment. We are looking for a feature-rich media
solution and the media module seems to me as the the closest thing
available at present.

But I would like to know more about how other magnolia users handle
images and media.

regards,

Ernst

2009/11/12 Jan Haderka <jan.haderka@...>:

>
>
>> hi
>>
>> First off: thanks for the replies. Modifying the module so it can use
>> dam is not interesting for us, because we don't intent on using that.
>
> You might want to ask why it should be interesting to you - if module
> supported DAM, you can use the functionality already provided by STK
> such as stk.getAssetLink() etc and you can also use predefined macros
> provided by STK such as image macro and then simply creating links to
> your images like:
>
> [#include "/templating-kit/paragraphs/macros/image.ftl"/]
> [@image image=model.image! imageClass=model.imageClass/]
>
> where "image" is an DAM asset resolved by the ImageModel
>
>    public Asset getImage() {
>        return STKUtil.getAsset(content, getImageName(),
> getImageVariationName());
>    }
>
> this is much easier to use in the templates then resolving the things
> yourself as you are trying to do below, plus you get the flexibility to
> mix the sources of images without having to care about differences in
> the templates themselves.
>
> Cheers,
> Jan
>
>> What we are actually looking for is a way to work with different media
>> from different sources. We already have an image server that contains
>> a huge amount of data, and one of the things i would like to find out
>> is if the meda module can be extended (by us :-) ) to integrate with
>> this system.
>>
>> But first things first. I got the selection of images to work, and now
>> i actually want to show the image using The el functions that are part
>> of the media tld.
>>
>> My assumption is that i should first use getContent([mediaSelection])
>> to get the content node, and then something like getUrl([contentNode])
>> and so on.
>>
>> Perhaps to my shame I find it a trifle hard to access these functions
>> in my freemaker template. I am new to freemaker, but it seems
>> straightforward.
>>
>> First declare the taglib:
>> [#assign media=JspTaglibs["http://net.sourceforge.openutils/mgnlMedia"]]
>>
>> Then get the content Node:
>> ${@media.getNode("b83d0546-759c-43a3-8ceb-d63a2eda5723")}
>> does not work: Expression @media is undefined
>>
>> [@media.getNode("b83d0546-759c-43a3-8ceb-d63a2eda5723") /]
>> does not work: Expression media.getNode is undefined
>>
>> [@media.getNode "b83d0546-759c-43a3-8ceb-d63a2eda5723" /]
>>  does not work: media.getNode not found
>>
>>
>> so, I'm out of ideas. Could anyone point my nose in the right direction please?
>>
>> regards,
>>
>> Ernst
>>
>> 2009/11/11 Grégory Joseph <gregory.joseph@...>:
>> >
>> >
>> > On Nov 11, 2009, at 3:14 PM, Will Scheidegger wrote:
>> >
>> >>
>> >> Check the archives... a few days back I asked the same question. In order
>> >> to select a picture it either as to be activated or you have to turn on the
>> >> development flag in the properties.
>> >>
>> >> And yes, you would have to modify the templates.
>> >
>> > Another approach might be to modify said media module to make it dam-aware;
>> > not sure how feasible it is at the moment, but the dam is intended to be
>> > used exactly for that.
>> >
>> > Cheers,
>> >
>> > -g
>> >
>> >> On 11.11.2009, at 15:08, Ernst Bunders wrote:
>> >>
>> >>>
>> >>> hello
>> >>>
>> >>> I am looking at the openmindLab media module, as a basis for hour
>> >>> media management. The problem is how to integrate it with the stk.
>> >>> I found the 'mediaSelection' control and naively added an instance to
>> >>> the stkTextImage dialog, and this indeed created a 'select' button
>> >>> which opens the selection dialog.
>> >>> But alas, I can not select an image here. Perhaps some configuration
>> >>> is missing in the control configuration. What's missing?
>> >>>
>> >>> But I suppose that if this step would work, the image would not be
>> >>> displayed in the site, as the that would require changes to the
>> >>> stkTextImage paragraph template.
>> >>>
>> >>> So, how to go about this? how do I integrate the media module with the
>> >>> skt? Any hints? exaples?
>> >>>
>> >>> regards,
>> >>>
>> >>> --
>> >>> Ernst bunders
>> >>> Ontwikkelaar VPRO
>> >>>
>> >>> ----------------------------------------------------------------
>> >>> For list details see
>> >>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> >>> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>> >>> ----------------------------------------------------------------
>> >>>
>> >>
>> >>
>> >> ----------------------------------------------------------------
>> >> For list details see
>> >> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> >> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>> >> ----------------------------------------------------------------
>> >
>> >
>> > ----------------------------------------------------------------
>> > For list details see
>> > http://www.magnolia-cms.com/home/community/mailing-lists.html
>> > To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>> > ----------------------------------------------------------------
>> >
>> >
>>
>>
>>
>> --
>> Ernst bunders
>> Ontwikkelaar VPRO
>>
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>> ----------------------------------------------------------------
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------
>
>



--
Ernst bunders
Ontwikkelaar VPRO

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: media module: how to integrate with stk

by Jan Haderka-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Thu, 2009-11-12 at 11:39 +0100, Ernst Bunders wrote:

> hello Jan
>
> What we are looking for in hour imaging solution:
>
> 1 we want to be able to create a new image from the web page we are editing
> 2 we want to be able to search through the available images
> 3 we want to be able to see a preview of the images in the selection dialog
> 4 we want to integrate hour present image service.
>
> points 1 to 3 are not supported by dam for as fare as I can see. Yet
> they are by the media module.

Uh, I never said that you should use either DAM *or* Media Module. All I
did was explain few benefits of using DAM. Personally I think the Media
Module itself would benefit from using DAM.

As for the 4th point this is again something DAM can help you with.
Since it keeps the image (or any other media) encapsulated in the Asset
and since it supports the variations, it is able to get accross the
message that UI needs image this and that, but cropped or resized (or
whatever other ops you imagine with whatever params you choose), and
then it is up to DAM to either find where such image is physically and
give link to it, or construct link that is meaningful to your imaging
service to perform such ops, or for example like DMS DAM hanlder does,
just call imaging module in Magnolia and tell it, here's the original
image and here's what I want you to do with it ...

At the risk of repeating myself: DAM and MM are complementary.

Cheers,
Jan


> point 4 will have to be achieved through custom work of course, but at
> least the media module already knows the concept of different media
> types, as well as proxying for remote media sources.
>
> Mind you, I am fresh to Magnolia, so perhaps i am missing some obvious
> clues. But It seems to me that getting an url to an image is not my
> biggest problem at the moment. We are looking for a feature-rich media
> solution and the media module seems to me as the the closest thing
> available at present.
>
> But I would like to know more about how other magnolia users handle
> images and media.
>
> regards,
>
> Ernst
>
> 2009/11/12 Jan Haderka <jan.haderka@...>:
> >
> >
> >> hi
> >>
> >> First off: thanks for the replies. Modifying the module so it can use
> >> dam is not interesting for us, because we don't intent on using that.
> >
> > You might want to ask why it should be interesting to you - if module
> > supported DAM, you can use the functionality already provided by STK
> > such as stk.getAssetLink() etc and you can also use predefined macros
> > provided by STK such as image macro and then simply creating links to
> > your images like:
> >
> > [#include "/templating-kit/paragraphs/macros/image.ftl"/]
> > [@image image=model.image! imageClass=model.imageClass/]
> >
> > where "image" is an DAM asset resolved by the ImageModel
> >
> >    public Asset getImage() {
> >        return STKUtil.getAsset(content, getImageName(),
> > getImageVariationName());
> >    }
> >
> > this is much easier to use in the templates then resolving the things
> > yourself as you are trying to do below, plus you get the flexibility to
> > mix the sources of images without having to care about differences in
> > the templates themselves.
> >
> > Cheers,
> > Jan
> >
> >> What we are actually looking for is a way to work with different media
> >> from different sources. We already have an image server that contains
> >> a huge amount of data, and one of the things i would like to find out
> >> is if the meda module can be extended (by us :-) ) to integrate with
> >> this system.
> >>
> >> But first things first. I got the selection of images to work, and now
> >> i actually want to show the image using The el functions that are part
> >> of the media tld.
> >>
> >> My assumption is that i should first use getContent([mediaSelection])
> >> to get the content node, and then something like getUrl([contentNode])
> >> and so on.
> >>
> >> Perhaps to my shame I find it a trifle hard to access these functions
> >> in my freemaker template. I am new to freemaker, but it seems
> >> straightforward.
> >>
> >> First declare the taglib:
> >> [#assign media=JspTaglibs["http://net.sourceforge.openutils/mgnlMedia"]]
> >>
> >> Then get the content Node:
> >> ${@media.getNode("b83d0546-759c-43a3-8ceb-d63a2eda5723")}
> >> does not work: Expression @media is undefined
> >>
> >> [@media.getNode("b83d0546-759c-43a3-8ceb-d63a2eda5723") /]
> >> does not work: Expression media.getNode is undefined
> >>
> >> [@media.getNode "b83d0546-759c-43a3-8ceb-d63a2eda5723" /]
> >>  does not work: media.getNode not found
> >>
> >>
> >> so, I'm out of ideas. Could anyone point my nose in the right direction please?
> >>
> >> regards,
> >>
> >> Ernst
> >>
> >> 2009/11/11 Grégory Joseph <gregory.joseph@...>:
> >> >
> >> >
> >> > On Nov 11, 2009, at 3:14 PM, Will Scheidegger wrote:
> >> >
> >> >>
> >> >> Check the archives... a few days back I asked the same question. In order
> >> >> to select a picture it either as to be activated or you have to turn on the
> >> >> development flag in the properties.
> >> >>
> >> >> And yes, you would have to modify the templates.
> >> >
> >> > Another approach might be to modify said media module to make it dam-aware;
> >> > not sure how feasible it is at the moment, but the dam is intended to be
> >> > used exactly for that.
> >> >
> >> > Cheers,
> >> >
> >> > -g
> >> >
> >> >> On 11.11.2009, at 15:08, Ernst Bunders wrote:
> >> >>
> >> >>>
> >> >>> hello
> >> >>>
> >> >>> I am looking at the openmindLab media module, as a basis for hour
> >> >>> media management. The problem is how to integrate it with the stk.
> >> >>> I found the 'mediaSelection' control and naively added an instance to
> >> >>> the stkTextImage dialog, and this indeed created a 'select' button
> >> >>> which opens the selection dialog.
> >> >>> But alas, I can not select an image here. Perhaps some configuration
> >> >>> is missing in the control configuration. What's missing?
> >> >>>
> >> >>> But I suppose that if this step would work, the image would not be
> >> >>> displayed in the site, as the that would require changes to the
> >> >>> stkTextImage paragraph template.
> >> >>>
> >> >>> So, how to go about this? how do I integrate the media module with the
> >> >>> skt? Any hints? exaples?
> >> >>>
> >> >>> regards,
> >> >>>
> >> >>> --
> >> >>> Ernst bunders
> >> >>> Ontwikkelaar VPRO
> >> >>>
> >> >>> ----------------------------------------------------------------
> >> >>> For list details see
> >> >>> http://www.magnolia-cms.com/home/community/mailing-lists.html
> >> >>> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> >> >>> ----------------------------------------------------------------
> >> >>>
> >> >>
> >> >>
> >> >> ----------------------------------------------------------------
> >> >> For list details see
> >> >> http://www.magnolia-cms.com/home/community/mailing-lists.html
> >> >> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> >> >> ----------------------------------------------------------------
> >> >
> >> >
> >> > ----------------------------------------------------------------
> >> > For list details see
> >> > http://www.magnolia-cms.com/home/community/mailing-lists.html
> >> > To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> >> > ----------------------------------------------------------------
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Ernst bunders
> >> Ontwikkelaar VPRO
> >>
> >> ----------------------------------------------------------------
> >> For list details see
> >> http://www.magnolia-cms.com/home/community/mailing-lists.html
> >> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> >> ----------------------------------------------------------------
> >
> >
> > ----------------------------------------------------------------
> > For list details see
> > http://www.magnolia-cms.com/home/community/mailing-lists.html
> > To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> > ----------------------------------------------------------------
> >
> >
>
>
>


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: media module: how to integrate with stk

by Ernst Bunders :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hello Jan

Thanks for the info
It makes me realize all the more that there is too much I don't yet
know. I do understand what you are saying though, and partially
reached the same conclusions myself. It is a pity dam-support is not
well documented, and it seems to me that we need to do a lot of work
to get a workable system for hour media (we are, by the way, a
meda/television company).

I will take your remarks at heart as we will find hour way towards a
good solution.

thanks,

Ernst

2009/11/12 Jan Haderka <jan.haderka@...>:

>
> On Thu, 2009-11-12 at 11:39 +0100, Ernst Bunders wrote:
>> hello Jan
>>
>> What we are looking for in hour imaging solution:
>>
>> 1 we want to be able to create a new image from the web page we are editing
>> 2 we want to be able to search through the available images
>> 3 we want to be able to see a preview of the images in the selection dialog
>> 4 we want to integrate hour present image service.
>>
>> points 1 to 3 are not supported by dam for as fare as I can see. Yet
>> they are by the media module.
>
> Uh, I never said that you should use either DAM *or* Media Module. All I
> did was explain few benefits of using DAM. Personally I think the Media
> Module itself would benefit from using DAM.
>
> As for the 4th point this is again something DAM can help you with.
> Since it keeps the image (or any other media) encapsulated in the Asset
> and since it supports the variations, it is able to get accross the
> message that UI needs image this and that, but cropped or resized (or
> whatever other ops you imagine with whatever params you choose), and
> then it is up to DAM to either find where such image is physically and
> give link to it, or construct link that is meaningful to your imaging
> service to perform such ops, or for example like DMS DAM hanlder does,
> just call imaging module in Magnolia and tell it, here's the original
> image and here's what I want you to do with it ...
>
> At the risk of repeating myself: DAM and MM are complementary.
>
> Cheers,
> Jan
>
>
>> point 4 will have to be achieved through custom work of course, but at
>> least the media module already knows the concept of different media
>> types, as well as proxying for remote media sources.
>>
>> Mind you, I am fresh to Magnolia, so perhaps i am missing some obvious
>> clues. But It seems to me that getting an url to an image is not my
>> biggest problem at the moment. We are looking for a feature-rich media
>> solution and the media module seems to me as the the closest thing
>> available at present.
>>
>> But I would like to know more about how other magnolia users handle
>> images and media.
>>
>> regards,
>>
>> Ernst
>>
>> 2009/11/12 Jan Haderka <jan.haderka@...>:
>> >
>> >
>> >> hi
>> >>
>> >> First off: thanks for the replies. Modifying the module so it can use
>> >> dam is not interesting for us, because we don't intent on using that.
>> >
>> > You might want to ask why it should be interesting to you - if module
>> > supported DAM, you can use the functionality already provided by STK
>> > such as stk.getAssetLink() etc and you can also use predefined macros
>> > provided by STK such as image macro and then simply creating links to
>> > your images like:
>> >
>> > [#include "/templating-kit/paragraphs/macros/image.ftl"/]
>> > [@image image=model.image! imageClass=model.imageClass/]
>> >
>> > where "image" is an DAM asset resolved by the ImageModel
>> >
>> >    public Asset getImage() {
>> >        return STKUtil.getAsset(content, getImageName(),
>> > getImageVariationName());
>> >    }
>> >
>> > this is much easier to use in the templates then resolving the things
>> > yourself as you are trying to do below, plus you get the flexibility to
>> > mix the sources of images without having to care about differences in
>> > the templates themselves.
>> >
>> > Cheers,
>> > Jan
>> >
>> >> What we are actually looking for is a way to work with different media
>> >> from different sources. We already have an image server that contains
>> >> a huge amount of data, and one of the things i would like to find out
>> >> is if the meda module can be extended (by us :-) ) to integrate with
>> >> this system.
>> >>
>> >> But first things first. I got the selection of images to work, and now
>> >> i actually want to show the image using The el functions that are part
>> >> of the media tld.
>> >>
>> >> My assumption is that i should first use getContent([mediaSelection])
>> >> to get the content node, and then something like getUrl([contentNode])
>> >> and so on.
>> >>
>> >> Perhaps to my shame I find it a trifle hard to access these functions
>> >> in my freemaker template. I am new to freemaker, but it seems
>> >> straightforward.
>> >>
>> >> First declare the taglib:
>> >> [#assign media=JspTaglibs["http://net.sourceforge.openutils/mgnlMedia"]]
>> >>
>> >> Then get the content Node:
>> >> ${@media.getNode("b83d0546-759c-43a3-8ceb-d63a2eda5723")}
>> >> does not work: Expression @media is undefined
>> >>
>> >> [@media.getNode("b83d0546-759c-43a3-8ceb-d63a2eda5723") /]
>> >> does not work: Expression media.getNode is undefined
>> >>
>> >> [@media.getNode "b83d0546-759c-43a3-8ceb-d63a2eda5723" /]
>> >>  does not work: media.getNode not found
>> >>
>> >>
>> >> so, I'm out of ideas. Could anyone point my nose in the right direction please?
>> >>
>> >> regards,
>> >>
>> >> Ernst
>> >>
>> >> 2009/11/11 Grégory Joseph <gregory.joseph@...>:
>> >> >
>> >> >
>> >> > On Nov 11, 2009, at 3:14 PM, Will Scheidegger wrote:
>> >> >
>> >> >>
>> >> >> Check the archives... a few days back I asked the same question. In order
>> >> >> to select a picture it either as to be activated or you have to turn on the
>> >> >> development flag in the properties.
>> >> >>
>> >> >> And yes, you would have to modify the templates.
>> >> >
>> >> > Another approach might be to modify said media module to make it dam-aware;
>> >> > not sure how feasible it is at the moment, but the dam is intended to be
>> >> > used exactly for that.
>> >> >
>> >> > Cheers,
>> >> >
>> >> > -g
>> >> >
>> >> >> On 11.11.2009, at 15:08, Ernst Bunders wrote:
>> >> >>
>> >> >>>
>> >> >>> hello
>> >> >>>
>> >> >>> I am looking at the openmindLab media module, as a basis for hour
>> >> >>> media management. The problem is how to integrate it with the stk.
>> >> >>> I found the 'mediaSelection' control and naively added an instance to
>> >> >>> the stkTextImage dialog, and this indeed created a 'select' button
>> >> >>> which opens the selection dialog.
>> >> >>> But alas, I can not select an image here. Perhaps some configuration
>> >> >>> is missing in the control configuration. What's missing?
>> >> >>>
>> >> >>> But I suppose that if this step would work, the image would not be
>> >> >>> displayed in the site, as the that would require changes to the
>> >> >>> stkTextImage paragraph template.
>> >> >>>
>> >> >>> So, how to go about this? how do I integrate the media module with the
>> >> >>> skt? Any hints? exaples?
>> >> >>>
>> >> >>> regards,
>> >> >>>
>> >> >>> --
>> >> >>> Ernst bunders
>> >> >>> Ontwikkelaar VPRO
>> >> >>>
>> >> >>> ----------------------------------------------------------------
>> >> >>> For list details see
>> >> >>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> >> >>> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>> >> >>> ----------------------------------------------------------------
>> >> >>>
>> >> >>
>> >> >>
>> >> >> ----------------------------------------------------------------
>> >> >> For list details see
>> >> >> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> >> >> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>> >> >> ----------------------------------------------------------------
>> >> >
>> >> >
>> >> > ----------------------------------------------------------------
>> >> > For list details see
>> >> > http://www.magnolia-cms.com/home/community/mailing-lists.html
>> >> > To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>> >> > ----------------------------------------------------------------
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Ernst bunders
>> >> Ontwikkelaar VPRO
>> >>
>> >> ----------------------------------------------------------------
>> >> For list details see
>> >> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> >> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>> >> ----------------------------------------------------------------
>> >
>> >
>> > ----------------------------------------------------------------
>> > For list details see
>> > http://www.magnolia-cms.com/home/community/mailing-lists.html
>> > To unsubscribe, E-mail to: <user-list-unsubscribe@...>
>> > ----------------------------------------------------------------
>> >
>> >
>>
>>
>>
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------
>
>



--
Ernst bunders
Ontwikkelaar VPRO

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------