Make a directory and link it in a node at node creation I’m developing a site in Drupal 7 where users view a calendar of events as well as photos taken at those events.

I’ve already created an Event content type, generated several Event nodes, and put those nodes together in a Calendar view. 

What I want to do now is add a ‘Photos’ link to Event nodes. Clicking on this link should open a gallery of photos for the given event. For example, imagine a user is viewing an Event node titled ‘Pool Party @ Jan’s House’. The user clicks on the node’s ‘Photos’ link and then sees a photo gallery also titled ‘Pool Party @ Jan’s House’ that displays all and only photos taken at that event.

How do I get the following two actions to happen (automatically) when an Event node is created?


Make a directory that will contain photos for the event. (These
photos will be uploaded later by users who attend the event.)
Include a ‘Photos’ link in the newly created Event node that opens a page display of the directory's files. (See the example I give above.)


I’ve been trying to figure this out using the Media, Rules, and Views modules, but I’m not making much progress.

Thanks in advance for your help.
Creating directories on the fly in the actual file system is uncharacteristic in Drupal.

The simplest way of attaching photos to nodes would be having an image field with unlimited number of uploadable images. That would show thumbnails of those related images right there when you go to the node page. This is all in core.

If allowing all users to edit event nodes is not an option, you could create an image node type and connect images to respective events with node references or taxonomy, and then create a view listing those images on the node page (views attachment) or on a separate, gallery page.