I have a pdf brochure that i need to replace but it is a pdf ive got, how do i turn this into a weblink for my site? thanks
Hi @jgou,
Do you want to have a Resource URL for it? If so, create a Resource of the type weblink where it makes sense to have it in your Resource Tree and in the content field, place the path to the file in your filesystem. So you create a new Weblink Resouce, put the full path to the resource, in the URL. I can’t recall if you need to, but you may want to include the [[++site_url]]
in the path as I think it needs to have a full URL.
are there any step by step guides i cant find any as i still dont understand any of that im afraid - thanks
So you already have a link to a PDF on your website? And you just want to point this link to a new PDF file?
How is the current solution implemented? Is it just a HTML link tag (e.g. <a href="assets/some_folder/some_filename.pdf">...</a>
) in the code that points to a file in the assets
folder?
I guess the challenge is we don’t know the context of the problem you’re trying to solve. There are many different ways to handle “turn a pdf into a weblink.”
If you could describe your website, where the existing PDF is on the site if there is one. Unless you’re talking about turning a PDF into a webpage. That’s a different can of worms.
Help us with screenshots of your existing site and Manager to show what you’ve got so we can tell you the best approach.
so in our footer we have a brochure section, i am trying to replace both brochures -
https://addvision.co/assets/brochures/2022/August/addvisionsolutionsguide.pdf (current one)
and our graphic designer has created a PDF of the new documents, so its to understand how to get a weblink to replace that document
If you don’t need the old weblink anymore, you could just upload the new PDF file to a folder in assets/
(or maybe assets/brochures/...
) and then change the value in the field “Weblink” of the current weblink to the new path.
To create a new weblink, right-click in the resource-tree and choose “Create” → “Weblink” or just create a new (normal) resource and then change the “Resource Type” (in the tab “Settings”) to “Weblink”.
I assume this edit page shown is the existing one and you want to replace the path in the Weblink field with the path to the new PDF you’re going to upload?
- First upload the PDF to the appropriate directory.
- Once done you can literally drag the file into the weblink field and it will work.
This Loom, Swap PDF in Weblink Field in MODX Revolution, should help.
Why are you using a weblink? I believe you want to make this a “static resource”, not a “weblink”. If you do that and change “Content Type” under the “Settings” tab to “PDF”, then the PDF will be loaded at the URL specified by the Alias field in the resource. Then, there will be a link at the right edge of the Static Resource field (which will replace the Weblink field) to upload and link your PDF. The advantage of this is that the public URL for the PDF will never change, no matter what new PDF you upload into the static resource.
thank you! this worked (it wasnt me who set it up like that it was the company who designed it so was trying to figure it out!)
Glad to hear it!
The wonders of MODX . . .