Asset count

If I have say, 1000 mixed Type 1 and Type 2 Word/PDF/File assets under an Asset listing … can I modify the counter to only count Type 1 PDFs? Anyone ever had to come across this before? I'm aware of the %asset_count% keyword, however I'm thinking beyond this.


Cheers!

Create a second asset listing page. Set it to direct children only, set it to list type 1 links, and to list PDF files. Then, erase everything out of the default format div. Add the %asset_count% keyword to the Page Contents, and nest that asset listing into your first asset listing Page Contents.


This will only work if you are able to use the direct children only option.

You're a genius, I'll give it a whirl! W.

Dang I don't have any success. The %asset_count% is returning a blank result. It doesn't even return the No Results message. Must be doing something wrong on the second asset listing as even when I preview it outside of it being embedded within the first asset list it's still blank. HMM.

OH BAM. I got it. After staring at the settings for a couple of hours on the embedded asset listing, I realised that it's because it won't output a result for %asset_count% without the %asset_listing% keyword. Obviously I didn't want it to list assets, that's the main Asset Listing's job, so solution was to include %asset_listing% in the Page Contents of the embedded asset listing but comment it out …


<!–%asset_listing%–>

<p>%asset_count%</p>



Works a charm! Thanks for getting me there!



W.

[quote]
OH BAM. I got it. After staring at the settings for a couple of hours on the embedded asset listing, I realised that it's because it won't output a result for %asset_count% without the %asset_listing% keyword. Obviously I didn't want it to list assets, that's the main Asset Listing's job, so solution was to include %asset_listing% in the Page Contents of the embedded asset listing but comment it out …



<!–%asset_listing%–>

<p>%asset_count%</p>



Works a charm! Thanks for getting me there!



W.

[/quote]



Yup. This is why I was saying to blank out the type format, but your solution works too!