not sure what exactly you meant by that, Simon, but the revised code should work just the same as your original cms:query code in all respects.Using cheesypoof's code will this show ''by posted time'' Like the Quary?
not sure what exactly you meant by that, Simon, but the revised code should work just the same as your original cms:query code in all respects.Using cheesypoof's code will this show ''by posted time'' Like the Quary?
KK wrote:not sure what exactly you meant by that, Simon, but the revised code should work just the same as your original cms:query code in all respects.Using cheesypoof's code will this show ''by posted time'' Like the Quary?
<cms:pages masterpage='members/index.php' id=k_member_id limit='1'>
<cms:set following_ids="<cms:related_pages field='following' ids_only='1'/>" scope='global'/>
</cms:pages>
<cms:pages masterpage='members/posts/index.php' custom_field="author=id(<cms:show k_member_id/>,<cms:show following_ids/>)">
<cms:if k_page_foldername == 'articles'>
...
<cms:else/>
<cms:if k_page_foldername == 'status'>
...
<cms:else/>
<!-- images -->
<cms:if>
</cms:if>
</cms:pages>
<cms:if k_page_foldername == 'status'>
...
<cms:else/>
<!-- images -->
<cms:if>
</cms:if>
</cms:pages>
KK wrote: The closing cms:if is missing the slash (i.e. make it </cms:if>
<cms:if k_page_foldername == 'status'>
...
<cms:else/>
<!-- images -->
<cms:if>
</cms:if>
</cms:pages>
KK wrote: Since in this case you need a fixed number of known folders, I think you should use the static method (i.e. with cms:folder) to create the folders.
k_page_folderid="<cms:folders masterpage='members/post/index.php' root='status' depth='1'><cms:show k_folder_id/></cms:folders>"
k_page_folder_id="<cms:folders masterpage='members/post/index.php' root='status' depth='1'><cms:show k_folder_id /></cms:folders>"
<cms:template title='Social Network Sub' clonable='1' folders='1' >
<!-- Update Status --->
<cms:editable name='status_text' type='richtext' toolbar='custom' custom_toolbar='bold, italic, link' height='100' />
<cms:editable name='s_img' type='text' />
<!-- Img post --->
<cms:editable name='post_image' type='text' />
<!-- Folders for all --->
<cms:folder name="status" title="status" id="status" />
<cms:folder name="image" title="image" id="image" />
<cms:folder name="article" title="article" id="status" />
<cms:editable has='one' label='Author' masterpage='members/index.php' name='author' required='1' type='relation'/>
<cms:editable name='linkprofile' type='text' />
<cms:editable name='profile' type='text' />
author=k_member_id