Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
The breadcrumb code:

Code: Select all
<cms:if my_lang='english'>
                   <h3 style="margin-bottom:25px;">Our Products / <span class="breadcrumbwap">
                    <cms:if k_is_page || k_is_folder >
                        <cms:if k_folder_name ><cms:set my_folder=k_folder_name /></cms:if>
                        <cms:if k_page_foldername ><cms:set my_folder=k_page_foldername /></cms:if>
                        <cms:if my_folder>
                            <cms:parentfolders folder=my_folder >
                                <span class="breadcrumb2"><cms:show k_folder_title/></span>
                            </cms:parentfolders>
                        </cms:if>
                       
                    </cms:if>
                    </span></h3>
                </cms:if>
               
               
                <cms:if my_lang='chinese'>
                   <h3 style="margin-bottom:25px;">我们的产品 / <span class="breadcrumbwap">
                    <cms:if k_is_page || k_is_folder >
                        <cms:if k_folder_name ><cms:set my_folder=k_folder_name /></cms:if>
                        <cms:if k_page_foldername ><cms:set my_folder=k_page_foldername /></cms:if>
                        <cms:if my_folder>
                            <cms:parentfolders folder=my_folder include_custom_fields='1'>
                                <span class="breadcrumb2"><cms:show chtext /></span>
                            </cms:parentfolders>
                        </cms:if>
                       
                    </cms:if>
                   
                    </span></h3>
                </cms:if>


What should I do with the breadcrumb to make it show correct display?

Another questions, the current multi languages website has SEO issues, any chance we can fix that? is couch going to develop this multi language function into a more advanced feature, like fixing this SEO problems?
How about I just send you the ftp details? You just go directly to the files, and get the code you want to see.

I email you the ftp details.
Thanks for the creds.

I modified your breadcrumb code for Chinese language to make it as follows -
Code: Select all
<cms:if my_lang='chinese'>
    <h3 style="margin-bottom:25px;">我们的产品 / <span class="breadcrumbwap">
    <cms:if k_is_page || k_is_folder >
        <cms:if k_folder_name ><cms:set my_folder=k_folder_name /></cms:if>
        <cms:if k_page_foldername ><cms:set my_folder=k_page_foldername /></cms:if>
        <cms:if my_folder>
            <cms:parentfolders folder=my_folder>
                <span class="breadcrumb2"><cms:show chtext />
                    <!-- bring the containing folder in context using cms:folders like this -->
                    <cms:folders hierarchical='1' include_custom_fields='1' root=k_folder_name depth='1'>
                        <cms:show chtext />
                    </cms:folders>
                </span>
            </cms:parentfolders>
        </cms:if>
       
    </cms:if>
   
    </span></h3>
</cms:if>

From what I could see, a different text is now being shown (is in Chinese so can't make out what it is though). Could you please check and verify if it ok now?

Thanks.
3 posts Page 1 of 1