2014-01-25, 22:04:52
(2014-01-24, 19:51:01)Trak Wrote: I just wanted to say thank you for supporting News Manager. I'm currently using the latest beta version. I really like the improvements.
You're welcome.
(2014-01-24, 19:51:01)Trak Wrote: There was a post earlier in this thread talking about the %parents% tag for custom permalinks. I know you said you had no current plans to support it but I just wanted to show interest in it. I would appreciate a patch if you get time for it.
Thanks for everything.
I may add this but in the future, depending of how GetSimple finally handles the multilevel thing.
For now, instead of patching News Manager to support I18N's %parents% placeholder, I think it may be better to patch GS itself. This way we'll probably fix not only "broken" URLs generated by NM, but also those generated by other plugins (I hope - I've not tested).
Edit admin/inc/basic.php, find this (near the end of function find_url):
Code:
$plink = str_replace('%parent%/', $parent, $PERMALINK);
Code:
$plink = str_replace('%parent%/', $parent, str_replace('%parents%', '%parent%', $PERMALINK));
Note that this will not make NM or other plugins support multilevel URLs (so better not use a sub-sub-page as news page), but URLs should no longer be broken.
Also note that if you upgrade GS you'll have to re-do this patch.