Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Force.com Sites & Site.com
- :
- Site.com - Serving up HTML dynamically via a data ...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Site.com - Serving up HTML dynamicall y via a data repeater
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-02-2012 10:17 AM
I have created a website in which many pages are served up dynamically using data repeaters. The site works well, but I don't know a good way of storing elements such as an embedded YouTube video in a custom object. Similarly, it would be nice to be able to set some headers with HTML tags <h1> or bullets and have it rendered correctly in Site.com. Is there any practical way of doing this?
Re: Site.com - Serving up HTML dynamicall y via a data repeater
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-05-2012 12:13 PM
Hi SLaunch,
We utilize a custom field within the custom object to capture the YouTube Video ID and then pass it back through a Custom Code block within the repeater. The code would look something like this (this example is working in conjunction with Fancybox):
<img class="video" alt={!VideoCaption__c} src='http://img.youtube.com/vi/{!YouTubeVideoID__c}/2.j
<a class="video-modal" href='http://www.youtube.com/v/{!YouTubeVideoID__c}?vers
</div>
Thanks,
Laura

