I changed de code a little bit:

<%@ page language="java" contentType="text/html; charset=UTF-8" session="false" 
%>
<%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0"; prefix="mm" %>
<mm:cloud>
<mm:import id="curtime"><mm:time time="now"/></mm:import>

<html>
        <head>
                <title></title>
        </head>

        <body>
        <table>
        <mm:node number="urban">

        <mm:relatednodes type="newsarticle" constraints="starttime > 
$curtime-24*60*60*21 AND endtime > $curtime AND publish = 'y'" max="6" 
orderby="starttime" directions="down">
                <tr>
                        <td height="50">
                
                
                        <mm:field name="title" /> <br />
                        <mm:related path="related,artist" max="1" 
orderby="related.number">
                                relatie met artiest <br />
                                <mm:node element="artist">
                                        element artiest <br />
                                        <mm:relatednodes type="image" 
role="title">
                                                relatie plaatje <br />
                                                <mm:image 
template="s(80)+quality(100)" /><br />
                                                <img src="<mm:image 
template="s(80)+quality(100)" />"/><br />
                                                
                                                <mm:image /><br />
                                                <img src="<mm:image />"/><br />
                                                
                                        </mm:relatednodes>
                                </mm:node>
                        </mm:related>
                        
                        <br /><hr /><br />
                        </td>
                </tr>
                <mm:last inverse="true">
                        <tr><td height="6"></td></tr>
                </mm:last>
        </mm:relatednodes>
        </table>
</mm:node>
</mm:cloud>
</body>
</html>


It looks of mmbase can't found the relation to de artist.... but why works it 
on the no-cache version?
And after I upload the new file the images works for a few minutes.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Smits
Sent: woensdag 20 juni 2007 11:26
To: Discussion list for designers (front-end) and community
Subject: RE: [Users] mm:image

Hi,

The code:
<%@ page language="java" contentType="text/html; charset=UTF-8" session="false" 
%>
<%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0"; prefix="mm" %>
<mm:cloud>
<mm:import id="curtime"><mm:time time="now"/></mm:import>
<html>
        <head>
                <title></title>
        </head>

        <body>
        <table>
        <mm:node number="urban">

        <mm:relatednodes type="newsarticle" constraints="starttime > 
$curtime-24*60*60*21 AND endtime > $curtime AND publish = 'y'" max="6" 
orderby="starttime" directions="down">
                <tr>
                        <td height="50">
                
                
                        <mm:field name="title" /> <br />
                        <mm:related path="related,artist" max="1" 
orderby="related.number">
                                <mm:node element="artist">
                                        <mm:relatednodes type="image" 
role="title">
                                                <mm:image 
template="s(80)+quality(100)" /><br />
                                                <img src="<mm:image 
template="s(80)+quality(100)" />"/><br />
                                                
                                                <mm:image /><br />
                                                <img src="<mm:image />"/><br />
                                                
                                        </mm:relatednodes>
                                </mm:node>
                        </mm:related>
                        
                        </td>
                </tr>
                <mm:last inverse="true">
                        <tr><td height="6"></td></tr>
                </mm:last>
        </mm:relatednodes>
        </table>
</mm:node>
</mm:cloud>
</body>
</html>

And the url: www.juize.fm/juizefm/mmbasedebug.jsp
(is the url with 2 servers and squid cache)

And the no-cache on one server: 
http://r538-cms.bluedome.net/juizefm/mmbasedebug.jsp



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of André van Toly
Sent: woensdag 20 juni 2007 10:06
To: Discussion list for designers (front-end) and community
Subject: Re: [Users] mm:image

OK,

Now I see:

<script type="text/javascript">
     // <![CDATA[
     var fo = new FlashObject("swf/headlines.swf", "hp_news1", "395",  
"50", "7", "#FFFFFF");
     fo.addVariable("url", "764325");
     fo.addVariable("id", "");
     fo.addVariable("title", "Spike Lee naar Rotterdam!");
     fo.addParam("wMode", "transparent");
     fo.addParam("menu", "false");
     fo.write("hp_news1");
     // ]]>
</script>

And the Flashes that do have images, no longer have session id's.  
That's a plus ;-)

But apperently there is/goes something wrong in your statement:

<mm:relatednodes type="newsarticle"
   constraints="starttime > $curtime-24*60*60*21 AND endtime >  
$curtime AND publish = 'y'"
   max="6" orderby="starttime" directions="down">
<mm:related path="related,artist" max="1"  
orderby="related.number"><mm:node element="artist"><mm:relatednodes  
type="image" role="title"><mm:image template="s(80)+quality(100)" /></ 
mm:relatednodes></mm:node></mm:related>
</mm:node>
</mm:relatednodes>

