i created a "New custom content" on a node_override

in this "New custom content" i want to insert some phpcode.
somehow $node->nid doesn´t work.

Does anybody know why?

greetings
jonas

Comments

fluxline’s picture

if you are passing the node id in through the url, make sure you have 'Node ID' selected as one of the arguments on the 'context' tab when setting up the panel. you can then access it using arg(1) or whatever index value that it is in the url.

jonas28’s picture

Status: Active » Closed (fixed)

arg(1) works!

thanx

jonas