On Tue, Dec 1, 2009 at 12:56 PM, Guillaume Lerouge <guillaume(a)xwiki.com>wrote;wrote:
Hi Joe,
On Tue, Dec 1, 2009 at 6:43 PM, Joe Shuster <joseph.shuster(a)gmail.com
wrote:
> Thanks for the quick response, Guillaume.
>
> On Tue, Dec 1, 2009 at 12:34 PM, Guillaume Lerouge <guillaume(a)xwiki.com
>
wrote:
>
> > Hi Joe,
> >
> > On Tue, Dec 1, 2009 at 6:00 PM, Joe Shuster <joseph.shuster(a)gmail.com
> >
wrote:
> >
> > > I have created a class that will be used to display SOPs (standard
> > > operating
> > > procedures). I have assigned the class its required properties
(mostly
> of
> > data types String and TextArea) and generated the class sheet and
class
> > template. When I create new
documents/instances of the SOPClass, the
> > documents look like the SOPTemplate.
> >
> > I've tried populating the constant properties in the SOPTemplate and
> > creating a new document. The new document looks like the SOPTemplate
in
> > structure but does not have any values
associated with its
properties.
>
>
> Do you mean you edited the SOPTemplate page with the object editor and
> added
> your constant properties in the relevant object fields?
>
> If you did so, when creating a new SOP those values should be copied
from
the
template.
Yes, this is what I did. The values don't seem to be copied when I
create
a new SOP based on the template. I'm going to try to recreate my class
and
see if it helps.
Weird, what code do you use to create new items? Normally the SOPTemplate
page gets copied during the creation process thus any data stored in it and
its objects should get copied too. I used that in the past.
I've been creating my classes, sheets, templates, properties, etc based on
the
FAQ Tutorial on the Xwiki website. The objects are copied fine but the
text stored in the SOPTemplate objects isn't copied with them.
The SOPClass was created in a Space not named Main. I created a new class
in the Main Space assuming that I messed up the default parent or default
space assignment. However the new class created in Main still does not
propagate data saved in the template object when I create a new document.
I'm completely befuddled. Maybe it's time to trade in XWiki 2.0.3 for XWiki
2.0.4.
>
> > Is
> > there a way that the SOPTemplate can propagate it's property values
to
new
instances of the SOPClass? That is, I want some
(but not all) of the
properties of SOPClass to be the same for every new
document/instantiation
> of the SOPClass. Is this possible? Similarly, if these constant
> properties
> are modified in the future, I'd like the changes to be distributed
across
> > all instances of SOPClass.
> >
>
> Is this value supposed to be user-editable? If it is, it's gonna be
hard
to
propagate if it gets changed. On the other hand
if it's not
user-editable,
there's not much of a point in using an
object to store it.
Please forgive my naivety but how would I store "static" text (ie, text
that is not user editable) within a class/template.
As text on the Class' Sheet page.
Simply edit the Sheet page and add some content on it -> it will
immediately
change for all your documents.
Thanks, that was easy. I wish the text contained within my SOPTemplate
Thanks again,
Joe
Guillaume
Any and all help is greatly appreciated.
Joe
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users