Copying dFlip posts to sites with different length URL
-
I’m attempting to set up local copies of several sites – one of which has (currently) 130 dFlip posts and will continue to grow. In the long term I’d like my process to work as seamlessly as possible and be bi-directional (live to local AND local to live).
I’ve used the common processes of replacing occurrences of ‘old-URL’ with ‘new-URL’ (eg – ‘my-site.co.uk….’ with ‘my-site.lcl….’). This does not appear to work with dFlip as the length of the pdf_source and pdf_thumb strings are stored in the _dflip_data metadata. The dFlip pdfs work in the local copy if the stored URL string length is corrected as well.
I’ve written a python workaround to fix the stored lengths – eg – myMetaValue.replace(‘pdf_source”;s:’ + pdfSourceOldLenStr, ‘pdf_source”;s:’ + pdfSourceNewLenStr), and similar for the pdf_thumb. That seems to work for me, but only handles the live to local copy because I have access to python on the local system.
I’m aware that I could write a plugin to handle the local to live copy, and execute that at the end of my local to live copy. However, before I go off at a tangent I wanted to find out if there is already a mechanism in dFlip which I am not aware of to handle these situations which – I would think – are not uncommon.
- The topic ‘Copying dFlip posts to sites with different length URL’ is closed to new replies.