Sunday 14 October 2007 6:27:18 pm
I have a button on some pages on my site which allows users to create a new object, a calendar item. To reduce clutter in the future I need to organise the items into subfolders named by year ("2007", "2008" etc). Without knowing the node ids for these folders is there a way to make ezpublish create objects in the correct folder? NodeID doesn't seem to work with friendly URLs. If you can't specify the node where the object should be created by URL the solution would seem to be to:
Get current node URL;
Concatenate the subfolder name; Convert the result to a node id... and that's the bit I'm lost with - how get the ID of a node by specifying its URL?
Paul Bolger
|