weather72° ClearHigh: 83° | Low: 62°Ten Day Forecast
All Sections
Monday September 1, 2014
    #set($imageMaxWidth = 360) #set($imageMaxHeight = 300) #set($imgStyle='style="border:1px solid #000; padding: 0px; margin: 5px 15px 5px 0px; float: left; z-index: 0;"') #foreach($item in $cms.links("/life/outdoors/",1,1))
  • #set($myImage = "") $cms.template("Get Main Image") #if($mainImage) #set($newHeight = $mainImage.height) #set($newWidth = $mainImage.width) #set($myImage = $util.tag($mainImage,$imgStyle)) ##1 $newWidth x $newHeight -- #if($newWidth > $imageMaxWidth) #set($newHeight = $math.round($math.multiply($math.divide($imageMaxWidth,$mainImage.width),$mainImage.height))) #set($myImage = $util.resizeImageTag($mainImage,$imageMaxWidth,0,$imgStyle)) ##2 $newWidth x $newHeight -- #end #if($newHeight > $imageMaxHeight) #set($newWidth = $math.round($math.multiply($math.divide($imageMaxHeight,$mainImage.height),$mainImage.width))) #set($myImage = $util.resizeImageTag($mainImage,0,$imageMaxHeight,$imgStyle)) ##3 $newWidth x $newHeight -- #end $myImage #end

    $item.title

     

    $util.date("MMMM d, yyyy",$item.contentLiveDate,"America/New_York")
    $item.summary
  • #end

Read the latest outdoor stories

    #set($imageMaxWidth = 220) #set($imgStyle='style="border:1px solid #000; padding: 0px; margin: 5px 5px 5px 0px; float: left; z-index: 0;"') #foreach($item in $cms.links("/life/outdoors/",2,30))
  • #set($myImage = "") $cms.template("Get Main Image") #if($mainImage) #set($newHeight = $mainImage.height) #set($newWidth = $mainImage.width) #set($myImage = $util.tag($mainImage,$imgStyle)) ##1 $newWidth x $newHeight -- #if($newWidth > $imageMaxWidth) #set($newHeight = $math.round($math.multiply($math.divide($imageMaxWidth,$mainImage.width),$mainImage.height))) #set($myImage = $util.resizeImageTag($mainImage,$imageMaxWidth,0,$imgStyle)) ##2 $newWidth x $newHeight -- #end #if($newHeight > $imageMaxHeight) #set($newWidth = $math.round($math.multiply($math.divide($imageMaxHeight,$mainImage.height),$mainImage.width))) #set($myImage = $util.resizeImageTag($mainImage,0,$imageMaxHeight,$imgStyle)) ##3 $newWidth x $newHeight -- #end $myImage #end
    $item.title
    $util.date("MMMM d, yyyy",$item.contentLiveDate,"America/New_York")
    $item.summary
  • #end
Portland Press Herald

Member Log In

Please enter your username and password below.
Already a subscriber but don't have one? Click here.

Not a subscriber? Click here to see your options