Change the default setting for Allow Unrestricted Access to "No"


(Gjboyd7) #1

Hi

 

We want all our editors pdf files which are being added using Edit +, to have friendly URL's.

 

The only option for doing this seems to be through matrix, setting the Allow unrestricted access option to "No" on the asset details screen.  This puts quite a workload on matrix admin's having to change this option everytime an Edit + editor adds a new pdf.

 

By default this is set to yes.  Is there a way to change this default for the system?

 

Thanks


(Nic Hubbard) #2

Just make sure you understand the speed and performance ramifications that forcing Matrix to serve those PDFs might have.

 

Have you looked into using a Trigger for this?


(Gjboyd7) #3

We are a university, and any pdf's included on our website, need to have friendly url's. It makes sense to provide the friendly url by default.  Not really sure what the performance ramifications would be, is there anyone who can provide more details on performance?

 

We haven't considered triggers, as thought there may be a configuration option hidden somewhere in matrix for changing default.  Would you be able to provide us with guidance on what the event, conditions and actions would be for doing this?

 

Many thanks


(Nic Hubbard) #4

We are a university, and any pdf's included on our website, need to have friendly url's. It makes sense to provide the friendly url by default.  Not really sure what the performance ramifications would be, is there anyone who can provide more details on performance?

 

We are a University as well, but have not had to do this. Are you not able to refer people to pages that then link to various PDF files?

 

As for performance, you will be forcing Matrix to serve the files rather than Apache. Which can cause slowdowns. 

 

For the trigger, you can do something like the following (tested and it works): 

 


(Gjboyd7) #5

Many thanks Nic.

 

We were getting a lot of requests for friendly urls, for campaigns, and including links in emails, its useful to know it can be done with the trigger, thanks for showing how. 

 

I think you mention a better practice way of doing things, refer people to pages or a page that then link to the PDF files, which we may look at including in our content styleguide.  A pdf holding page, something like this maybe https://www.gov.uk/government/publications/field-safety-notice-fsn-what-it-is-and-why-its-important.

 

Thanks for your help.