Using videoshared description in Facebook pop up as descript

Using videoshared description in Facebook pop up as descript

  • Published by
    michel rottenberg
  • Last modified
    20 March 2014
  • Voting
    Average rating
    3 votes
  • Favourites
  • Concerns
    Component
  • Since Version
    2.0
  • Up to date
    Yes
  • Profile concerned
    Developer

My problem : In the article I display a video (field name : video) with the video description field followed by the core description field.

I want to display in the facebook popup the same text as the one display in the article.

My solution :

1 Creation of the hidden field 'social description' with the following prefix :

{{video##0##description}}{{item->text}},

2 I have enabled the social website support as description for 'social description' field,

3 In the core item 'Description' I have desabled the social website support,

4 In the template renderonly zone, I have placed the 'social description field'.