Contextual file assets


(Hopkinsd1) #1

Hello,

 

My websites needs to serve all content in both English and Welsh.

 

My question is are file assets contextual. Am I able to nest a file into a page and display an English file on English pages and a Welsh file on a Welsh page.

 

If files are not contextual how would I go about ensuring that I can nest a file on an English page and it will display a Welsh equivalent on the Welsh page.

Thanks David


(Tbaatar) #2

Is there a reason why you need to nest? instead of giving path?

 

Since all file types generally require a path to view or download e.g .PDF, Image, .FLV and File.

 

if you can give the URL path, then you simply give the path to English file for English context, and Welsh file to Welsh context.


(Hopkinsd1) #3

Hi,

 

We want to nest the file because we display downloads with an image, description and title as the screenshot shows.

 

download.jpg


(Tbaatar) #4

A better way to do this is to create the context to the actual asset that is being nested.

 

I would use comment asset and apply metadata schema.

 

Comment asset: Title, Date and Description

Applied Metadata: Path or ID to Image and PDF

 

All you have to do is edit comment asset + metadata in English or Welsh. This gives you flexibility of being able to share and expose to other parts of the site easily in both languages.