CMS MADE SIMPLE FORGE

SEOTools2

 

[#9961] twitter metadata please

avatar
Created By: dave (enxdtw)
Date Submitted: 2014-04-19 09:29

Assigned To:
Resolution: None
State: Open
Summary:
twitter metadata please
Detailed Description:
according to this website twitter meta data can also be added like so

http://moz.com/blog/meta-data-templates-123

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@publisher_handle">
<meta name="twitter:title" content="Page Title">
<meta name="twitter:description" content="Page description less than 200
characters">
<meta name="twitter:creator" content="@author_handle">
<!-- Twitter summary card with large image must be at least 280x150px -->
<meta name="twitter:image:src" content="http://www.example.com/image.html">

Its the same info as facebook really just a few more tags. Would it be possible
to add this using the facebook input values or let me know how I can do this
myself

Cheers

Dave

History

Comments
avatar
Date: 2014-04-19 10:27
Posted By: dave (enxdtw)

I did this hack to add an image, the other things I could do in the dialog,
please add the image to the smarty tags assigned

// Image-Link
$img = $curcontent->GetPropertyValue('image');
if (($img != -1) && ($img != ""))  {
$html .=  "<link rel='image_src' href='".$config['image_uploads_url'].
DIRECTORY_SEPARATOR.$img."'" . $close_tag;
$html .=  "<meta name='twitter:image:src'
content='".$config['image_uploads_url']. DIRECTORY_SEPARATOR.$img."'" .
$close_tag;
}