Results 1 to 2 of 2

Thread: Images in RSS...

  1. #1
    Join Date
    May 2009
    Location
    Galway, Ireland
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Images in RSS...

    How can I edit this code to have images appear in my RSS list...

    Code:
    <div id="rssSummaryList<?php echo intval($bID)?>" class="rssSummaryList">
    
    <?php  if( strlen($title)>0 ){ ?>
    	<div class="rssSummaryListTitle"><?php echo $title?></div>
    <?php  } ?>
    
    <?php  
    $rssObj=$controller;
    $textHelper = Loader::helper("text"); 
    
    if (!$dateFormat) {
    	$dateFormat = t('jS F, Y');
    }
    
    if( strlen($errorMsg)>0 ){
    	echo $errorMsg;
    }else{
    
    	foreach($posts as $itemNumber=>$item) { 
    	
    		if( intval($itemNumber) >= intval($rssObj->itemsToDisplay) ) break;
    		?>
    		
    		<div class="rssItem">
    			<div class="rssItemTitle"> 
    				<a href="<?php echo  $item->get_permalink(); ?>" <?php  if($rssObj->launchInNewWindow) echo 'target="_blank"' ?> >
    					<?php echo substr ($item->get_title(), 0, 100); ?>
    				</a>
    			</div>
    			<div class="rssItemDate"><?php echo  $item->get_date($dateFormat); ?></div>
    			<div class="rssItemSummary">
    				<?php 
    				if( $rssObj->showSummary ){
    					echo $item->get_description();
    				}
    				?> <a href="<?php echo  $item->get_permalink(); ?>" <?php  if($rssObj->launchInNewWindow) echo 'target="_blank"' ?> >Read more</a>
    			</div>
    		</div>
    	
    <?php   }  
    }
    ?>
    </div>

  2. #2
    Join Date
    May 2009
    Location
    Galway, Ireland
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anybody?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •