By ambientdrup on
I've got the following XML document generated using the Views Datasource plugin for Views.
<!-- generator="Drupal Views_Datasource.Module" -->
−
<nodes>
−
<node>
<nid>97</nid>
<url>http://websiteaddress/node/97</url>
<attributes>N;</attributes>
<nid>97</nid>
<type>fp_test</type>
<random>0.689009729483174</random>
</node>
</nodes>
How can I get the to target the link/page to open in the same browser window? I do not see an option to make this happen using the Views admin. I have the content type field set to open in the same window root but when we run it from the XML, the URL opens in a new window. How can I add the target code to the ?
Thanks in advance.
-backdrifting
Comments
Will this work?
Would this work? I notice in the views-view-xml.tpl file that the fields are noted as <$label>$value<$label>.
Can I add the following?
<$url target="_parent">$value<$url>
Would that work for the tags in the XML doc?
Here's the code in the tpl file:
open link in same window
hello,
i have a moodle link in drupal, when i click the moodle lik in drupal it opens in new browser tab,, but i need to open in same winow
can u plz explain me to that
?