[Logo] Forums for GrailsFlow, Weceem, XSLfast
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Problem whith display data + editor  XML
Forum Index » Weceem Forum
Author Message
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
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
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
 
Forum Index » Weceem Forum
Go to:   
Powered by JForum 2.1.8 © JForum Team