mans_bx
how to make a this tag codes?
<meta property="og:image" content="this is auto url images">
<meta property="og:image:width" content="500">
<meta property="og:image:height" content="281">
Pls you can do
Graham
mans_bx What is this in the context of ??
what image and where
Waplocus
mans_bx your elucidation is too vague.
mans_bx
Each blog must have a meta tag as above, its function to display images when sharing through social facebook. I hope you understand with my question?
mans_bx
images is availible in post blog and auto detect image when sharer to facebook. sorry bad english because i form asia
Graham
mans_bx I cannot think of an easy way to do this automatically and you would not be able to get the size anyway
but this would work if you are willing to do the work of creating text files to hold the meta tags for each post
In the
_headtags file or in the
<head> of your blog page using the text editor
add this code
<!--parser:xtscript-->
get __xtblog_entry
if $__xtblog_entry
call source $file=/data/$__xtblog_entry
endif
<!--/parser:xtscript-->
Copy code Then create a folder called
data
look at the url of your blog post and you will see a number like
11302369 it is unique for each post
in the
data folder create a
plain text file
using that number as the name of the file
add your meta tags for that post in that file
the xtscript will get that value and include the source of that file into the
<head> of the page that contains that blog post
To make it a little easier you can create a template file so that you just have to enter the size and image url
create a folder named
file_presets and in that folder create a plain text file with the template of your meta tags in it
once you have reloaded xtgem that template file will appear in the menu of 'create new file'
Graham
mans_bx this is not about the actual sharing code just how to add the meta tags to select which image to use
Here is a demo of the principle (not the actual tags just a demo of how you could add them)
here is a post
note it has a line of text above it saying 'This is the content of the meta file'
http://bpage.xtgem.com/index/__xtblog_entry/11302727-mote-park-lake?__xtblog_block_id=1#xt_blog
and here is the file that would contain the meta tags
It uses the blog post id number as the name of the file
http://bpage.xtgem.com/data/11302727
here is another
http://bpage.xtgem.com/index/__xtblog_entry/11302761-maidstone?__xtblog_block_id=1#xt_blog
and it's data file
http://bpage.xtgem.com/data/11302761
Graham
mans_bx There are no tags on that page it is a demo of the method of adding your own tags