I'm trying to write an install.ascx file that will allow the doc types in the package underneath the otherdocument types on the site its being installed on.
Similar to the 'allowDocumentType' package action but dynamic.
The thought is that i can use one install.ascx file and include it in any package. It will read the package.xml file to determine the package types being installed, and read the website to know what document types are available to allow under.
My question: is there a class that will give me access to the package, or package.xml file of the package, that this install.ascx file is running in? I would like to avoid manually opening and parsing the .xml file if possible.
Accessing install package programmatically
I'm trying to write an install.ascx file that will allow the doc types in the package underneath the otherdocument types on the site its being installed on.
Similar to the 'allowDocumentType' package action but dynamic.
The thought is that i can use one install.ascx file and include it in any package. It will read the package.xml file to determine the package types being installed, and read the website to know what document types are available to allow under.
My question: is there a class that will give me access to the package, or package.xml file of the package, that this install.ascx file is running in? I would like to avoid manually opening and parsing the .xml file if possible.
is working on a reply...