show meta discription in item-content to the right column

How can I set the meta discription in page-list-ext-item-content script, next to the image?

I have this for a page:

I would like to set the description next to the image instead of the text from the page.

Can anybody know the code?

that’s what I have at the moment (it displays the meta description text on the page):
[php]
function file_get_contents_curl($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}

$html = file_get_contents_curl(“https://”.$_SERVER[‘HTTP_HOST’].$URL[‘PATH’]."/kenfam_00/");
$doc = new DOMDocument();
@$doc->loadHTML($html);
$nodes = $doc->getElementsByTagName(‘title’);
//get and display what you need:
$title = $nodes->item(0)->nodeValue;

$metas = $doc->getElementsByTagName(‘meta’);

for ($i = 0; $i < $metas->length; $i++)
{
$meta = $metas->item($i);
if($meta->getAttribute(‘name’) == ‘description’)
$description = $meta->getAttribute(‘content’);
if($meta->getAttribute(‘name’) == ‘keywords’)
$keywords = $meta->getAttribute(‘content’);
}
$list_pages_html .= ‘

’.$description.’
’;
[/php]

I want to search all the children pages of the parent page and set it to the right column
Is there a possible to do that?

$html = file_get_contents_curl(“https://”.$_SERVER[‘HTTP_HOST’].$URL[‘PATH’]."/kenfam_00/");

maybe like this: $html = file_get_contents_curl(“https://”.$_SERVER[‘HTTP_HOST’].$URL[‘PATH’]."/$children/");

thank you to help me.

Sponsor our Newsletter | Privacy Policy | Terms of Service