Discussion:
Jahia 6 Community Edition - size of a containerList populated by a query
MesDocs ParMail
2009-02-16 22:23:07 UTC
Permalink
Hi,

I'd like to retrieve the size of a containerList populated by a query.
My page will have different rendering if the result size is 1 or
more.

I have tested (and printed) the size attribute of the containerList
tag but it seemed to be empty.

How can I get this information ?

Thanks.

Mesdocs.
Sergiy Shyrkov
2009-02-17 09:50:08 UTC
Permalink
Hello,


the following example shows how to get the size of a container list (no
matter if it is populated by a query or not - the size property is
available on the ContainerListBean instance, exposed into its scope by
<template:containerList/> tag):

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
...
<template:containerList name="events" id="eventsContainer"
actionMenuNamePostFix="events"
actionMenuNameLabelKey="events"
sortByField="${sortBy}" enforceDefinedSort="true" sortOrder="${order}">
<query:containerQuery>
<query:selector nodeTypeName="web_templates:eventContainer"
selectorName="eventsSelector"/>
<query:childNode selectorName="eventsSelector"
path="${eventsContainer.JCRPath}"/>
<utility:dateUtil currentDate="${param.startDate}"
datePattern="dd/MM/yyyy" valueID="today" hours="0"
minutes="0"
seconds="0"/>
<query:greaterThanOrEqualTo numberValue="true"
propertyName="startDate" value="${today.time}"/>
</query:containerQuery>

...
do display it
...
We have ${eventsContainer.size}events

<c:if test="${eventsContainer.size > 1}">
we have multiple events
</c:if>
<c:if test="${eventsContainer.size == 1}">
we have a single event
</c:if>
<c:if test="${eventsContainer.size == 0}">
no events at all
</c:if>
</template:containerList>


Could you give us, please, the example of code, you are trying to use?

Kind regards
Sergiy
Post by MesDocs ParMail
Hi,
I'd like to retrieve the size of a containerList populated by a query.
My page will have different rendering if the result size is 1 or
more.
I have tested (and printed) the size attribute of the containerList
tag but it seemed to be empty.
How can I get this information ?
Thanks.
Mesdocs.
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
MesDocs ParMail
2009-02-17 13:50:43 UTC
Permalink
Hello,

This the code i test. my_templates derives from web_templates.


<template:containerList id="actusList" displayActionMenu="false">

<query:containerQuery>
<query:selector nodeTypeName="my_templates:actusContainer"
selectorName="actusListSelector"/>
<query:descendantNode selectorName="actusListSelector"
path="${currentSite.JCRPath}"/>
<query:setProperty name="${queryConstants.SEARCH_MAX_HITS}"
value="${maxActus}" />
<query:sortBy propertyName="actusDate"
order="${queryConstants.ORDER_DESCENDING}"/>
</query:containerQuery>

<c:if test="${empty actusList.size}">
actusList is empty<br/>
</c:if>

SIZE : ${actusList.size}

<c:if test="${actusList.size > 1}">
<%@ include
file="../../../containers/actusContent/smallActusDisplay.jspf" %>
</c:if>
<c:if test="${actusList.size == 1}">
<%@ include
file="../../../containers/actusContent/smallOneActuDisplay.jspf" %>
</c:if>
</template:containerList>

The ouptut :

actusList is empty
SIZE :


