<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Using clay label in search container column text</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119541690" />
  <subtitle>Using clay label in search container column text</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119541690</id>
  <updated>2026-04-06T09:50:05Z</updated>
  <dc:date>2026-04-06T09:50:05Z</dc:date>
  <entry>
    <title>RE: Using clay label in search container column text</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119543241" />
    <author>
      <name>Reiner Zufall</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119543241</id>
    <updated>2020-07-06T09:32:44Z</updated>
    <published>2020-07-06T09:32:44Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;I found a way to implement this behavier:&lt;br&gt;&lt;pre&gt;&lt;code&gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;liferay-ui:search-container-column-text name="Status"&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;clay:label label="RandomLabel" style="info" /&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;/liferay-ui:search-container-column-text&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;I got the clay label displayed, now i have to do some query to change the label text&lt;br&gt;With the &amp;lt;c:if&amp;gt; and use of the modelVar of searchContainer it is possible to change the label text depending on the saved status in database&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Reiner Zufall</dc:creator>
    <dc:date>2020-07-06T09:32:44Z</dc:date>
  </entry>
  <entry>
    <title>Using clay label in search container column text</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119541689" />
    <author>
      <name>Reiner Zufall</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119541689</id>
    <updated>2020-07-06T07:33:03Z</updated>
    <published>2020-07-06T07:33:03Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello everybody&lt;br&gt;I am new at Liferay and i have a question concerning clay label. Is there a way to display clay label within "liferay-ui:search-container-column-text"&lt;br&gt;i tried something like this:&lt;br&gt;&lt;pre&gt;&lt;code&gt;
 &amp;lt;liferay-ui:search-container-column-test name="status" property="status" &amp;lt;clay:label label="Pending" style="warning" /&amp;gt;
 /&amp;amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;but it doesn't work as expected.&lt;br&gt;I know there is a way using "&amp;lt;liferay-ui:search-container-column-status property="status"/&amp;gt;", but i need more Lables than column status provide.&lt;br&gt;And is it possible to switch clay labels depending on the status value which is saved in the database?&lt;br&gt;i am using Liferay 7.2.1&lt;br&gt;best regards&lt;br&gt;Reiner&lt;br&gt;&lt;br&gt;I add a picture to show what i want to do. If there is an other way to do this, let me know&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Reiner Zufall</dc:creator>
    <dc:date>2020-07-06T07:33:03Z</dc:date>
  </entry>
</feed>
