3D FlipBook - Staging site, relative paths for PDF files

p***f@gmail.com
2020-10-22
2020-10-24

Hi I am testing the wordpress plugin on my staging site, to load PDFs.
As a matter of practice I do not make any changes to the production site directly.

It seems to require a full path to the PDF file. e.g. https://staging.visionateacademy.com/wp-content/uploads/2020/10/MyFile.pdf

My question is:

  • Will this automatically convert to when I merge my staging to production?
  • Alternatively is there a way I can add just the relative path /wp-content/uploads/2020/10/MyFile.pdf. The PDF URL box does not appear to allow text entry, just a button to locate the document in the library.

Replies

a***r@3dflipbook.net
2020-10-24
2020-10-24

Plugin uses pdf from media library. WordPress stores absolute urls in the database, so merge will be difficult: some urls are stored in serialized data. You need to use staging site url length the same as your production site for simple replacement in the database (php serialization saves lengths):

https://production.example - 26 characters
http://debug000000.example - 26 characters

Also you can use shortcode with pdf url: https://www.youtube.com/watch?v=U2nFc4Ksjuo - you can use relative paths there. But anyway there can be some problems in merge with some other data.

p***f@gmail.com
2020-10-24
2020-10-24

Hello. Thank you for your response. I will add a note to release instructions to adjust paths in production after every merge. Kind regards. Pete.

Log In to leave a comment