Problems, need help? Have a tip or advice? Post it here.
12 posts Page 1 of 2
Dear sir,

Thanks for your previous help. I got an new issue, and really need your help.

Currently, i am building a training website.

Regarding the services part.

I need to create a Services A, B, C and more and more.

Take an example of Service A,
Inside the services A -> it has product 1, 2, 3 and more and more.
Inside the product 1 --> it has again several categories.

Services B, C and others are the same.

So, i have created a dynamic folder in product.php as follow.

Folder: A, sub folder 1,2,3, sub-sub folder for those categories.
Folder: B, the same
Folder: C, the same

Now come to the issue, i want to have a service.php list out the folder A,B,C (title and picture), and when press into the picture, it would link to the service-group.php (e.g. go into the Folder A, it list out the description of folder A and also list out the sub folders product 1,2,3). And then when press into the product 1, it goes to the final product page and listing out the categories.

SIr, please help. I have struggled a long period of time.

Thank you so much
Anyone can reply me?
Sure, Justin.

It is just that I am finding it a little difficult to comprehend the situation.
Could you please help me by providing me with some real-world mockups (wireframe or otherwise) showing how the screens would look like? I think that would help me in wrapping my head around the problem.

Thanks.
Please refer to the picture attached.

Dynamic folder, i have created:

1. swimming
1.1 crawl
1.1.1 accordion box 1 product description
1.1.2 accordion box 2 product price
1.1.3 accordion box 3 product time schedule
1.2 breststroke
1.2.1 accordion box 1 product description
1.2.2 accordion box 2 product price
1.2.3 accordion box 3 product time schedule
1.3 backstroke
2. tennis
the same as 1
3. table tennis
the same as 1

I have created like this, but i do not know how to display these information out.

Please help thanks

Attachments

anyone can help?
Hi,

I think we can get away using only a single clonable template (say 'service.php'). The 'views' provided by Couch should handle the three presentations.

With this method, the 'swimming', 'tennis' etc. entries will become the 'folders'.
Folders by default support image and description.

The 'crawl', 'breaststroke' and 'backstroke' will become the cloned pages of this template (placed within the right folder e.g. the 'swimming' folder in this case).

The 'accordians' within 'crawl' will be the editable-regions defined in the template.
You can use repeatable-regions if required.

Following is a sample implementation -
Code: Select all
<cms:template clonable='1' dynamic_folders='1'>

    <!-- define 'accordians' - perhaps as repeatable regions -->

</cms:template>

<!-- this the equivalent of 'service.php' in the image -->
<cms:if k_is_home > <!-- list all folders here -->
    <cms:folders orderby='weight' order='asc'>
        <a href="<cms:show k_folder_link />">
            <img src="<cms:show k_folder_image />" alt="<cms:show k_folder_title />" />
        </a>   
    </cms:folders>
</cms:if>

<!-- this the equivalent of 'service-group.php' in the image -->
<cms:if k_is_folder>
    <h1><cms:show k_folder_title /></h1>
   
    <!-- folder details -->
    <img src="<cms:show k_folder_image />" alt="<cms:show k_folder_title />" />
    <cms:show k_folder_desc />
   
    <!-- details of pages within this folder -->
    <h3>Types:</h3>
    <ul>
    <cms:pages folder=k_folder_name >
        <li><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></li>
    </cms:pages>
    </ul>

</cms:if>

<!-- this the equivalent of 'product.php' in the image -->
<cms:if k_is_page >
    <h1><cms:show k_page_title /></h1>
   
    <!-- show the 'accordians' here -->
    ..
    ..

</cms:if>

Does this help? Please let me know if the solution does not suit your needs.
Thanks.
Hi kk,
many thanks.

I will try tonight, but the accordion need to support richtext, thus, I can't create repeatable region.
Then, what can I do? Should I create a sub folder in the Crawl?

Please advice
Could you please post the proposed structure of the accordian?
I could gather that the number of accordians will be variable but will all accordians have the same editable regions?

Please let me know.
Thanks.
hi kk,


The accordion structure will only be a title and a content(rich-text), all accordions have the same editable regions but the number of accordions are different for every services such as 'crawl', 'breaststroke' and 'backstroke' .

It needs richtext as there are lots of different functions needed.


Also, there is one more question.

How can I list the folder and product if i want?

Code: Select all
<li><a href="">Services</a>
                  <ul>
                    <li><a href="">Swimming</a>
                      <ul>
                       <li>Crawl</li>
                        <li>Brestroke</li>
                        <li>Backstroke</li>

                       </ul>
                    </li>
                    <li><a href="">Tennis</a></li>
                    <li><a href="">Table Tennis</a></li>
                  </ul>
               </li>


Really thank you for you help.
sir, in my navigation , i set this, but the pages are displayed in all category.
<ul>
<cms:folders masterpage='product.php' folder='k_folder_name' depth='1' orderby='weight' order='asc'> <li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a>
<ul>
<cms:pages masterpage='product.php' folder='k_folder_name' orderby='publish_date' order='asc'> <li><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></li></cms:pages>
</ul>
</li>
</cms:folders>


<li>
12 posts Page 1 of 2