Problems, need help? Have a tip or advice? Post it here.
16 posts Page 2 of 2
<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='Work' clonable='1'>
<cms:editable name='work_content' type='richtext'/>
<cms:editable name='work_image' type='image'/>

<cms:folder name="animation" title="Animation" />
<cms:folder name="design" title="Design" />
<cms:folder name="drawing" title="Drawing" />

<cms:editable name='tags' label='Tags' desc='Use comma to separate multiple tags' type='text' />
</cms:template>

<cms:if k_is_page>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fouridine's Portfolio</title>
<link href="css/fouridine_style.css" rel="stylesheet" type="text/css" />
<link rel="icon" href="/favicon.ico" type="image/x-icon">
</head>

<body onLoad="MM_preloadImages('images/link_drawing_over.png','images/link_aboutme_over.png')">
<div id=container>
<!-- start #header -->
<cms:embed 'header.html'/>

<!-- end #header -->
<!-- start #wrapper -->
<div id=wrapper>
<!-- start #contentbox -->
<div id=content>
<div class=contentbox>
<div class=contentboxtop></div>
<div class=contentarea>
<div class=header>
<h1><a href="<cms:show k_page_link/>"><cms:show k_page_title/></a></h1>
<!-- <h1 class="subhead"> - Vector Illustration</h1>-->
</div>
<div class="workimg"><img src="<cms:show work_image/>" width="359" height="464" /></div>
<div>
<cms:show work_content/>
</div>
<div class="tags"> Tags: <a href="#">illustration</a>, <a href="#">drawing</a>, <a href="#">vector</a></div>
</div>
<div class=contentboxbot></div>
</div>
</div>
<!-- end #contentbox -->
<!-- start #rightside -->
<cms:embed 'work_sidebar.html'/>
<!-- end #rightside -->
</div>
<!-- end #wrapper -->
<div id=footer>
© 2011 Fouridine Ang | animator & designer
<div>email me: iam@fouridine.com</div>
<br class="clearfloat" />
</div>
</div>
</body>
</html>
<cms:else/>
<cms:embed 'work_list.html'/>
</cms:if>

<?php COUCH::invoke(); ?>
Hi,

OK so you are using an embedded 'work_list.html' to do the listing of your work items.

Please open 'work_list.html' and find the line similar to this -
Code: Select all
<cms:pages masterpage='work.php' folder='k_folder_name' paginate='1' limit='3'>

The important part in the line above is the folder='k_folder_name' . This is what filters the pages according to the folders.
Can you confirm this part is present in the '<cms:pages .' statement?
If it is not there please add it.

Thanks
It wasn't there before, but I inserted it and tried it and it still doesn't work:

<body onload="MM_preloadImages('images/link_drawing_over.png','images/link_aboutme_over.png')">
<div id=container>
<!-- start #header -->
<cms:embed 'header.html'/>
<!-- end #header -->
<!-- start #wrapper -->
<div id=wrapper>
<!-- start #contentbox -->
<div id=content>

<cms:pages masterpage='work.php' folder='k_folder_name' paginate='1' limit='3' >
<div class=contentbox>
<div class=contentboxtop></div>
<div class=contentarea>
<div class=header>
<h1><a href="<cms:show k_page_link/>"><cms:show k_page_title/></a></h1><h1 class="subhead"> - Vector Illustration</h1>
</div>
<div class="workimg"><img src="<cms:show work_image/>" width="359" height="464" /></div>
<div class="work_desc">
<cms:excerptHTML count='40' ignore='img'><cms:show work_content/></cms:excerptHTML>&nbsp<a href="<cms:show k_page_link/>">[more]</a>
</div>
<div class="tags"> Tags: <a href="#">illustration</a>, <a href="#">drawing</a>, <a href="#">vector</a></div>
</div>
<div class=contentboxbot></div>
</div>

<cms:if k_paginated_bottom>
<div class="bot_buttons">
<cms:if k_paginate_link_next>
<a class="next" href="<cms:show k_paginate_link_next/>"><img src="images/next.gif" width="54" height="23" alt="next" /></a>
</cms:if>
<cms:if k_paginate_link_prev>
<a class="prev" href="<cms:show k_paginate_link_prev/>"><img src="images/prev.gif" width="54" height="23" alt="prev" /></a>
</cms:if>
</div>
</cms:if>
</cms:pages>
</div>
<!-- end #contentbox -->
<!-- start #rightside -->
<cms:embed 'work_sidebar.html'/>

<!-- end #rightside -->
</div>
<!-- end #wrapper -->
<div id=footer>
© 2011 Fouridine Ang | animator & designer
<div>email me: iam@fouridine.com</div>
<br class="clearfloat" />
</div>
</div>
</body>
</html>
Hi,

I am terribly sorry, the fix I had posted earlier had a little problem

Instead of being -
Code: Select all
<cms:pages masterpage='work.php' folder='k_folder_name' paginate='1' limit='3' >

it should actually be -
Code: Select all
<cms:pages masterpage='work.php' folder=k_folder_name paginate='1' limit='3' >

Spot the difference?

The k_folder_name is to be used without the quotes around it.
With the quotes, Couch will try and use a folder with the literal name 'k_folder_name' whilst without the quotes it will use the variable named k_folder_name which is always populated with the current folder being visited (which is what we want).

Please remove the quotes and it should work now.

I apologize once again for my oversight.
Thanks.
Thanks for your prompt replies! It worked. I may have more questions but I'll post as new threads.
You are welcome :)
16 posts Page 2 of 2

Who is online

In total there are 14 users online :: 0 registered, 0 hidden and 14 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 14 guests

cron