Imperia-Users

Home -> Imperia-Users -> 2003 -> June

  
 Date  06/18/03 12:24:33 GMT
 From  Christian Lackas
 Subject  no subject
 Previous Thread
 Next Thread
 Start of Thread
 Reference
 Previous Reply
 This Message
 Reply
 Next Reply
* Thomas Groß <> [030618 13:50]:

Hallo Thomas,

> Ich möchte gern (mit Imperia 6.5.2) in einem Template einen Link anbieten,
> mit dem man direkt einen neuen Artikel anlegen kann, also praktisch ein
> Link, wie es ihn unter 'Neues Dokument erzeugen' für die Rubrikauswahl gibt,
> z.B.
> /cgi-bin/site_newdoc.pl?newdoc_cat=/8/15/17
> Jetzt meine Frage: ist es möglich, dort noch weiter Parameter anzugeben,
> z.B. für das Metafile, den Dateinamen oder das Verzeichnis? Ich möchte
> nämlich ein anderes Metafile nehmen als das, welches in der jeweiligen
> Rubrik festgelegt wurde.

site_newdoc.pl erzeugt durch folgenden Code ein neues Dokument:

    my %params = DecodeFormData;
    [...]
    my $document = Document::Creator->new (category => $catno,
                                           variables => \%params);

Dabei enthält der Hash %params die weiteren Werte, die an das CGI-Skript
übergeben wurden. Die man-page zu Document::Creator[1] sagt weiterhin:

  new ARGS
     The constructor takes the following named arguments:

     category
        The category ID of the document to be created.

     variables
        A reference to a hash consisting of key value pairs of
        predefined variables. These variables must be references to a
        list of all values. Use the function hash2meta from Lib::Hash(3)
        if you want to pass a hash.

[1] http://www.lackas.net/imp/docs/Document/Creator.html


Gruss
 Christian

p.s. Die Wahl einer geeigneten Subjects erhöht die Wahrscheinlichkeit
auf eine Antwort (und das finden des Artikels im Archiv) beträchtlich!

--
Archiv der Mailingliste  : http://www.lackas.net/imp/ma/
Imperia-Resource-Page    : http://www.lackas.net/imp/
Wie zitiere ich richtig? : http://learn.to/quote/
Abmelden                 : mailto:?body=unsubscribe
Attachments
 1  +-[no description] multipart/signed  
 2    |-index.html message/rfc822  
 3    +-mail.pgp application/pgp-signature  

 Download mail.pgp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+8Fn+vfdv1KxkntkRApRlAJ9bFgJiR+ooFMI7If69TtLxFeykggCfW+BD
di4zsZSR2dBB28BsQiEHcPA=
=zrHU
-----END PGP SIGNATURE-----

ATTENTION: HTML attachments to this mail have been converted to plain text to prevent you from possibly malicious HTML files. Other attachments are included here without any checking. Choose your own poison! The maintainers of this site cannot be held responsible for any damage caused by these attachments.

 
 Previous Thread
 Next Thread
 Start of Thread
 Reference
 Previous Reply
 This Message
 Reply
 Next Reply
 
 06/18/03 11:45:44 GMT  Thomas Groß
 06/18/03 12:14:02 GMT  |--Georg Mavridis
 06/18/03 12:22:05 GMT  |  +--Georg Mavridis
 06/18/03 12:24:33 GMT  +--Christian Lackas
 06/18/03 13:42:20 GMT    +--Lothar Märkle

Powered by Imperia
Home | Top | Imprint