Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] .htaccess News Manager + I18N setup
#11
When using a permalink structure containing I18N's %language% or %nondefaultlanguage% tokens, frontend NM links (posts, archives, etc) are rendered properly (thanks to mvlcek's plugin, which is really amazing). However, in NM's backend/admin the "View post" links are broken (not valid).

Here's a possible fix. Edit news_manager/inc/functions.php, find this:
Code:
$url = find_url($NMPAGEURL, $NMPARENTURL);

Just after that line, insert this:
Code:
if (basename($_SERVER['PHP_SELF']) != 'index.php') // back end only
    if (function_exists('find_i18n_url')) // I18N?
      $url = find_i18n_url($NMPAGEURL, $NMPARENTURL, return_i18n_default_language());

@TeeJay Please test. Works for me but I could have missed something. I'll include something like this for NM 2.4.0
Reply


Messages In This Thread
RE: [SOLVED] .htaccess News Manager + I18N setup - by Carlos - 2013-04-25, 07:29:50



Users browsing this thread: 1 Guest(s)