Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Preset fields
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

Report this thread to moderator Post Follow-up to this message
Old Post
Antal Koós
06-11-08 01:40 PM


Re: Preset fields
I 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


Report this thread to moderator Post Follow-up to this message
Old Post
Karel Vervaeke
06-11-08 01:40 PM


Re: 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/sup=
port.html
mail to: daisy-81qHHgoATdGcMQoVcdA18UB+6BGkLq7r@public.gmane.org
list information: http://lists.cocoondev.org/mailman/listinfo/daisy


Report this thread to moderator Post Follow-up to this message
Old Post
Ross Gardler
06-11-08 01:40 PM


Re: Preset fields
After 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
>

Report this thread to moderator Post Follow-up to this message
Old Post
Antal Koós
06-12-08 12:55 AM


RE: Preset fields
I 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


Report this thread to moderator Post Follow-up to this message
Old Post

06-12-08 02:14 PM


RE: 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-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


Report this thread to moderator Post Follow-up to this message
Old Post
Paul Focke
06-12-08 02:14 PM


RE: Preset fields
Thanks 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


Report this thread to moderator Post Follow-up to this message
Old Post

06-13-08 01:05 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Daisy Content Management archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 02:17 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.