[opencms-dev] How to exclude article, flexible content title from display if title not available

Filip Kratochvil filip.kratochvil at nelasoft.cz
Sat Jun 11 23:38:25 CEST 2016


Hi Manoj,

 

check this topic:

 

Accessing values in JSPs

http://documentation.opencms.org/opencms-documentation/content-in-opencms/defining-a-content-type/defining-the-contents-structure/the-xsd-choice-element/index.html#4

 

Use something like this in your formatter:

 

<c:if test="${value.Title.exists}">

<div class="headline"><h3>${value.Title}</h3></div>

</c:if>

 

--
S pozdravem / Kind regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail:  <mailto:filip.kratochvil at nelasoft.cz> filip.kratochvil at nelasoft.cz
Web:  <http://www.nelasoft.cz/> www.nelasoft.cz

Twitter:  <https://twitter.com/NELASOFT> @NELASOFT

 

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Manoj Sharma
Sent: Saturday, June 11, 2016 6:47 PM
To: opencms-dev at opencms.org
Subject: [opencms-dev] How to exclude article, flexible content title from display if title not available

 

Hi,

 

I want to remove all articles, flexible content etc. title heading from display in page if title is not provided as per WAI-ARIA. Like i have not provided many articles with the title but when these article displays on web page article title displaying. I don't want to display if title not provided.

 

<div class="headline"><h3></h3></div>

 

Whenever title not provided then above line will be display, i want don't want to display if title not provided.

 

How can i achieve this, please let e know.


-- 

 

Cheers
Manoj K. Sharma

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20160611/b6550cab/attachment.htm>


More information about the opencms-dev mailing list