This is a bit of a nuanced question, but it may have a simple answer, so I thought I'd ask. Any tips would be appreciated!

I've created a dynamic menu item for path 'my-company' which uses node_view() to display a dynamically selected node.

Normally this would be good enough, but I'm currently using Panels to override the default 'Node Template.' Unfortunately, calling node_load() directly bypasses Panels and does not use the overridden Node Template.

Is there a different function to call that will not bypass Panels? I cannot use drupal_goto, since that will change the URL and display the incorrect active trail.

Thanks!

Comments

Letharion’s picture

Component: Miscellaneous » Documentation
Category: support » task

Unfortunately I don't know, though I think it would involve calls to panels_render or some such. This should be added to the docs though, so I'm marking it as such.

japerry’s picture

Version: 6.x-3.9 » 7.x-3.x-dev
Category: Task » Support request
Issue summary: View changes

I'd look at using page manager.