English > Scripts and Templates
Export template: HTML List (English + German)
Sefdik:
Ah but ..... next problem.
Should this be a new post or a bug post? ???
I am learning, I am using the HTML Frames (English) that came with PVD. I have modified this and have found /plugins/templates/frames movieframe.ptm and empty.html and modified them to suit my purposes.
However empty.html does not display correctly. It works OK the first time but subsequent modifications are NOT reflected. If I delete the empty.html from the destination directory it works OK again.
So it would appear that if there is an existing empty.html in the destination directory then it DOES NOT get overwritten.
Any ideas ....
Seth, Burgundy France (where it is still not raining but not as hot as Moscow).
rick.ca:
Svenne is the author of these templates. I've moved your post to his support topic.
--- Quote ---If I delete the empty.html from the destination directory it works OK again.
--- End quote ---
I don't know why the old file would not be overwritten, but why don't you just do this? More generally, I would think clearing the destination folder or using a new one would be a prudent thing to do after making any changes to a template.
svenne:
Hi Seth, hi Rick, I'm unsure if it's a feature or a bug... ;-) Existing files in destination folder are not overwritten when copied via template (copyfile="source<->target"). This is not only the case with my template, but with templates in general. It may be intended to prevent accidental overwrites. In contrast, exported images and exported movie pages are overwritten (after prompting for confirmation to overwrite the main/index file). I'd guess it's a (minor) bug...
So if you modify a template and want to test it, you should always empty the destination folder first.
Perhaps we should tell Nostra. I'd guess that he can change that behaviour with little effort.
nostra:
Yes, it is a minor bug. I will fix it in the next plugin update.
Sefdik:
To me it seems inconsistent, I want to export my data, I have modified it, add, deleted or changed records and I have modified the templates, therefore I want it to use the new template.
It's no real hassle having to delete the empty.html first but it is inconsistent.
Maybe Nostra can give us a choice. If I knew how to modify (copyfile="source<->target") or whatever to effect an overwrite, I could do it myself.
Seth, Burgundy France (where at Long last it is raining and has been for 2 days).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version