Posts Tagged ‘drupal’
Creating a quick tips block and page view
I often have a lot of small bits of info I'd like recorded but can't write anything worthy of full entry for.
I considered creating a module to create a small entry type that is displayed randomly in a block with a link to a full page listing of these short entries.
Instead of doing this I created a content type (quick_tips) and set its workflow settings uncheck published as I do not want these entries considered as full pages.
Adding a sticky note style box to content
Now I want to be able to add a floating block similar to the related content block I added earlier. But I also want to be able to add as blocks as I want and control where at in the entry it appears.
So instead I used css and some images to create one the author could create when and where needed. (The author must be able to use the full html input format or the code will not come through)
Adding a See Also to a content type
While taxonomy and views can be used prived a list of related entries, it lacks the ability for the author to select individual related entries. Such as writing a short series over time and wanting each in the series to display links to the others.
For this purpose I added a new field Node reference to allow the author to add as many references to existing nodes as needed.
Using jQuery to alter the search form
I had someone today request that the search form on their site contain the word search and for that word to disappear once the user clicked on it (onfocus). I have set this sites search to do that for now.
On prior plain or other non Drupal sites I'd usually just set the value in the field and add an onfocus to clear it. Not wanting to hook the search form a quick jQuery addition to the template not only worked but didn't have the issues of browsers with out javascript enabled.