| Author |
Message |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 28/07/2010 20:42:30
|
leobarrientos
Joined: 27/07/2010 14:29:44
Messages: 6
Offline
|
Hi,
I need to use the richEditor to create a News (News is a class that extends WcmContent)
how can use in a gsp page.
how can I show the name of Space and Status, my app display className :S
thanks
Leonardo
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 25/08/2010 22:18:27
|
or3L
Joined: 21/06/2010 10:24:35
Messages: 46
Location: Melbourne, Australia
Offline
|
Hi leobarrientos,
That's normal!
Have you taken a look in "org.weceem.content.WcmContent.groovy" ?
There is no "content" attribute !
I guess what you want to do is something like that :
As you can see, I have just add an attribute called "nameOfTheLink" and I have edit some attributes thanks to the inheritance.
From now on, in your content repository, you can add a new content called "RichHTMLContent".
If you really want to extend "WcmContent"..
You can do something like that:
or if you want, you can do that as well :
Do not forget to go in your i18 folder:
add a file called "whatyouwant.properties"
Now, it's nice
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 25/08/2010 22:22:48
|
or3L
Joined: 21/06/2010 10:24:35
Messages: 46
Location: Melbourne, Australia
Offline
|
For your space and your status, try to do something like that :
static editors = {
content(editor:'RichHTML')
space()
status()
}
or try something like that:
static editors = {
content(editor:'RichHTML')
space(hidden:true)
status(hidden:true)
}
I have never tried... Everything is displayed when I create a new domain class
|
|
|
 |
|
|