[node:123 parameters] refers to node/123

It is possible to refer to the "current" node? eg. [node:* title] to refer to, and insert, the title of current node? For example, I am displaying a block on all pages, and want it to show the title of the current node.

Comments

AlexisWilke’s picture

Assigned: Unassigned » AlexisWilke

Hi iantresman,

It's checked in... it should be available within 12h.

Thank you.
Alexis

iantresman’s picture

Brilliant, looking forward to trying it out.

By the way, since you added the ability to include CCK fields, is it worth mentioning this (and some of the other new features) on the InsertNode Project home page, as I think it would be of interest to others.

iantresman’s picture

And is the correct syntax to include, for example, the "current" node title:

[node:* title]

I get a warning message:

Can't find * to include!

This appears if I display a page:

http://mydomain.com/node/5
or an alias URL.

AlexisWilke’s picture

Status: Active » Fixed

I had to add an else part to the condition I added to avoid the problem. This is now in the newest -dev which should be available within 12h.

Feel free to reopen the issue if it still doesn't work for you.

Thank you.
Alexis

iantresman’s picture

Status: Fixed » Closed (fixed)

Works great! Many thanks.