Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #992623

    lypa
    Participant

    Dear Support team,

    I have made a teaser for my start page on http://www.morga.ch using the content dock extension (it is currently hidden, but pls see screenshots from staging site attached below). The content dock is only showing in the German version, though i have set up 2 instances of the “Multilingual text” widget in the backend, one for German and one for French.

    How can i make the content dock also appear in the french version of our site?

    Kind Regards,
    lypa

    #992945

    Rue Nel
    Moderator

    Hello Lypa,

    Thanks for writing in! To make sure that Content Dock will display site wide, you must select all pages/posts in the include field in the setting, X Addons > Content Dock > Settings (http://prntscr.com/b4jeqj).

    The content dock will only display on the page/post you have selected and will not load to those pages that is not being selected. Hope this helps.

    #993257

    lypa
    Participant

    Hi Rue
    Thank you for your reply. Yes, i have tried that, but the French Welcome page does not appear in the selection when i am in the German language version of my site and vice versa. I can just select either the page “Willkommen” when i am in German mode in the backend, or the page “Bienvenue” when i am in the French mode of the site in the backend.

    How can i make all pages of all languages appear in this select box you showed me on your screenshot in the content dock Settings?

    Kind Regards
    Lypa

    #993430

    Christopher
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #993439

    lypa
    Participant
    This reply has been marked as private.
    #995389

    Jack
    Keymaster

    Hi there Lypa,

    Thanks for writing back!

    I’ve taken a look at this on your site and my own development install. After testing this seems to be a incompatibility between Content Dock and WPML, mostly down to how WPML handles the pages in differnt languages.

    I’ve added this as a Feature Request in our internal system for managing these types of issues. For now if you switch between languages and choose the correct pages, does it still not show on those pages correctly?

    Thank you!

    #995696

    lypa
    Participant

    Dear Jack

    Thank you very much for helping and checking this issue.

    Yes, if i have the Content Dock displayed on the German start page and then switch from German to French and choose the French start page there, it goes missing on the German Start page, but shows on the French start page (screenshots).

    So i can only display it either for the German version or for the French version at the moment. But i need to show it on both start pages.

    So what could i do?

    Kind Regards,
    lypa

    #998008

    Rad
    Moderator

    Hi there,

    I’m not sure if this one will work, but you can try this out. With your FTP or File manager, go to this folder \wp-content\plugins\x-content-dock\views\site and edit this file content-dock.php

    Then replace this line of code

    if ( is_page( $x_content_dock_entries_include ) || is_single( $x_content_dock_entries_include ) ) :

    with this new code

    if ( function_exists( 'icl_object_id' ) && is_callable( array( $sitepress, 'get_current_language' ) ) ) {
    
    $post = get_post( icl_object_id( $x_content_dock_entries_include, get_post_type(), false, $sitepress->get_current_language() ) );
    
    $x_content_dock_entries_include = $post->ID;
    
    }
    
    if ( is_page( $x_content_dock_entries_include ) || is_single( $x_content_dock_entries_include ) ) :

    Let me know 🙂

    #1003053

    lypa
    Participant

    Dear Rad,

    Thank you very much for helping :). I managed to apply the code now, and the content dock teaser appears on all French and German pages now.

    Is it possible to have it only displayed on the 2 start pages (French and German)?

    Kind Regards,
    lypa

    #1003394

    Rad
    Moderator

    Hi there,

    I think you can choose the page on your content dock settings and include those pages. Please note that you don’t need to include the exact page, you can just include the translation equivalent of that page. For example, include the assortment page in English, that will also include the assortment page in French automatically.

    Thanks!

    #1003739

    lypa
    Participant

    Dear Rad,

    Thank you for your reply. I followed your advice choosing only the “Welcome” page. Unfortunately, choosing this page made everything fall back to the old behaviour again: I chose the German “Welcome” page, and the Content Dock now is only displayed there. But it is missing again on the French start page, though the new php code you gave me is still applied (i checked it on the server).

    Why is this and what can i do?

    Kind Regards,
    lypa

    #1004150

    Rad
    Moderator

    Hi there,

    Would you mind providing your FTP login credentials as well? I like to check it directly, maybe I can find something there.

    Thanks!

    #1004448

    lypa
    Participant
    This reply has been marked as private.
    #1004532

    Rad
    Moderator

    Hi there,

    I’m able to connect but authentication fails. Please check again, but if you have CPanel or any file manager, then that’s okay too 🙂

    Thanks!

    #1005015

    lypa
    Participant
    This reply has been marked as private.