Hello,
 
    Thank you for your answer, Philippe! Unfortunately, that doesn't seem to work.
Here is the code for the field declaration :
 
jData.containers().declareFieldDefProp("my_photo_gallery_link",JahiaFieldDefinitionProperties.FIELD_UPDATE_JSP_FILE_PROP,templatesPath + "my_metadata_link.jsp");
jData.containers().declareField("my_photo_gallery_link",ResourceBundleMarker.drawMarker(resBundleID, "link","Link"),FieldTypes.PAGE,"");
my_photo_gallery_fields.add("my_photo_gallery_link");
 
And here is the my_metadata_link.jsp :
 
<SCRIPT type="text/_javascript_">
<!--
 alert('Jahia Page Edition');
// -->
</SCRIPT>
 
For the moment, I just put a _javascript_ alert in this file.
 
I tested this code on smalltext field and it works perfectly but on page field, it doesn't work!!
Is it a known problem??
 
Any suggestion would be very helpful ;-)
 
Thanks,
-Sylvie

Philippe Vollenweider <[EMAIL PROTECTED]> wrote:
Hello,

The default value "" for the Page field prevent new a page
creation. But in your case, I think that you should use
JahiaContainerSet.declareFieldDefProp(String fieldName, String propName,
String propValue) and make a test on your field.
There is an example of such declaration in the "Document Listing" template.

Cheers,

Philippe

At 21.09.2004 18:50, you wrote:
>Hi,
>
> I'd like to prevent some users from making a link to an existing
> jahia page or creating a link to an external website for example in a
> jahia page field. Where can I do this?? Is it in
> /engines/shared/page_field.jsp? I did some changes in this file but
> without any success... Even after flushing the jahia cache.
>Any help would be great,
>Thank you
>
>-Sylvie
>
>
>Cr�ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
>Cr�ez
>votre Yahoo! Mail
>
>Le nouveau Yahoo! Messenger est arriv� ! D�couvrez toutes les nouveaut�s
>pour dialoguer instantan�ment avec vos amis.
>T�l�chargez
>GRATUITEMENT ici !

-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company



Cr�ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Cr�ez votre Yahoo! Mail

Le nouveau Yahoo! Messenger est arriv� ! D�couvrez toutes les nouveaut�s pour dialoguer instantan�ment avec vos amis. T�l�chargez GRATUITEMENT ici !

Reply via email to