Generalised element id, added hook for link attributes, added title filter, added permissions