1

I created a node--type.tpl.php file, deactivated all displays (I don't need them), and wrote custom HTML code. I created a view which outputs the list of nodes associated to term. I created it with the contextual filters "Content:Nid" and "Content: Has Taxonomy Term Id." I embedded it to the node I created. (I can activate it as block, because I want to load a whole node with AJAX.)

If I open a node with normal load, the list is beeing showed, but with AJAX load the list is gone. I tried to add an argument to the view like with views_embed_view('tratata', 'tata', $myarg), but it doesn't work. Can anybody help me to solve this problem?

The module which is responsible of loading a node via AJAX is my custom module, which depends from the Chaos tool suite module.

3
  • views_embed_view('tratata', 'tata', $myarg) - here you are passing one argument, but your view has two contextual filters. Are you using default values for the filters? If yes, what are the default values?
    – Abhijit
    Commented Jul 2, 2012 at 12:36
  • Here are the settings of the filters:
    – xurshid29
    Commented Jul 4, 2012 at 9:03
  • Here are the settings of the filters: Content:Nid -> Content ID from Url -> exclude; Content: Has Taxonomy Term Id -> Taxonomy term Id from Url -> Load default filter from node page, that's good for related taxonomy blocks -> my vocabulary
    – xurshid29
    Commented Jul 4, 2012 at 9:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.