Archive for July, 2009
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.
Drupal Sitemaps
Because this domain was bought and used for a while for development and testing for all kinds of things its got continual search bot traffic to those old urls. Some of them I do not want to delete and force a 404 to get rid of.
A couple of google gadgets and other things I'd like to keep. But the robots are not searching the new content they are continually pulling things that will never change.
A sitemap.xml file would help as the fact that those pages would not be listed should get them to give more attention to the newer / real content.
More Drupal meta tag work
Getting my meta description tag working how I wanted went well (Content Type Field Alterations More meta tag work) until I visited the taxonomy page and any other pages that weren't a normal node or the front page.
Adding an RSS aggregator module
Since much of my work over the last few months has switched to Drupal I have taken a domain I had sitting on empty to use for drupal specific (and occasionally other) information.
I wanted posts from there to at least appear partially here through some sort of RSS plugin so I installed the FeedWordPress plugin and seems to be working well except when I went to create this post I had to disable javascript to get the editor to load. I can’t blame that on the plugin but it was working fine a few days ago.
(One problem later noticed was that if the post on drupal used a relative url ‘/what-ver’ The link here would look here for a page /what-ever I need to use the full path in the drupal post to make the link work from here)
But other than that seems to import all info from my Drupal feed quite well including tags.
More meta tag work
Now that I have my main content type collecting a meta description field I have to edit my template (For a few more days using Garland (I should have just copied Garland into the proper directory before I edited it but no worries for now)