Kind regards
Medocs
Post by Sergiy Shyrkov
Hello,
the following example shows how to get the size of a container list (no
matter if it is populated by a query or not - the size property is
available on the ContainerListBean instance, exposed into its scope by
...
<template:containerList name="events" id="eventsContainer"
actionMenuNamePostFix="events"
actionMenuNameLabelKey="events"
sortByField="${sortBy}" enforceDefinedSort="true" sortOrder="${order}">
<query:containerQuery>
<query:selector nodeTypeName="web_templates:eventContainer"
selectorName="eventsSelector"/>
<query:childNode selectorName="eventsSelector"
path="${eventsContainer.JCRPath}"/>
<utility:dateUtil currentDate="${param.startDate}"
datePattern="dd/MM/yyyy" valueID="today" hours="0"
minutes="0"
seconds="0"/>
<query:greaterThanOrEqualTo numberValue="true"
propertyName="startDate" value="${today.time}"/>
</query:containerQuery>
...
do display it
...
We have ${eventsContainer.size}events
<c:if test="${eventsContainer.size > 1}">
we have multiple events
</c:if>
<c:if test="${eventsContainer.size == 1}">
we have a single event
</c:if>
<c:if test="${eventsContainer.size == 0}">
no events at all
</c:if>
</template:containerList>
Could you give us, please, the example of code, you are trying to use?
Kind regards
Sergiy
Post by MesDocs ParMail
Hi,
I'd like to retrieve the size of a containerList populated by a query.
My page will have different rendering if the result size is 1 or
more.
I have tested (and printed) the size attribute of the containerList
tag but it seemed to be empty.
How can I get this information ?
Thanks.
Mesdocs.
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
Sergiy Shyrkov
2009-02-17 14:09:56 UTC
Permalink
Hello,

could you please ensure that your JSP has a tag library declaration for
JSTL core:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

Can you check please the generated HTML code of the page? If if contains
untranslated JSTL tags, than something is wrong with the JSTL tag lib
declaration.
The check ${empty actusList.size} is not quite correct as the
actusList.size is of type int. To check if the container list is empty
use: ${actusList.size == 0}

By the way, does the container list is getting displayed at all?

Kind regards
Sergiy
Post by Sergiy Shyrkov
Hello,
This the code i test. my_templates derives from web_templates.
<template:containerList id="actusList" displayActionMenu="false">
<query:containerQuery>
<query:selector nodeTypeName="my_templates:actusContainer"
selectorName="actusListSelector"/>
<query:descendantNode selectorName="actusListSelector"
path="${currentSite.JCRPath}"/>
<query:setProperty name="${queryConstants.SEARCH_MAX_HITS}"
value="${maxActus}" />
<query:sortBy propertyName="actusDate"
order="${queryConstants.ORDER_DESCENDING}"/>
</query:containerQuery>
<c:if test="${empty actusList.size}">
actusList is empty<br/>
</c:if>
SIZE : ${actusList.size}
<c:if test="${actusList.size > 1}">
file="../../../containers/actusContent/smallActusDisplay.jspf" %>
</c:if>
<c:if test="${actusList.size == 1}">
file="../../../containers/actusContent/smallOneActuDisplay.jspf" %>
</c:if>
</template:containerList>
actusList is empty
Kind regards
Medocs
Post by Sergiy Shyrkov
Hello,
the following example shows how to get the size of a container list (no
matter if it is populated by a query or not - the size property is
available on the ContainerListBean instance, exposed into its scope by
...
<template:containerList name="events" id="eventsContainer"
actionMenuNamePostFix="events"
actionMenuNameLabelKey="events"
sortByField="${sortBy}" enforceDefinedSort="true" sortOrder="${order}">
<query:containerQuery>
<query:selector nodeTypeName="web_templates:eventContainer"
selectorName="eventsSelector"/>
<query:childNode selectorName="eventsSelector"
path="${eventsContainer.JCRPath}"/>
<utility:dateUtil currentDate="${param.startDate}"
datePattern="dd/MM/yyyy" valueID="today" hours="0"
minutes="0"
seconds="0"/>
<query:greaterThanOrEqualTo numberValue="true"
propertyName="startDate" value="${today.time}"/>
</query:containerQuery>
...
do display it
...
We have ${eventsContainer.size}events
<c:if test="${eventsContainer.size > 1}">
we have multiple events
</c:if>
<c:if test="${eventsContainer.size == 1}">
we have a single event
</c:if>
<c:if test="${eventsContainer.size == 0}">
no events at all
</c:if>
</template:containerList>
Could you give us, please, the example of code, you are trying to use?
Kind regards
Sergiy
Post by MesDocs ParMail
Hi,
I'd like to retrieve the size of a containerList populated by a query.
My page will have different rendering if the result size is 1 or
more.
I have tested (and printed) the size attribute of the containerList
tag but it seemed to be empty.
How can I get this information ?
Thanks.
Mesdocs.
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
MesDocs ParMail
2009-02-17 21:08:57 UTC
Permalink
Hello,

I code the template in the same manner as the web_templates.

The taglib has been translated. I found this line of code in the
resulting java file :

_jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean)
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${actusList.size
== 0 }", java.lang.Boolean.class, (PageContext)_jspx_page_context,
null, false)).booleanValue());

If I do not use the <c:if> tag to display the containers, these are
displayed correctly.

