How to get the contents of a field out of a component on the page in Tridion

This will allow you to pass in a Page TCM, and get back the summary from the first component based on the General schema, if not it will return a default string This also limits to Pages ending with .aspx not in a Structure group of "so" not in a structure... Read the full text.