Note that there are some explanatory texts on larger screens.

plurals
  1. PODifference in rendering when visiting node/1 and programmatically loading it
    text
    copied!<p>A node loads a profile of a user (external database + views). All of this works when I visit: node/123/profile/id/3. Now I have implemented hook_menu() in order to load any profile page and have nicer URLs. </p> <p>When I load it myself for some reason $left in page.tpl.php is suddenly empty and many more variables seem not to be loading. I have tried many different functions to render and create the correct $output but realized that node_show() seems to be the function of choice. </p> <p>Testing has shown now that for some reason <code>hook_nodeapi()</code> calls are ignored.<br> My code:</p> <pre><code>/** * Implementation of hook_menu */ function modulename_menu() { $items = array(); $items['my/nice/url/profile'] = array( 'description' =&gt; 'This page holds a view that shows profiles based on the %', 'page callback' =&gt; 'website_profile_load', 'access callback' =&gt; TRUE, 'type' =&gt; MENU_CALLBACK, ); return $items; } /** * Menu path wildcard callback */ function website_profile_load() { $output = node_show(node_load(1221), false, true); return $output; } </code></pre> <p>So what is the correct way to do this and get Panels (see comment below) to load correctly?</p> <h2>UPDATE:</h2> <p>I am using <a href="http://drupal.org/project/tw" rel="nofollow">table wizard</a> and Views 2 to connect to another database with information about people that aren't users of the system. This is an alumni page, the page is administered externally and showed internally (nothing I can do about, have to make this work :)</p> <p>Just discovered that Panels aren't loaded at all. So even if the node I am trying to load is uses panels for some reason none of that is loaded.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload