I'm currently trying to work out the best possible way of adding a piece of text to my node displays - and reused where needed across the site - for example this might be a piece of general contact information... - I don't want users to be able to edit it, but they should be able to include it on a node where necessary. Wondered if anyone has done something like this on a Drupal site, and how they went about it?
Possible methods I've been thinking about:
- Default text on a CCK field - but this doesn't seem to show up in the node display if left unedited and presumably creates a new database entry for every instance of it.
- Using a node reference field to link to a specific type of "library items" node but this doesn't allow flexibility for the user to move the info around - Also if I wanted the text to appear next to a specific piece of data, I can't think of a way of associating these nodes
- Configure Panels for each content type that uses is statically, but again there is not much flexibility here if the user want to include it it another content type.
There is a module called 'Library' which seems to do the type of thing I am thinking of but it's seeking co-maintainers and still in development, so don't want to rely on it for a production site, although the author does mention in the blurb:
I am planning to create one module which will easy to create the gallery with minimal efforts.
Here my planning is to optimized use of templating provided by drupal and create such a gallery where user can set his/her defined galleries in simple module..
I have already implemented that stuff to my local (hence it's not complete).
So how could I put that module available for all users those are using drupal ??
I'm not completely sure if this is a post-install or dev question. I suspect it's going to require some code though, hence the posting here.
I have a directory, its structure is described in a taxonomy vocabulary and I've added a field to attach an image to each term. What I would like to do is browse the director - for instance bringing up France, Netherlands, Germany with their images then clicking on Netherlands and getting Rotterdam, the Hague, Amsterdam with their pictures and no on.
I am at a complete loss here on how to actually use the built in jQuery UI widgets with Drupal 7. Currently I am trying to set up the range slider demo from the jQeury UI website http://jqueryui.com/demos/slider/#range.
In my template file I used drupal_add_library() since doing so will also load any css and image files associated with the library.