Fóruns

Início » Liferay Portal » English » 2. Using Liferay » General

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Carlo Cavallieri
CMS - Structures - missing "date" type?
27 de Janeiro de 2010 09:25
Resposta

Carlo Cavallieri

Ranking: Junior Member

Mensagens: 67

Data de entrada: 7 de Março de 2008

Mensagens recentes

I'm missing something or in the definition of a Structure there is no way to define a "date field"?

Is "insert plain text without format check" my only option?
Corné Aussems
RE: CMS - Structures - missing "date" type?
27 de Janeiro de 2010 12:38
Resposta

Corné Aussems

Ranking: Liferay Legend

Mensagens: 1284

Data de entrada: 3 de Outubro de 2006

Mensagens recentes

What about three selection lists?
dd mm yyyy

<dynamic-element name='day' type='multi-list' repeatable='false'>
<dynamic-element name='1' type='1' repeatable='false'></dynamic-element>
<dynamic-element name='2' type='2' repeatable='false'></dynamic-element>
<dynamic-element name='3' type='3' repeatable='false'></dynamic-element>
<dynamic-element name='4' type='4' repeatable='false'></dynamic-element>
<dynamic-element name='31' type='31' repeatable='false'></dynamic-element>
</dynamic-element>

<dynamic-element name='month' type='multi-list' repeatable='false'>
<dynamic-element name='1' type='1' repeatable='false'></dynamic-element>
<dynamic-element name='2' type='2' repeatable='false'></dynamic-element>
<dynamic-element name='3' type='3' repeatable='false'></dynamic-element>
<dynamic-element name='4' type='4' repeatable='false'></dynamic-element>
<dynamic-element name='12' type='12' repeatable='false'></dynamic-element>
</dynamic-element>

<dynamic-element name='year' type='multi-list' repeatable='false'>
<dynamic-element name='2008' type='2008' repeatable='false'></dynamic-element>
<dynamic-element name='2009' type='2009' repeatable='false'></dynamic-element>
<dynamic-element name='2010' type='2010' repeatable='false'></dynamic-element>
<dynamic-element name='2011' type='2011' repeatable='false'></dynamic-element>
</dynamic-element>
Carlo Cavallieri
RE: CMS - Structures - missing "date" type?
28 de Janeiro de 2010 01:05
Resposta

Carlo Cavallieri

Ranking: Junior Member

Mensagens: 67

Data de entrada: 7 de Março de 2008

Mensagens recentes

ok, that was a possible solution, a little "static" but should work ...

strange that the CMS doesn't have this sort of "field type", i thought it was obvious.
Corné Aussems
RE: CMS - Structures - missing "date" type?
28 de Janeiro de 2010 01:11
Resposta

Corné Aussems

Ranking: Liferay Legend

Mensagens: 1284

Data de entrada: 3 de Outubro de 2006

Mensagens recentes

I couldn't agree more;

I created a feature request for you
http://issues.liferay.com/browse/LPS-7431
Carlo Cavallieri
RE: CMS - Structures - missing "date" type?
28 de Janeiro de 2010 01:18
Resposta

Carlo Cavallieri

Ranking: Junior Member

Mensagens: 67

Data de entrada: 7 de Março de 2008

Mensagens recentes

great, thanks!
Szymon Gołębiewski
RE: CMS - Structures - missing "date" type?
16 de Novembro de 2010 08:23
Resposta

Szymon Gołębiewski

Ranking: Regular Member

Mensagens: 247

Data de entrada: 8 de Junho de 2009

Mensagens recentes

Also you can assign validators to fields in strcture (I think it's the new feature since 6.0.1) so you can check if user entered properly formated date.
Corné Aussems
RE: CMS - Structures - missing "date" type?
16 de Novembro de 2010 08:26
Resposta

Corné Aussems

Ranking: Liferay Legend

Mensagens: 1284

Data de entrada: 3 de Outubro de 2006

Mensagens recentes

latest status is; its in backlog
Moved to product backlog: this feature is very interesting and may be added in the next mayor version. It'll be analyzed.