DrQuincy Posted June 29, 2021 Share Posted June 29, 2021 If you have a Files field in the same template as a Textarea CKEditor field when you insert a link you can link to any of the files uploaded to the aforementioned files field. The same goes for Images fields and inserting images. Is there a way to have a central Files field as part of say a document-storage template and have all files uploaded here available to all Textarea CKEditor fields regardless of what template they are on? In searching for an answer I found Media Manager, which looks interesting. But I wondered if there was a way within the Processwire core to do this. I know I could make each file a page and that could be selected from CKEditor and then I do something in my code to read the file but was more interested in linking directly to the file in this instance. Thanks. Link to comment Share on other sites More sharing options...
Robin S Posted June 29, 2021 Share Posted June 29, 2021 1 hour ago, DrQuincy said: Is there a way to have a central Files field as part of say a document-storage template and have all files uploaded here available to all Textarea CKEditor fields regardless of what template they are on? Technically files on any page are available to link to on any other page. You use the "Select Page" field to choose the page that holds the file you want to link to and then select a file from that page. But to make it quicker to select files from one or more special "library" pages there is this handy module: https://processwire.com/modules/media-library/ 2 Link to comment Share on other sites More sharing options...
DrQuincy Posted June 29, 2021 Author Share Posted June 29, 2021 Quote You use the "Select Page" field to choose the page that holds the file you want to link to and then select a file from that page. Sometimes you can't see the forest for the trees, thanks! ? Thanks, also for module you linked to, that looks great. You seem to crop up the minute I ask a question here; I most owe you a fair few beers by now. ? 1 Link to comment Share on other sites More sharing options...
rick Posted June 29, 2021 Share Posted June 29, 2021 23 minutes ago, DrQuincy said: You seem to crop up the minute I ask a question here; I most owe you a fair few beers by now. ? The "S" stands for stealthy ? 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now