Re: Customize Jahia Page Edition
sylvie donatien <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
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 !