dtolabs / yana2

Yet Another Node Authority ... because you wanted an agile Real-Time Service Model (RTSM)
8 stars 1 forks source link

NodeType property specifies graphical icon #34

Closed ahonor closed 12 years ago

ahonor commented 12 years ago

Each NodeType should have a property that specifies a URL to a graphical icon. We should standardize on sizes and default images for basic examples, too.

orubel commented 12 years ago

The image directory can be set in the config.properties file and referenced via path = servletContext.getRealPath().

I believe if we set this as a variable like 'image.directory=some/dir/structure', we could then access it as follows:

path = servletContext.getRealPath(grailsSettings.config.image.directory)

And all you would have to do is build the context to reference this in the context and route for it as follows:

<Context path="/resource/mresource" docBase="/var/geezo/mresource/" allowlinking="true"></Context>

ahonor commented 12 years ago

This sounds good.

orubel commented 12 years ago

Lets keep this open as this is an important configuration that needs to be documented if changed