Hi everyone,
I realized that we all concentrated on the programming approach without
thinking outside the box.
We know that we can get file name of a img/med file via info placeholder.
We setup publication packages, which included mapping of asset manger/file
folder to folders on the published web server. Also, these mapping rarely
change for image/asset folders.
Why can't we just do this
<reddot:cms>
<if>
<query valuea="Context:CurrentRenderMode" operator="!=" valueb="Int:2">
<htmltext>
<!-- no publish mode, use javascript to get path -->
</htmltext>
</query>
<query type="else">
<htmltext>
<img src="/IKnowItGoesHere/<%inf_facebook_photo_file_name%>"
alt="">
</htmltext>
</query>
</if>
</reddot:cms>
On Wednesday, August 8, 2012 10:30:12 PM UTC-7, Tony Chung wrote:
>
> It doesn't look like FB crawler parses JavaScript.
>
>
> http://stackoverflow.com/questions/1138460/how-does-facebook-sharer-select-images
>
> -Tony
>
>
>
> On 2012-08-08, at 12:45 PM, Rob <[email protected] <javascript:>> wrote:
>
> Thanks for all the discussion. A couple options got vetted out since my
> last posting here.
>
> It seems like we have the best solution uncovered for our
> needs. JQuery/JavaScript would work the best. Other solutions would be
> tricky for a future developer to recognize it was in place and modify it as
> need.
> I will update our test site to test it. Assuming Facebook developer
> documentation is correct, it will take at least 24 hours for Facebook to
> crawl and cache the page to demonstrate the JavaScript solution works.
> Hope Facebook crawler executes JavaScript. Like I said in the beginning of
> this issue, this is for the Facebook Like button to know which image to
> show in the Liker's News Feed.
>
> Thanks everyone!
>
> Rob
>
> --
> You received this message because you are subscribed to the Google Groups
> "RedDot CMS Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/reddot-cms-users/-/XlXAQr_SFBsJ.
> To post to this group, send email to [email protected]<javascript:>
> .
> To unsubscribe from this group, send email to
> [email protected] <javascript:>.
> For more options, visit this group at
> http://groups.google.com/group/reddot-cms-users?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/reddot-cms-users/-/uRyDvuN_0LwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/reddot-cms-users?hl=en.