[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lenya-user
Subject:    Re: How to make choice between resources of internal and external
From:       sac sha <sacsha30 () gmail ! com>
Date:       2009-10-15 9:47:39
Message-ID: c51abe450910150247t70859a7dne4bf7c4255d5207c () mail ! gmail ! com
[Download RAW message or body]

Hi Andreas

Bug raised (#48000).

Thanks for suggestions.

Regards
Sac

On Thu, Oct 15, 2009 at 10:20 AM, Andreas Hartmann <andreas@apache.org>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@apache.org<mailto:
>> andreas@apache.org>> 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@lenya.apache.org
>>    <mailto:user-unsubscribe@lenya.apache.org>
>>    For additional commands, e-mail: user-help@lenya.apache.org
>>    <mailto:user-help@lenya.apache.org>
>>
>>
>>
>>
>> --
>> 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@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>


-- 
Regards
Sachin Sharma

[Attachment #3 (text/html)]

Hi Andreas<br><br>Bug raised (#48000). <br><br>Thanks for \
suggestions.<br><br>Regards<br>Sac<br><br><div class="gmail_quote">On Thu, Oct 15, \
2009 at 10:20 AM, Andreas Hartmann <span dir="ltr">&lt;<a \
href="mailto:andreas@apache.org">andreas@apache.org</a>&gt;</span> wrote:<br> \
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">sac sha schrieb:<div class="im"><br> \
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi  Andreas<br>
<br>
Thanks for the mail.<br>
I am trying to achieve exactly the same functionality which you mentioned ie.:<br>
<br>
$CHILD_PUB/lenya/modules/<br>
<br>
    navigation/ …<br>
    overrides  $PARENT_PUB/lenya/modules/navigation/ …<br>
    overrides  $LENYA_HOME/src/modules/navigation/ …<br>
<br>
<br>
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:<br> <br>
&lt;script language=&quot;javascript&quot; \
src=&quot;/modules/example/javascript/test.js&quot;&gt; &lt;/script&gt;<br> \
</blockquote> <br></div>
That looks good. Unfortunately I don&#39;t have time to look into it at the moment, \
would you mind filing a bug? Thanks!<br> <br>
-- Andreas<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"> <br>
I have tried fallback://modules/example/javascript/test.js as well.<br>
<br>
but I think this is not the right way.<br>
<br>
Regards<br>
Sac<br>
<br>
<br></div><div class="im">
On Wed, Oct 14, 2009 at 6:30 PM, Andreas Hartmann &lt;<a \
href="mailto:andreas@apache.org" target="_blank">andreas@apache.org</a> &lt;mailto:<a \
href="mailto:andreas@apache.org" target="_blank">andreas@apache.org</a>&gt;&gt; \
wrote:<br>

<br>
    sac sha schrieb:<br>
<br>
        Hi All<br>
<br>
        I want to use fallback functionality for my javascripts, css and<br>
        other resources. What I want to do is to use my internal modules<br>
        css if available, global modules(with the same name) css otherwise.<br>
        I am trying to get it through fallback but not able to get it.<br>
<br>
<br>
    Fallback between different module versions is not yet supported.<br>
    Actually it should not be possible to deploy multiple modules with<br>
    the same name.<br>
<br>
    At the moment fallback works only for publications, i.e.<br>
<br>
              $CHILD_PUB/lenya/modules/navigation/ …<br>
    overrides  $PARENT_PUB/lenya/modules/navigation/ …<br>
    overrides  $LENYA_HOME/src/modules/navigation/ …<br>
<br>
<br>
    In most cases you can use publication templating for a quite<br>
    flexible fallback setup.<br>
<br>
<br>
    Sorry … As always, patches and ideas are very welcome :)<br>
<br>
<br>
    -- Andreas<br>
<br>
<br>
    --     Andreas Hartmann, CTO<br>
    BeCompany GmbH<br>
    <a href="http://www.becompany.ch" target="_blank">http://www.becompany.ch</a><br>
    Tel.: +41 (0) 43 818 57 01<br>
<br>
<br>
    ---------------------------------------------------------------------<br>
    To unsubscribe, e-mail: <a href="mailto:user-unsubscribe@lenya.apache.org" \
target="_blank">user-unsubscribe@lenya.apache.org</a><br></div>  &lt;mailto:<a \
href="mailto:user-unsubscribe@lenya.apache.org" \
target="_blank">user-unsubscribe@lenya.apache.org</a>&gt;<div class="im"><br>  For \
additional commands, e-mail: <a href="mailto:user-help@lenya.apache.org" \
target="_blank">user-help@lenya.apache.org</a><br></div>  &lt;mailto:<a \
href="mailto:user-help@lenya.apache.org" \
target="_blank">user-help@lenya.apache.org</a>&gt;<br> <br>
<br>
<br>
<br>
-- <br>
Regards<br>
Sachin Sharma<br>
<br>
</blockquote><div><div></div><div class="h5">
<br>
<br>
-- <br>
Andreas Hartmann, CTO<br>
BeCompany GmbH<br>
<a href="http://www.becompany.ch" target="_blank">http://www.becompany.ch</a><br>
Tel.: +41 (0) 43 818 57 01<br>
<br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a href="mailto:user-unsubscribe@lenya.apache.org" \
target="_blank">user-unsubscribe@lenya.apache.org</a><br> For additional commands, \
e-mail: <a href="mailto:user-help@lenya.apache.org" \
target="_blank">user-help@lenya.apache.org</a><br> <br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards<br>Sachin \
Sharma<br><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic