Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revize Předchozí verze
Následující verze
Předchozí verze
skoda-ep:common:featured_video [02.11.2017 12:10]
Lukáš Čech [How to configure an attachment]
— (aktuální)
Řádek 1: Řádek 1:
-====== Article: Featured Video ====== 
- 
-You can add featured images to an article by default. The following functionality extends this to allow you to also add videos from youtube. 
- 
-The video is only shown when the visitor is viewing the detail of an article, or if the article is in the main position on the homepage/​category page 
- 
- 
-===== How to configure an attachment ===== 
- 
-When you want to use a video instead of an image, you need to follow these steps: 
- 
-  - Upload an image attachment (The image will be a preview for your video - shown in article listings for example) 
-  - Edit the attachment and set "​External Video URL" (on the right) {{ :​skoda-ep:​common:​external_video_block.png?​nolink&​200 | }} 
-  - Use this attachment as a featured image of an article 
- 
-This will create a video which will replace the featured image. Note that you should not use the featured image "​Fluid"​ layout with a video as it might break the page. 
- 
-===== Result ===== 
-==== Homepage ==== 
- 
-{{ :​skoda-ep:​common:​homepage_video.png?​nolink |}} 
- 
-==== Article detail ==== 
- 
-{{ :​skoda-ep:​common:​detail_video.png?​nolink |}} 
- 
-