Sorry for the dumb question in beforehand.
But, can you please help me in tuning up Facebook Comment module?
In fact, I've already succeeded in it mostly. But, can not tune the syntax of the tag properly in order FB to get proper thumb from the page of photo.tpl.
I'm adding the tag into head of theme.tpl (matrix theme), but how can I get the variable which containts the main image URL of photo page, that FB should get as a base for thumb?
I've tried this.
Quote:
{* Include this theme's style sheet *}
<meta property="og:image" content="{$image}"/>
<link rel="stylesheet" type="text/css" href="{g->theme url="theme.css"}"/>
I've tried already also <meta property="og:image" content="{$imageViewLink}"/>, but failed.
Can you help me in this string composition? Thanks in advance...
Posts: 8339
which theme?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8339
I ask because different themes have different variables available in each template.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 88
Matrix one.
Posts: 8339
I'll have to get back to you this afternoon as my day job is calling.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 88
Thank you in advance.
Posts: 1642
Url to the main image will be something like
<meta property="og:image" content="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`"}"/>
--
dakanji.com
Posts: 88
Thanks!
Works like a charm.
Posts: 8339
Oh, I'm sorry, I thought you wanted the thumbnail.
which is not directly available in the photo.tpl template.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 88
And, if to continue the idea...
How can I get a number of thumb urls, if I try to build the Facebook multi-previews for album pages (not photo ones with one photo)?
In fact, I guess, theme.tpl should be modified again, not album.tpl, but with what string?
Smth like:
Does not work