How to make choice between resources of internal and external modules?

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

How to make choice between resources of internal and external modules?

by sac sha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All

I want to use fallback functionality for my javascripts, css and other resources. What I want to do is to use my internal modules css if available, global modules(with the same name) css otherwise.
I am trying to get it through fallback but not able to get it.

I am not sure whether I am doing it in right way. Am I doing something wrong here?

Thanks in advance.

--
Regards
Sac


Re: How to make choice between resources of internal and external modules?

by Andreas Hartmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

sac sha schrieb:
> Hi All
>
> I want to use fallback functionality for my javascripts, css and other
> resources. What I want to do is to use my internal modules css if
> available, global modules(with the same name) css otherwise.
> I am trying to get it through fallback but not able to get it.

Fallback between different module versions is not yet supported.
Actually it should not be possible to deploy multiple modules with the
same name.

At the moment fallback works only for publications, i.e.

            $CHILD_PUB/lenya/modules/navigation/ …
overrides  $PARENT_PUB/lenya/modules/navigation/ …
overrides  $LENYA_HOME/src/modules/navigation/ …


In most cases you can use publication templating for a quite flexible
fallback setup.


Sorry … As always, patches and ideas are very welcome :)


-- Andreas


--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: How to make choice between resources of internal and external modules?

by sac sha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi  Andreas

Thanks for the mail.
I am trying to achieve exactly the same functionality which you mentioned ie.:

$CHILD_PUB/lenya/modules/
navigation/ …
overrides  $PARENT_PUB/lenya/modules/navigation/ …
overrides  $LENYA_HOME/src/modules/navigation/ …

But some reason I am not able to apply it. Say if I want to apply a javascript as fallback how I can achieve that? Right now I am using it as:

<script language="javascript" src="/modules/example/javascript/test.js"> </script>

I have tried fallback://modules/example/javascript/test.js as well.

but I think this is not the right way.

Regards
Sac


On Wed, Oct 14, 2009 at 6:30 PM, Andreas Hartmann <andreas@...> wrote:
sac sha schrieb:

Hi All

I want to use fallback functionality for my javascripts, css and other resources. What I want to do is to use my internal modules css if available, global modules(with the same name) css otherwise.
I am trying to get it through fallback but not able to get it.

Fallback between different module versions is not yet supported. Actually it should not be possible to deploy multiple modules with the same name.

At the moment fallback works only for publications, i.e.

          $CHILD_PUB/lenya/modules/navigation/ …
overrides  $PARENT_PUB/lenya/modules/navigation/ …
overrides  $LENYA_HOME/src/modules/navigation/ …


In most cases you can use publication templating for a quite flexible fallback setup.


Sorry … As always, patches and ideas are very welcome :)


-- Andreas


--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...




--
Regards
Sachin Sharma


Re: How to make choice between resources of internal and external modules?

by Andreas Hartmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

sac sha schrieb:

> Hi  Andreas
>
> Thanks for the mail.
> I am trying to achieve exactly the same functionality which you
> mentioned ie.:
>
> $CHILD_PUB/lenya/modules/
>
>     navigation/ …
>     overrides  $PARENT_PUB/lenya/modules/navigation/ …
>     overrides  $LENYA_HOME/src/modules/navigation/ …
>
>
> But some reason I am not able to apply it. Say if I want to apply a
> javascript as fallback how I can achieve that? Right now I am using it as:
>
> <script language="javascript" src="/modules/example/javascript/test.js">
> </script>

That looks good. Unfortunately I don't have time to look into it at the
moment, would you mind filing a bug? Thanks!

-- Andreas


>
> I have tried fallback://modules/example/javascript/test.js as well.
>
> but I think this is not the right way.
>
> Regards
> Sac
>
>
> On Wed, Oct 14, 2009 at 6:30 PM, Andreas Hartmann <andreas@...
> <mailto:andreas@...>> wrote:
>
>     sac sha schrieb:
>
>         Hi All
>
>         I want to use fallback functionality for my javascripts, css and
>         other resources. What I want to do is to use my internal modules
>         css if available, global modules(with the same name) css otherwise.
>         I am trying to get it through fallback but not able to get it.
>
>
>     Fallback between different module versions is not yet supported.
>     Actually it should not be possible to deploy multiple modules with
>     the same name.
>
>     At the moment fallback works only for publications, i.e.
>
>               $CHILD_PUB/lenya/modules/navigation/ …
>     overrides  $PARENT_PUB/lenya/modules/navigation/ …
>     overrides  $LENYA_HOME/src/modules/navigation/ …
>
>
>     In most cases you can use publication templating for a quite
>     flexible fallback setup.
>
>
>     Sorry … As always, patches and ideas are very welcome :)
>
>
>     -- Andreas
>
>
>     --
>     Andreas Hartmann, CTO
>     BeCompany GmbH
>     http://www.becompany.ch
>     Tel.: +41 (0) 43 818 57 01
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: user-unsubscribe@...
>     <mailto:user-unsubscribe@...>
>     For additional commands, e-mail: user-help@...
>     <mailto:user-help@...>
>
>
>
>
> --
> Regards
> Sachin Sharma
>


--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: How to make choice between resources of internal and external modules?

by sac sha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Andreas

Bug raised (#48000).

Thanks for suggestions.

Regards
Sac

On Thu, Oct 15, 2009 at 10:20 AM, Andreas Hartmann <andreas@...> wrote:
sac sha schrieb:

Hi  Andreas

Thanks for the mail.
I am trying to achieve exactly the same functionality which you mentioned ie.:

$CHILD_PUB/lenya/modules/

   navigation/ …
   overrides  $PARENT_PUB/lenya/modules/navigation/ …
   overrides  $LENYA_HOME/src/modules/navigation/ …


But some reason I am not able to apply it. Say if I want to apply a javascript as fallback how I can achieve that? Right now I am using it as:

<script language="javascript" src="/modules/example/javascript/test.js"> </script>

That looks good. Unfortunately I don't have time to look into it at the moment, would you mind filing a bug? Thanks!

-- Andreas



I have tried fallback://modules/example/javascript/test.js as well.

but I think this is not the right way.

Regards
Sac


On Wed, Oct 14, 2009 at 6:30 PM, Andreas Hartmann <andreas@... <mailto:andreas@...>> wrote:

   sac sha schrieb:

       Hi All

       I want to use fallback functionality for my javascripts, css and
       other resources. What I want to do is to use my internal modules
       css if available, global modules(with the same name) css otherwise.
       I am trying to get it through fallback but not able to get it.


   Fallback between different module versions is not yet supported.
   Actually it should not be possible to deploy multiple modules with
   the same name.

   At the moment fallback works only for publications, i.e.

             $CHILD_PUB/lenya/modules/navigation/ …
   overrides  $PARENT_PUB/lenya/modules/navigation/ …
   overrides  $LENYA_HOME/src/modules/navigation/ …


   In most cases you can use publication templating for a quite
   flexible fallback setup.


   Sorry … As always, patches and ideas are very welcome :)


   -- Andreas


   --    Andreas Hartmann, CTO
   BeCompany GmbH
   http://www.becompany.ch
   Tel.: +41 (0) 43 818 57 01


   ---------------------------------------------------------------------
   To unsubscribe, e-mail: user-unsubscribe@...
   <mailto:user-unsubscribe@...>

   For additional commands, e-mail: user-help@...
   <mailto:user-help@...>




--
Regards
Sachin Sharma



--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...




--
Regards
Sachin Sharma