Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
I am creating a search function for product page, the result will display at search.php. I want to display the folder title, product image and search title at the search page. I can display the english title with this:
Code: Select all
<a href="<cms:show k_page_folderlink/>"><cms:show k_page_foldertitle/></a>


The problem is, I am creating a multi languages website, the other language text filed is name with chtext. If I trying to replace the <cms:show k_page_foldertitle/> to <cms:show chtext/>, folder title is not display.

So, I try something like this:
Code: Select all
<cms:pages folder=k_folder_name include_subfolders='0'>
                   <cms:folders masterpage='products.php' hierarchical='1' include_custom_fields='1'>
                  <a href="<cms:show k_folder_link/>"><cms:if my_lang='english'><cms:show k_folder_title/></cms:if><cms:if my_lang='chinese'><cms:show chtext/></cms:if></a>
               </cms:folders>
                    <div><a id="single_2" href="<cms:show gg_image />" title="<cms:show k_page_title />"><div class="thumbnailwrap sameheight2">
                        <div>
                            <img src="<cms:show grid_thumb />" class="img-responsive" alt="<cms:show k_page_title />">
                        </div>
                        <span class="rollover" ></span>
                        <span class="text"><cms:show k_search_title /></span>
                    </div></a>
            </div>
           
            </cms:pages>


It display all folder title. How can I make it only display the current folder of the each item?
It solved. It seems like i made some mistakes with my code....
2 posts Page 1 of 1
cron