title: How to change product page title programmatically in magento?
body: <p>I am creating store for books using magento.I want to change page title like "authorname by bookname" for every product page &amp; also I want to change the title of each &amp; every category page.</p>
  
  <p>I tried doing this by adding module by following <a href="http://www.smashingmagazine.com/2012/03/01/basics-creating-magento-module/" rel="nofollow noreferrer">this</a> link &amp; followed this 
  <a href="https://stackoverflow.com/questions/10869335/magento-change-product-page-titles-to-include-attributes">this</a> answer.
  But still no luck.</p>
  
  <p>I am very new to magento.It would be great if there is a better alternative for this.
  Thank you in advance</p>