If I where you I would create a testpage with just the above code and  
see - without the Flashes obstructing the view - what happens. And  
maybe debug it by rephrasing your code in some way but that it still  
returns the same article titles and images and see if that helps.

---André


Op 20-jun-2007, om 9:33 heeft Dave Smits het volgende geschreven:
> Hi,
>
> Thanks; i changed it but mmbase still return no image :(
>
> http://juize.fm/juizefm/home.jsp?bladie=bla&juize=true (I used the  
> strange parameters to pass the squid-cache)
>
> Maybe you must refresh a few time to see because yesterday I drop  
> the mmbase cache (/mmbase/admin) and that worked; but that was on  
> one server and we got 2 servers running.
>
> greets
> dave
>
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:users- 
> [EMAIL PROTECTED] On Behalf Of André van Toly
> Sent: woensdag 20 juni 2007 9:00
> To: Discussion list for designers (front-end) and community
> Subject: Re: [Users] mm:image
>
> Op 20-jun-2007, om 0:13 heeft Dave Smits het volgende geschreven:
>> But solve this my problem?
>
> I do also think that your problem could be related to the session
> id's that get generated by your web application server (Tomcat?).
> These sessions get invalidated after a while, depending on your app.
> server's settings. Apparently, from what I can detect from looking
> from the outside, does your website not depend on sessions. So you
> might as well turn them off, they are on by default.
>
> The easiest way to do so is by including this page declaration in the
> very top of your template:
>
>    <%@ page language="java" contentType="text/html" session="false" %>
>
> If that does not help, your problem might be related to some other
> issue, but this needs to be eliminated first.
>
> ---André
>
>
>
>> ________________________________
>>
>> Van: [EMAIL PROTECTED] namens Michiel Meeuwissen
>> Verzonden: wo 20-6-2007 0:01
>> Aan: Discussion list for designers (front-end) and community
>> Onderwerp: Re: [Users] mm:image
>>
>>
>>
>> 2007/6/19, Dave Smits <[EMAIL PROTECTED]>:
>>> if dont have a image the result is
>>> fo.addVariable("id", ""); so the flash can't get a image.
>>>
>>> if <mm:image> work
>>> the result is fo.addVariable("id", "/juizefm/mmbase/images/
>>> 525596;jsessionid=87315FFB25CC3120B188C9FF6689344");
>>
>> Turn the session of.
>>
>> <[EMAIL PROTECTED] session="false" %>
>> or so.
>>
>>
>> Michiel
>>
>>
>> --
>> mihxil'  http://meeuw.org <http://meeuw.org/>
>> nl_NL eo_XX en_US
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://lists.mmbase.org/mailman/listinfo/users
>>
>>
>> <winmail.dat>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://lists.mmbase.org/mailman/listinfo/users
>
> --
> André van Toly
> MMBase development & Userfriendly webdesign
>
> W: http://www.toly.nl
> M: +31(0)627233562
> ------------------------------------------------------------------
> ~~<<>>~~
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.mmbase.org/mailman/listinfo/users
> ---------------------------------------------------------------------- 
> ----------
> The information contained in this communication is confidential and  
> may be legally privileged. It is intended solely for the use of the  
> individual or entity to whom it is addressed and others authorised  
> to receive it. If you are not the intended recipient you are hereby  
> notified that any disclosure, copying, distribution or taking any  
> action in relation to the contents of this information is strictly  
> prohibited and may be unlawful. Neither the sender nor the  
> represented institution are liable for the correct and complete  
> transmission of the contents of an e-mail, or for its timely receipt.
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.mmbase.org/mailman/listinfo/users
>



-- 
André van Toly
web http://www.toly.nl                            mobile +31(0)627233562
----------------------------------------------------------------~~<<>>~~


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users 
--------------------------------------------------------------------------------
  
The information contained in this communication is confidential and may be 
legally privileged. It is intended solely for the use of the individual or 
entity to whom it is addressed and others authorised to receive it. If you are 
not the intended recipient you are hereby notified that any disclosure, 
copying, distribution or taking any action in relation to the contents of this 
information is strictly prohibited and may be unlawful. Neither the sender nor 
the represented institution are liable for the correct and complete 
transmission of the contents of an e-mail, or for its timely receipt. 
  
 
_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users 
--------------------------------------------------------------------------------
  
The information contained in this communication is confidential and may be 
legally privileged. It is intended solely for the use of the individual or 
entity to whom it is addressed and others authorised to receive it. If you are 
not the intended recipient you are hereby notified that any disclosure, 
copying, distribution or taking any action in relation to the contents of this 
information is strictly prohibited and may be unlawful. Neither the sender nor 
the represented institution are liable for the correct and complete 
transmission of the contents of an e-mail, or for its timely receipt. 
  
 
_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users

Reply via email to