Hi
I'm trying to build an asset listing page that automatically separates the content into individual pages based on a metadata field.
So here is an example of what I'm trying to achieve:
I have a large number of assets all tagged with the same metadata schema "Vehicles".
I want the asset listing page to have a page index generated based on the Vehicles metadata field so that the keyword %page_list% will print on the page as something like "Car Truck Bike Boat".
Each page will show all assets tagged with the same Vehicle. So the Car page may have 200 results to display on it's page, and the Boat page may only have 50 results to display.
Assume for this example that the option of having multiple asset listing pages is not an option.
Maybe this can be achieve with Asset Grouping? Or not at all?
Any and all help is welcome. Thanks
Seperate asset listing based on metadata
Instead of Asset Listing You should use Search Page asset with search field set as metadata.
Good luck!
Paul
I would be a bit careful of a Search Page with an expected result of 200 assets without a very powerful server. You would probably comfortably get away working something in JS to filter the results or so on depending on the size and scope of your project. If you're getting larger than that, why wouldn't you simply move the assets into thier own sub folder? Ie. Car / Truck / Bike / Boat
Perhaps you have a little more information?
Thanks for the replies.
Client doesn't want a search page but that was our first option until they said no - sigh.
I was thinking of a folder setup however trying to make that user friendly wasn't going to happen considering that there will be around 40 folders, some with sub-folders, then a mirror folder architecture for archived content that only needs to be kept for 14 days. I could get trigger happy but I'd prefer the system not to crash
[quote]
I was thinking of a folder setup however trying to make that user friendly wasn't going to happen considering that there will be around 40 folders, some with sub-folders, then a mirror folder architecture for archived content that only needs to be kept for 14 days. I could get trigger happy but I'd prefer the system not to crash
[/quote]
If you wanted to describe exactly what you were trying to achieve perhaps there is a simple way of achieving this without going mad with triggers…
[quote]
Have you thought about doing this with link values
Dave
[/quote]
Ooooh. Interesting. STORYTIME.
[quote]
Ooooh. Interesting. STORYTIME.
[/quote]
Well not exactly Storytime, but Tutorial time
http://community.squiz.net/intermediate/listing-assets-based-on-link-value
Dave
[quote]
Well not exactly Storytime, but Tutorial time
http://community.squiz.net/intermediate/listing-assets-based-on-link-value
Dave
[/quote]
Fantastic! Thanks for creating a tutorial!
Thanks for the tutorial Dave.
This will come in handy in the future.
Duncan - here is the story:
I have 32 categories to divide news content into. Some of these may have sub categories, but not always.
For each category I'd like a separate page to show only the content for that category (there can be 1 to many results for each category).
To navigate through each category I was hoping to have the category names printed and linked by the system. When you click on a name, it then displays the relevant information (much like separate pages generated by an asset listing that can be navigated with the page index).
This all has an accompanying metadata schema - unless there is another way - but each item will need to have several extra bits of info, eg. date, title, source, name, description.
Currently the content is displayed on one whole page, and divided up by groups generated by metadata 'Category' and metadata 'Subcategory'. The client does not mind that all the content is on the single page, but I'd prefer to neaten it up.
Asset Listing + Paint layout for default format + Conditional on the metadata ?
[quote]
Can you explain?
[/quote]
http://manuals.matrix.squizsuite.net/paint-layouts/chapters/conditional-keywords-screen/
[quote]
http://manuals.matrix.squizsuite.net/paint-layouts/chapters/conditional-keywords-screen/
[/quote]
tyvm
[quote]
Well not exactly Storytime, but Tutorial time
http://community.squiz.net/intermediate/listing-assets-based-on-link-value
Dave
[/quote]
Nice one. Real handy. Thanks!
[quote]
Well not exactly Storytime, but Tutorial time
http://community.squiz.net/intermediate/listing-assets-based-on-link-value
Dave
[/quote]
Any way to dynamically generate the link value? Pass in a GET variable or use a keyword?
Aloha - great suggestions!
I'm bumping this as http://community.squiz.net/bookmark seems to be down since yesterday,
does anyone recall the contents of the http://community.squiz.net/intermediate/listing-assets-based-on-link-value source link at all??
Specifically I'm trying to target printing that custom "link value" area in an asset listing as I'm doing a site audit of dependancies, hoping to extract the custom link value field (if any)?
- JS calls to it as; "link_value":"link value",
- and on the page its: page_standard_XXXX_link_value[XXXX]
So I thought something like - %asset_attribute_link_value% (but actually working)?