Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I'm new here, from Hungary. After searching awhile, I have a question: Can user create a new document type with preset fields like in Image without pre-save hook programming knowledge ? Thanks, Antal Koós
Post Follow-up to this messageI can't think of any good alternatives, so I think a Pre-Save hook is the only way to go. Regards, Karel On Wed, 2008-06-11 at 12:31 +0200, Antal Ko=C3=B3s wrote: > Hi, >=20 > I'm new here, from Hungary. > After searching awhile, I have a question: > Can user create a new document type with preset fields like in Image > without pre-save hook programming knowledge ? >=20 > Thanks, > Antal Ko=C3=B3s > ________________________________________ _______ > daisy community mailing list > Professional Daisy support: http://outerthought.org/en/services/daisy/s= upport.html > mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org > list information: http://lists.cocoondev.org/mailman/listinfo/daisy ________________________________________ _______ daisy community mailing list Professional Daisy support: http://outerthought.org/en/services/daisy/sup= port.html mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org list information: http://lists.cocoondev.org/mailman/listinfo/daisy
Post Follow-up to this messageAntal Ko=F3s wrote: > Hi, >=20 > I'm new here, from Hungary. > After searching awhile, I have a question: > Can user create a new document type with preset fields like in Image > without pre-save hook programming knowledge ? Create a document with the preset data and save it. To create a new=20 document with this as the template simply copy the original. Alternatively you can use an URL to create and edit a new document that=20 is a copy of the first document, e.g.: http://localhost:8888/OSSWatch/new/...&template=3D59= &branch=3Dmain&language=3Ddefault Where template=3D* is the id of the template document. Ross ________________________________________ _______ daisy community mailing list Professional Daisy support: http://outerthought.org/en/services/daisy/sup= port.html mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org list information: http://lists.cocoondev.org/mailman/listinfo/daisy
Post Follow-up to this messageAfter the given example I found the HTTP API and I'll dig into the documentation. Thanks, Antal Koós On Wed, Jun 11, 2008 at 13:52, Ross Gardler <rgardler@apache.org> wrote: > Antal Koós wrote: > > Create a document with the preset data and save it. To create a new docume nt > with this as the template simply copy the original. > > Alternatively you can use an URL to create and edit a new document that is a > copy of the first document, e.g.: > > http://localhost:8888/OSSWatch/new/...anguage=default > > Where template=* is the id of the template document. > > Ross > > > > ________________________________________ _______ > daisy community mailing list > Professional Daisy support: > http://outerthought.org/en/services/daisy/support.html > mail to: daisy@lists.cocoondev.org > list information: http://lists.cocoondev.org/mailman/listinfo/daisy >
Post Follow-up to this messageI am using the URL solution, but have the following doubt: How could I = change the collection the newly created document pertains to in this = case? Thanks for your advice heidi -----Mensaje original----- De: daisy-bounces-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org = [mailto:daisy-bounces-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org] En nombre de Ross Gardler Enviado el: Mi=E9rcoles, 11 de Junio de 2008 07:53 a.m. Para: open source CMS - general mailinglist Asunto: Re: [daisy] Preset fields Antal Ko=F3s wrote: > Hi, >=20 > I'm new here, from Hungary. > After searching awhile, I have a question: > Can user create a new document type with preset fields like in Image > without pre-save hook programming knowledge ? Create a document with the preset data and save it. To create a new=20 document with this as the template simply copy the original. Alternatively you can use an URL to create and edit a new document that=20 is a copy of the first document, e.g.: http://localhost:8888/OSSWatch/new/...&template=3D59= &branch=3Dmain&language=3Ddefault Where template=3D* is the id of the template document. Ross ________________________________________ _______ daisy community mailing list Professional Daisy support: = http://outerthought.org/en/services/daisy/support.html mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org list information: http://lists.cocoondev.org/mailman/listinfo/daisy ________________________________________ _______ daisy community mailing list Professional Daisy support: http://outerthought.org/en/services...rt.html mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org list information: http://lists.cocoondev.org/mailman/listinfo/daisy
Post Follow-up to this messageHi=20 Have a look at this document http://cocoondev.org/daisydocs-2_2/...-cd/297-cd.html In the part about 'custom initialization' there is an explanation in using an extension to prepare your new documents. I think that would be the way to go. Paul On Thu, 2008-06-12 at 08:36 -0400, heidi-eFrZVjfhYYvph/Ezu1j11w@public.gmane.org wrote:[col or=darkred] > I am using the URL solution, but have the following doubt: How could I =[/color] change the collection the newly created document pertains to in this case= ? >=20 > Thanks for your advice >=20 > heidi >=20 > -----Mensaje original----- > De: daisy-bounces-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org [mailto:daisy- bounces-81qHHgoATdH4k79VXL33Dw@public.gmane.org= ndev.org] En nombre de Ross Gardler > Enviado el: Mi=C3=A9rcoles, 11 de Junio de 2008 07:53 a.m. > Para: open source CMS - general mailinglist > Asunto: Re: [daisy] Preset fields >=20 > Antal Ko=C3=B3s wrote: >=20 > Create a document with the preset data and save it. To create a new=20 > document with this as the template simply copy the original. >=20 > Alternatively you can use an URL to create and edit a new document that= =20 > is a copy of the first document, e.g.: >=20 > http://localhost:8888/OSSWatch/new/...ue&template=3D= 59&branch=3Dmain&language=3Ddefault >=20 > Where template=3D* is the id of the template document. >=20 > Ross >=20 >=20 >=20 > ________________________________________ _______ > daisy community mailing list > Professional Daisy support: http://outerthought.org/en/services/daisy/s= upport.html > mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org > list information: http://lists.cocoondev.org/mailman/listinfo/daisy > ________________________________________ _______ > daisy community mailing list > Professional Daisy support: http://outerthought.org/en/services/daisy/s= upport.html > mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org > list information: http://lists.cocoondev.org/mailman/listinfo/daisy ________________________________________ _______ daisy community mailing list Professional Daisy support: http://outerthought.org/en/services/daisy/sup= port.html mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org list information: http://lists.cocoondev.org/mailman/listinfo/daisy
Post Follow-up to this messageThanks Paul, I am using documents with 'custom initialization', but in = the specific case I would have preferred starting with a template and = put it in the default collection of the actual site and not that of the = template site. Starting with content initialization (which works fine in = most cases) would be quite a large js heidi -----Mensaje original----- De: daisy-bounces-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org = [mailto:daisy-bounces-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org] En nombre de Paul Focke Enviado el: Jueves, 12 de Junio de 2008 09:06 a.m. Para: Daisy: open source CMS - general mailinglist Asunto: RE: [daisy] Preset fields Hi=20 Have a look at this document http://cocoondev.org/daisydocs-2_2/...-cd/297-cd.html In the part about 'custom initialization' there is an explanation in using an extension to prepare your new documents. I think that would be the way to go. Paul On Thu, 2008-06-12 at 08:36 -0400, heidi-eFrZVjfhYYvph/Ezu1j11w@public.gmane.org wrote:[col or=darkred] > I am using the URL solution, but have the following doubt: How could I =[/color] change the collection the newly created document pertains to in this = case? >=20 > Thanks for your advice >=20 > heidi >=20 > -----Mensaje original----- > De: daisy-bounces-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org = [mailto:daisy-bounces-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org] En nombre de Ross Gardler > Enviado el: Mi=E9rcoles, 11 de Junio de 2008 07:53 a.m. > Para: open source CMS - general mailinglist > Asunto: Re: [daisy] Preset fields >=20 > Antal Ko=F3s wrote: >=20 > Create a document with the preset data and save it. To create a new=20 > document with this as the template simply copy the original. >=20 > Alternatively you can use an URL to create and edit a new document = that=20 > is a copy of the first document, e.g.: >=20 > = http://localhost:8888/OSSWatch/new/...&template=3D59= &branch=3Dmain&language=3Ddefault >=20 > Where template=3D* is the id of the template document. >=20 > Ross >=20 >=20 >=20 > ________________________________________ _______ > daisy community mailing list > Professional Daisy support: = http://outerthought.org/en/services/daisy/support.html > mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org > list information: http://lists.cocoondev.org/mailman/listinfo/daisy > ________________________________________ _______ > daisy community mailing list > Professional Daisy support: = http://outerthought.org/en/services/daisy/support.html > mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org > list information: http://lists.cocoondev.org/mailman/listinfo/daisy ________________________________________ _______ daisy community mailing list Professional Daisy support: = http://outerthought.org/en/services/daisy/support.html mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org list information: http://lists.cocoondev.org/mailman/listinfo/daisy ________________________________________ _______ daisy community mailing list Professional Daisy support: http://outerthought.org/en/services...rt.html mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org list information: http://lists.cocoondev.org/mailman/listinfo/daisy
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.