Problems, need help? Have a tip or advice? Post it here.
23 posts Page 2 of 3
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.
KK wrote:
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.


Thanks KK,

i'm having a Error message come up saying. I'm using the new v1.4.5RC1 update
ERROR! Closing tag "pages" has no matching opening tag (line: 164 char: 5742)

When using Cheesyproofs code

Code: Select all
<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>
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: 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>


Cant believe i missed that.

Thank You so much KK
Sorry to bug you KK,

You know when setting the folders within the members/post/index.php page would i use dynamic folders?
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.
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.


Thanks KK,

:lol: Seam to be having plenty of issues with this. I've defined the folder tag within the members/post/index.php however when i add in

Code: Select all
k_page_folderid="<cms:folders masterpage='members/post/index.php' root='status' depth='1'><cms:show k_folder_id/></cms:folders>"


within the databound form and submit the data it wont place it into the folder i name status.

Also when using the code above, the one to show the content. This wont show the content at all even if i manually place into the status folder within the admin panel. Little more complex than normal for me.
Please try setting 'k_page_folder_id' (instead of 'k_page_folderid') -
Code: Select all
k_page_folder_id="<cms:folders masterpage='members/post/index.php' root='status' depth='1'><cms:show k_folder_id /></cms:folders>"
this is what i have within the template members/post/index.php
now the author bit wont work with the data bound either. author=k_member_title

I've remove the in-red bit bellow from my code and now shows a list of authors. However when submitting via databound it wont set the member

<cms:editable name='author' type='text' />
Code: Select all
<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'  />
Please use k_member_id instead of k_member_title
author=k_member_id
23 posts Page 2 of 3
cron