Forums

WP-dTree
wp-dtree + wpml (3 posts)

  1. ado2000
    Member
    Posted 1 year ago #

    I just modified the plugin page wp-dtree.php because of a problem with wpml plugin.

    The problem wos that the plugine wont open the tree at a subpage in english.

    the modification is:

    //if($args['opentoselection'] && isset($_SERVER['REQUEST_URI'])){
    		if($args['opentoselection'] && isset($_REQUEST['page_id'])){
    			//$tree .= $opt['openscript'] . wpdt_open_tree_to($_SERVER['REQUEST_URI'],'', $tree) . //$opt['closescript'];
    echo $_SERVER['page_id'];
    			$tree .= $opt['openscript'] . wpdt_open_tree_to($_REQUEST['page_id'],'', $tree) . $opt['closescript'];
    		}
  2. ado2000
    Member
    Posted 1 year ago #

    Never mind.

    It was another kind of problem.

  3. Lethys
    Member
    Posted 1 year ago #

    And what is the solution? Because i have this problem with wp-dtree and WPML.

    In french, my main language, it's ok, but in english or spanish the plugin don't open the tree...

    So how do you fix it?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic