[redhat-ccm-list] Aplaws Job Content Type File Attachments

David Young David.Young at southoxon.gov.uk
Thu Apr 29 09:40:26 UTC 2004


I added the following to the aplaws-cms-item-adapters.xml file:

  <!-- Adds Attachments to Job Content Type -->
  <adapter objectType="com.arsdigita.cms.contenttypes.Job"
             
context="com.arsdigita.cms.dispatcher.SimpleXMLGenerator">
    <associations rule="include">
      <property name="/object/fileAttachments"/>
    </associations>
  </adapter>

Which worked, thank you!

David

>>> "Daniel P. Berrange" <berrange at redhat.com> 28/04/2004 17:43:18 >>>
On Tue, Apr 27, 2004 at 12:39:00PM +0100, David Young wrote:
> Hi,
> 
> We are hoping to modify the default 'job' content type so that it
can
> display file attachments.  The content type seems to support file
> attachments as the cms backend allows the attachment of files, and
> checking the database tables show that the association exists. 
However
> the attachments do not seem to appear in the rendered xml.  At what
> stage / which source files do I need to look at to enable the display
of
> these attachments.

All content types automatically have asupportt for file attachments
without need for any code modifications. If the files are not being
listed in the XML, then the 'aplaws-item-adapters.xml' must be missing
the rule to include them for Job - compare the Job rules with those
for Article identify the missing rules.

Dan.
-- 
|=-             Daniel P. Berrange  -  berrange at redhat.com             
-=|
|=-   Red Hat, 338 Euston Road, London, NW1 3BT.  +44 (0)7977 267 243  
-=|
|=-                                                                    
-=|
|=- GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505
-=| 


**********************************************************************
The information contained in this transmission may be
confidential and may also be the subject of legal
professional privilege. If you are not the intended recipient,
any use, disclosure or copying of any part of this transmission
is unauthorised. If you have received this transmission in
error, please notify the originator immediately.

www.southoxon.gov.uk
**********************************************************************





More information about the Redhat-ccm-list mailing list