Sign In:


Maine schools and education news

School and education news coverage from the Portland Press Herald/Maine Sunday Telegram. Send school news and tips to communitynews@pressherald.com

    #set($bigImageMaxWidth =220) #set($bigImageMaxHeight = 150) #foreach($item in $cms.links("/news/schools/",1,1))
  • #set($myImage = "") $cms.template("Get Main Image") #if($mainImage) #set($newHeight = $mainImage.height) #set($newWidth = $mainImage.width) #set($myImage = $util.tag($mainImage)) ##1 $newWidth x $newHeight -- #if($newWidth > $bigImageMaxWidth) #set($newHeight = $math.round($math.multiply($math.divide($bigImageMaxWidth,$mainImage.width),$mainImage.height))) #set($myImage = $util.resizeImageTag($mainImage,$bigImageMaxWidth,0)) ##2 $newWidth x $newHeight -- #end #if($newHeight > $bigImageMaxHeight) #set($newWidth = $math.round($math.multiply($math.divide($bigImageMaxHeight,$mainImage.height),$mainImage.width))) #set($myImage = $util.resizeImageTag($mainImage,0,$bigImageMaxHeight)) ##3 $newWidth x $newHeight -- #end $myImage #end $util.date("MMMM d, yyyy",$item.contentLiveDate,"America/New_York")

    $item.title

    $item.summary

  • #end #set($smallImageMaxWidth =120) #set($smallImageMaxHeight = 120) #foreach($item in $cms.links("/news/schools/",2,20)) #if($item.id != 220222191)
  • #set($myImage = "") $cms.template("Get Main Image") #if($mainImage) #set($newHeight = $mainImage.height) #set($newWidth = $mainImage.width) #set($myImage = $util.tag($mainImage)) ##1 $newWidth x $newHeight -- #if($newWidth > $smallImageMaxWidth) #set($newHeight = $math.round($math.multiply($math.divide($smallImageMaxWidth,$mainImage.width),$mainImage.height))) #set($myImage = $util.resizeImageTag($mainImage,$smallImageMaxWidth,0)) ##2 $newWidth x $newHeight -- #end #if($newHeight > $smallImageMaxHeight) #set($newWidth = $math.round($math.multiply($math.divide($smallImageMaxHeight,$mainImage.height),$mainImage.width))) #set($myImage = $util.resizeImageTag($mainImage,0,$smallImageMaxHeight)) ##3 $newWidth x $newHeight -- #end $myImage #end $util.date("MMMM d, yyyy",$item.contentLiveDate,"America/New_York")

    $item.title

    $item.summary

  • #end #end