2014-02-11, 04:04:56
(2014-02-11, 02:28:34)zfz Wrote: Regarding beta 15.
Long story short:
All "new posts" will start with the content of this ".xml", as if it's become the template for all new posts. It cannot be deleted from within News Manager ("incorrect path") probably due to how Windows treats empty filenames.
- Fresh new install on Win8+Apache+PHP
- Installed News Manager 2.2.4
- Created a post with a CJK title
- Filename on disk end up being ".xml"
- Apache or GetSimple cannot handle this data file so the post gets listed all the time in the News Manager list but cannot edit nor get displayed on actual site
- Tried beta 15.
Yes, known issues in older News Manager (until 2.2.4) versions.
(2.2.5 and later should not create that "bad" file, but however it is not removed if it existed.)
(2014-02-11, 02:28:34)zfz Wrote: Deleting the actual ".xml" disk file doesn't seem to work. The item stays listed in the News Manager post list. Is there a way to fix this? Don't worry too much if it's too much trouble. I'm playing on a test site anyway and a clean install is perfectly fine.
You should be able to delete it if you browse the data/posts folder, but if you can't, open a command-line window, go to that folder and type del ".xml"
(2014-02-11, 02:28:34)zfz Wrote: Also related suggestion: is it possible to provide an option to auto-slug all new posts using just its creation date? Ideally I'm looking for URLs of the form http://example.com/news/20140211, as in my planned site virtually all news titles will be in CJK anyway. Any form of auto-romanization would also only cause more annoyance, actually.
Interesting.
Right now if there are no transliteratable characters slugs are automatically created as post, post-1, post-2, ...
But I like your suggestion, I'll think about it.
In the meantime here's a patch:
Edit news_manager/inc/posts.php, find this:
Code:
$slug = nm_create_slug($_POST['post-title']);
Code:
$slug = empty($_POST['post-date']) ? date('Ymd') : date('Ymd',strtotime($_POST['post-date'])); // patch
PS I had started writing half my reply and now that I've finished I notice you have edited your post. :-) I'm leaving quoted text like it was, I hope you don't mind.