Asset Listing page that generates reports in CSV


(Ryan Archer) #1

Hi All,

 

Just wondering if there is a way to generate an asset listing page but have it export out a CSV file with the information as opposed to generating a HTML page with the results.

 

I just need have the asset listing go through all the pages within a site and list some data about them.

 

Just hoping that there is a way to put it in a CSV format. I searched the Squiz Matrix manuals and could not see any mention of this ability.

My question is - can I?


Download ALP that generates reports in CSV
(Joel Porgand) #2

Create a design with a parse file like:

<MySource_PRINT id_name="__global__" var="content_type" content_type="text/csv" />
<MySource_AREA id_name="page_body" design_area="body" />
<MySource_PRINT id_name="__global__" var="content_attachment" extension="csv" />

and apply it to your asset listing.

 

Tailor your asset listing body/display format to suit and you should be golden. 


(Ryan Archer) #3

Thanks, I will give that a try. My main issue now is getting particular data out of my asset listing. I cannot find keywords to list the following data for each page asset:

  • URL
  • Page Author
  • Last Updated Date

Is this possible and if so, where should I be looking. This is like my first asset listing.


(Ryan Archer) #4

It's all good. Did some more reading @

 

http://manuals.matrix.squizsuite.net/keyword-replacements/chapters/common-keywords

 

AND

 

http://manuals.matrix.squizsuite.net/keyword-replacements/chapters/metadata


(Ryan Archer) #5

Thanks @JP, yeah it did work like a charm. Just had to edit the page a bit so it did not spit out so much HTML.

Of course some HTML came out (small amount) because I didn't go too far with editing the design asset. It's good enough for what we want.