Kind regards,
Mesdocs.
Post by Sergiy Shyrkov
Hello,
could you please ensure that your JSP has a tag library declaration for
Can you check please the generated HTML code of the page? If if contains
untranslated JSTL tags, than something is wrong with the JSTL tag lib
declaration.
The check ${empty actusList.size} is not quite correct as the
actusList.size is of type int. To check if the container list is empty
use: ${actusList.size == 0}
By the way, does the container list is getting displayed at all?
Kind regards
Sergiy
Post by Sergiy Shyrkov
Hello,
This the code i test. my_templates derives from web_templates.
<template:containerList id="actusList" displayActionMenu="false">
<query:containerQuery>
<query:selector nodeTypeName="my_templates:actusContainer"
selectorName="actusListSelector"/>
<query:descendantNode selectorName="actusListSelector"
path="${currentSite.JCRPath}"/>
<query:setProperty name="${queryConstants.SEARCH_MAX_HITS}"
value="${maxActus}" />
<query:sortBy propertyName="actusDate"
order="${queryConstants.ORDER_DESCENDING}"/>
</query:containerQuery>
<c:if test="${empty actusList.size}">
actusList is empty<br/>
</c:if>
SIZE : ${actusList.size}
<c:if test="${actusList.size > 1}">
file="../../../containers/actusContent/smallActusDisplay.jspf" %>
</c:if>
<c:if test="${actusList.size == 1}">
file="../../../containers/actusContent/smallOneActuDisplay.jspf" %>
</c:if>
</template:containerList>
actusList is empty
Kind regards
Medocs
Post by Sergiy Shyrkov
Hello,
the following example shows how to get the size of a container list (no
matter if it is populated by a query or not - the size property is
available on the ContainerListBean instance, exposed into its scope by
...
<template:containerList name="events" id="eventsContainer"
actionMenuNamePostFix="events"
actionMenuNameLabelKey="events"
sortByField="${sortBy}" enforceDefinedSort="true" sortOrder="${order}">
<query:containerQuery>
<query:selector nodeTypeName="web_templates:eventContainer"
selectorName="eventsSelector"/>
<query:childNode selectorName="eventsSelector"
path="${eventsContainer.JCRPath}"/>
<utility:dateUtil currentDate="${param.startDate}"
datePattern="dd/MM/yyyy" valueID="today" hours="0"
minutes="0"
seconds="0"/>
<query:greaterThanOrEqualTo numberValue="true"
propertyName="startDate" value="${today.time}"/>
</query:containerQuery>
...
do display it
...
We have ${eventsContainer.size}events
<c:if test="${eventsContainer.size > 1}">
we have multiple events
</c:if>
<c:if test="${eventsContainer.size == 1}">
we have a single event
</c:if>
<c:if test="${eventsContainer.size == 0}">
no events at all
</c:if>
</template:containerList>
Could you give us, please, the example of code, you are trying to use?
Kind regards
Sergiy
Post by MesDocs ParMail
Hi,
I'd like to retrieve the size of a containerList populated by a query.
My page will have different rendering if the result size is 1 or
more.
I have tested (and printed) the size attribute of the containerList
tag but it seemed to be empty.
How can I get this information ?
Thanks.
Mesdocs.
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
Jahia papez
2009-02-17 21:48:42 UTC
Permalink
_______________________________________________
template_list mailing list
***@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
MesDocs ParMail
2009-02-17 22:27:14 UTC
Permalink
'That's it !

Adding the name attribute to the containerList solves the problem.

Thank you very much.

Mesdocs.
Hi Mesdocs,
I think the problem in your code is that the name="actusContainer" attribute
is missing in the <template:containerList> tag. I think that "name" should
be set as a required attribute. Please try it and let me know, if it worked.
Regards,
Benjamin
Hello,
I code the template in the same manner as the web_templates.
The taglib has been translated. I found this line of code in the
_jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean)
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${actusList.size
== 0 }", java.lang.Boolean.class, (PageContext)_jspx_page_context,
null, false)).booleanValue());
If I do not use the <c:if> tag to display the containers, these are
displayed correctly.
Kind regards,
Mesdocs.
Hello,
could you please ensure that your JSP has a tag library declaration for
Can you check please the generated HTML code of the page? If if contains
untranslated JSTL tags, than something is wrong with the JSTL tag lib
declaration.
The check ${empty actusList.size} is not quite correct as the
actusList.size is of type int. To check if the container list is empty
use: ${actusList.size == 0}
By the way, does the container list is getting displayed at all?
Kind regards
Sergiy
Hello,
This the code i test. my_templates derives from web_templates.
<template:containerList id="actusList" displayActionMenu="false">
<query:containerQuery>
<query:selector nodeTypeName="my_templates:actusContainer"
selectorName="actusListSelector"/>
<query:descendantNode selectorName="actusListSelector"
path="${currentSite.JCRPath}"/>
<query:setProperty name="${queryConstants.SEARCH_MAX_HITS}"
value="${maxActus}" />
<query:sortBy propertyName="actusDate"
order="${queryConstants.ORDER_DESCENDING}"/>
</query:containerQuery>
<c:if test="${empty actusList.size}">
actusList is empty<br/>
</c:if>
SIZE : ${actusList.size}
<c:if test="${actusList.size > 1}">
file="../../../containers/actusContent/smallActusDisplay.jspf" %>
</c:if>
<c:if test="${actusList.size == 1}">
file="../../../containers/actusContent/smallOneActuDisplay.jspf" %>
</c:if>
</template:containerList>
actusList is empty
Kind regards
Medocs
Hello,
the following example shows how to get the size of a container list (no
matter if it is populated by a query or not - the size property is
available on the ContainerListBean instance, exposed into its scope by
...
<template:containerList name="events" id="eventsContainer"
actionMenuNamePostFix="events"
actionMenuNameLabelKey="events"
sortByField="${sortBy}" enforceDefinedSort="true" sortOrder="${order}">
<query:containerQuery>
<query:selector nodeTypeName="web_templates:eventContainer"
selectorName="eventsSelector"/>
<query:childNode selectorName="eventsSelector"
path="${eventsContainer.JCRPath}"/>
<utility:dateUtil currentDate="${param.startDate}"
datePattern="dd/MM/yyyy" valueID="today" hours="0"
minutes="0"
seconds="0"/>
<query:greaterThanOrEqualTo numberValue="true"
propertyName="startDate" value="${today.time}"/>
</query:containerQuery>
...
do display it
...
We have ${eventsContainer.size}events
<c:if test="${eventsContainer.size > 1}">
we have multiple events
</c:if>
<c:if test="${eventsContainer.size == 1}">
we have a single event
</c:if>
<c:if test="${eventsContainer.size == 0}">
no events at all
</c:if>
</template:containerList>
Could you give us, please, the example of code, you are trying to use?
Kind regards
Sergiy
Hi,
I'd like to retrieve the size of a containerList populated by a query.
My page will have different rendering if the result size is 1 or
more.
I have tested (and printed) the size attribute of the containerList
tag but it seemed to be empty.
How can I get this information ?
Thanks.
Mesdocs.
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
ali DAN-BOUZOUA
2009-02-17 18:23:46 UTC
Permalink
Im using this code below derives from news/definitions.inc

I would like to use notitleoverwrite property in order to remove the input field for the page title (jahia 5. guide p. 34).

<content:declareField name="link"
title="Link" type="Page"
value="<jahia_linkonly, , notitleoverwrite>"
titleKey="docun.link" bundleKey="<%=resBundleID%>"
/>


But

1. It's doesn't seems to works

2.jahia_linkonly is used instead oflinkonly as describes in the documentation

Any idea about how to make it works?

Kind regards
Benjamin Papez
2009-02-17 22:04:47 UTC
Permalink
Hello,

"notitleoverwrite" was supposed to be introduced in Jahia 5.1, which
unfortunately has not been released yet. We have a Jahia 5 trunk with some
performance and feature enhancements prepared, but not released yet. Instead
the jahia 5 hotfix SVN branch was used to release jahai 5.0.5 recently.

Which version are you using ? If you want, I could send you a patched
page_field.jsp, which is reacting on a notitleoverwrite keyword.

Regarding the "jahia_linkonly" versus "linkonly" - I think both will work,
because the code is simply checking for the occurence of "linkonly".

Regards,
Benjamin
Post by ali DAN-BOUZOUA
Im using this code below derives from news/definitions.inc
I would like to use notitleoverwrite property in order to remove the input
field for the page title (jahia 5. guide p. 34).
<content:declareField name="link"
title="Link" type="Page"
value="<jahia_linkonly, , notitleoverwrite>"
titleKey="docun.link" bundleKey="<%=resBundleID%>"
/>
But
1. It's doesn't seems to works
2. jahia_linkonly is used instead of linkonly as describes in the
documentation
Any idea about how to make it works?
Kind regards
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
ali DAN-BOUZOUA
2009-02-17 23:27:51 UTC
Permalink
Hello,
Which version are you using ?  
jahia5.0.4_r21181

But I can move my dev to a latest Jahia 5.XX if requiered (I'm testing also in // Jahia 6)
If you want, I could send you a patched page_field.jsp, which is reacting on a notitleoverwrite keyword.
Yes please, send me the patched page_field.jsp

Have good night


 



________________________________
From: Benjamin Papez <***@gmail.com>
To: Any questions regarding template development and/or about the taglibs extension <***@jahia.org>
Sent: Tuesday, February 17, 2009 5:04:47 PM
Subject: Re: [template_list] Page Field notitleoverwrite on Jahia 5.1

Hello,

"notitleoverwrite" was supposed to be introduced in Jahia 5.1, which unfortunately has not been released yet. We have a Jahia 5 trunk with some performance and feature enhancements prepared, but not released yet. Instead the jahia 5 hotfix SVN branch was used to release jahai 5.0.5 recently.

Which version are you using ? If you want, I could send you a patched page_field.jsp, which is reacting on a notitleoverwrite keyword.

Regarding the "jahia_linkonly" versus "linkonly" - I think both will work, because the code is simply checking for the occurence of "linkonly".

Regards,
Benjamin


2009/2/17 ali DAN-BOUZOUA <***@yahoo.com>


Im using this code below derives from news/definitions.inc

I would like to use notitleoverwrite property in order to remove the input field for the page title (jahia 5. guide p. 34).

<content:declareField name="link"
            title="Link" type="Page"
            value="<jahia_linkonly, , notitleoverwrite>"
            titleKey="docun.link" bundleKey="<%=resBundleID%>"
        />


But

1. It's doesn't seems to works

2.jahia_linkonly is used instead oflinkonly as describes in the documentation

Any idea about how to make it works?

Kind regards
Benjamin Papez
2009-02-18 20:44:59 UTC
Permalink
Hello,

attached is the page_fields.jsp. You have to copy it to the directory
tomcat\webapps\jahia\jsp\jahia\engines\shared of a Jahia 5.0.4 or 5.0.5
version.

If existing, you must also remove the precompile entries for page_field.jsp
from tomcat\webapps\jahia\WEB-INF\web.xml:
<servlet>
<servlet-name>org.jahia.jsp.jahia.war.jsp.jahia.engines.shared.page_005ffield_jsp</servlet-name>

<servlet-class>org.jahia.jsp.jahia.war.jsp.jahia.engines.shared.page_005ffield_jsp</servlet-class>

</servlet>

<servlet-mapping>
<servlet-name>org.jahia.jsp.jahia.war.jsp.jahia.engines.shared.page_005ffield_jsp</servlet-name>

<url-pattern>/jsp/jahia/engines/shared/page_field.jsp</url-pattern>
</servlet-mapping>

Hope that helps,
Benjamin

PS.: The keyword is not yet implemented in Jahia 6, where all these
definitions did undergo some major refactoring and some of them still need
to be implemented to have the same set of features as in Jahia 5.
Post by Sergiy Shyrkov
Hello,
Post by ali DAN-BOUZOUA
Post by Benjamin Papez
Which version are you using ?
jahia5.0.4_r21181
But I can move my dev to a latest Jahia 5.XX if requiered (I'm testing also in // Jahia 6)
Post by ali DAN-BOUZOUA
Post by Benjamin Papez
If you want, I could send you a patched page_field.jsp, which is
reacting on a notitleoverwrite keyword.
Yes please, send me the patched page_field.jsp
Have good night
------------------------------
*To:* Any questions regarding template development and/or about the
*Sent:* Tuesday, February 17, 2009 5:04:47 PM
*Subject:* Re: [template_list] Page Field notitleoverwrite on Jahia 5.1
Hello,
"notitleoverwrite" was supposed to be introduced in Jahia 5.1, which
unfortunately has not been released yet. We have a Jahia 5 trunk with some
performance and feature enhancements prepared, but not released yet. Instead
the jahia 5 hotfix SVN branch was used to release jahai 5.0.5 recently.
Which version are you using ? If you want, I could send you a patched
page_field.jsp, which is reacting on a notitleoverwrite keyword.
Regarding the "jahia_linkonly" versus "linkonly" - I think both will work,
because the code is simply checking for the occurence of "linkonly".
Regards,
Benjamin
Post by ali DAN-BOUZOUA
Im using this code below derives from news/definitions.inc
I would like to use notitleoverwrite property in order to remove the
input field for the page title (jahia 5. guide p. 34).
<content:declareField name="link"
title="Link" type="Page"
value="<jahia_linkonly, , notitleoverwrite>"
titleKey="docun.link" bundleKey="<%=resBundleID%>"
/>
But
1. It's doesn't seems to works
2. jahia_linkonly is used instead of linkonly as describes in the
documentation
Any idea about how to make it works?
Kind regards
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
ali DAN-BOUZOUA
2009-02-21 02:18:02 UTC
Permalink
Thanks, it's works




________________________________
From: Benjamin Papez <***@gmail.com>
To: Any questions regarding template development and/or about the taglibs extension <***@jahia.org>
Sent: Wednesday, February 18, 2009 3:44:59 PM
Subject: Re: [template_list] Page Field notitleoverwrite on Jahia 5.1

Hello,

attached is the page_fields.jsp. You have to copy it to the directory tomcat\webapps\jahia\jsp\jahia\engines\shared of a Jahia 5.0.4 or 5.0.5 version.

If existing, you must also remove the precompile entries for page_field.jsp from tomcat\webapps\jahia\WEB-INF\web.xml:
<servlet>
<servlet-name>org.jahia.jsp.jahia.war.jsp.jahia.engines.shared.page_005ffield_jsp</servlet-name>
<servlet-class>org.jahia.jsp.jahia.war.jsp.jahia.engines.shared.page_005ffield_jsp</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>org.jahia.jsp.jahia.war.jsp.jahia.engines.shared.page_005ffield_jsp</servlet-name>
<url-pattern>/jsp/jahia/engines/shared/page_field.jsp</url-pattern>
</servlet-mapping>

Hope that helps,
Benjamin

PS.: The keyword is not yet implemented in Jahia 6, where all these definitions did undergo some major refactoring and some of them still need to be implemented to have the same set of features as in Jahia 5.


2009/2/18 ali DAN-BOUZOUA <***@yahoo.com>

Hello,
Post by Benjamin Papez
Which version are you using ?
jahia5.0.4_r21181

But I can move my dev to a latest Jahia 5.XX if requiered (I'm testing also in // Jahia 6)
Post by Benjamin Papez
If you want, I could send you a patched page_field.jsp, which is reacting on a notitleoverwrite keyword.
Yes please, send me the patched page_field.jsp

Have good night






________________________________
From: Benjamin Papez <***@gmail.com>
To: Any questions regarding template development and/or about the taglibs extension <***@jahia.org>
Sent: Tuesday, February 17, 2009 5:04:47 PM
Subject: Re: [template_list] Page Field notitleoverwrite on Jahia 5.1


Hello,

"notitleoverwrite" was supposed to be introduced in Jahia 5.1, which unfortunately has not been released yet. We have a Jahia 5 trunk with some performance and feature enhancements prepared, but not released yet. Instead the jahia 5 hotfix SVN branch was used to release jahai 5.0.5 recently.

Which version are you using ? If you want, I could send you a patched page_field.jsp, which is reacting on a notitleoverwrite keyword.

Regarding the "jahia_linkonly" versus "linkonly" - I think both will work, because the code is simply checking for the occurence of "linkonly".

Regards,
Benjamin


2009/2/17 ali DAN-BOUZOUA <***@yahoo.com>


Im using this code below derives from news/definitions.inc

I would like to use notitleoverwrite property in order to remove the input field for the page title (jahia 5. guide p. 34).

<content:declareField name="link"
title="Link" type="Page"
value="<jahia_linkonly, , notitleoverwrite>"
titleKey="docun.link" bundleKey="<%=resBundleID%>"
/>


But

1. It's doesn't seems to works

2.jahia_linkonly is used instead oflinkonly as describes in the documentation

Any idea about how to make it works?

Kind regards

Loading...