Added method to allow overriding of link_before & link_after attributes