Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • Saguaros Moderator
    #968642

    @zoohayr

    Is that a content plugin? You can contact its provider for help to show video after display content. Joomla provides some available content events.

    zoohayr Friend
    #968657

    Hi,

    the plugin allows you to view the video where you want. but the "trailer" page does not detect these videos.
    So I dropped this plugin !

    is it not possible to display the video insert in the article "Video" after item itself and not in the extrafield

    see attachement

    thank you for your answer


    1. image-7
    Saguaros Moderator
    #969038

    That button will link to video page, if you want to display video under article content, you can embed video after the content display, just go to video channel: youtube / vimeo / … they provides option to embed video.

    zoohayr Friend
    #969080

    Hello, I apologize if I explain badly because I use google translation. you misunderstood me maybe ! to integrate video after section simply insert the code of the video between this tag {youtube} {/youtube}. but is not it possible to display it by including the link in the page : add new -> vidéo

    the fact to insert the tag {youtube} {/ youtube} after each item is not practical. if not what do you advise me to view the videos ?


    1. image-8
    Saguaros Moderator
    #970054

    If I got your message correctly, you simply want the trailer / video display after content instead of showing top of article like demo site, right?

    If yes, you can simply swap the snippet of code that render the video player to underneath the code of content part, don’t need other plugin.

    Try to download attached file and copy it to directory: ROOT/templates/ja_moviemax/html/com_content/article/default.php (remember to backup old file first)


    1. default.php_.zip
    zoohayr Friend
    #971439

    Hello Saguaros, First I apologize for the delay to reply and thank you so much for your answer. in fact I knew there was a solution to this problem. so I also try and I install a plugin "DPFields". after I insert this code in movie.php page :
    <?php
    $dpfields = array();
    foreach ($this->item->dpfields as $f) { $dpfields[$f->alias] = $f; }
    $video = $dpfields[‘video’];
    $urlvideo=$video->value;
    if (!empty($urlvideo)) :
    echo ‘.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }<div class="embed-container"><iframe src="http://www.youtube.com/embed/‘.$urlvideo.’" frameborder="0" allowfullscreen>‘;
    ?>
    <?php endif; ?>
    and it worked well !!
    but I think your solution is the best because I do not need to insert the link 2 times in the article except that I work with movie.php page. can you do it in movie.php page instead of the default.php page

    and thank you very much for your support

    Saguaros Moderator
    #971463

    You’re welcome!!!

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  Saguaros 8 years, 2 months ago.

The topic ‘view the videos after the articles’ is closed to new replies.