Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello,

I am using CouchCMS 2.0 for a work in progress, and I've added the search function to a page.
Here's my code:

Code: Select all
  <cms:template clonable='1' title='Users' executable='0' order='10'>
    <cms:config_list_view searchable='1'>
        <cms:field 'k_selector_checkbox' />
        <cms:field 'k_page_title' header='Name' />
        <cms:field 'email' header='Email' />
        <cms:field 'code' header='Code' />

      <cms:field 'k_page_date' header="Date">
      <cms:date k_page_date format='jS M, Y' />
      <cms:date k_page_date format='H:i:s' />
    </cms:field>
   
        <cms:field 'k_actions' />

    </cms:config_list_view>
        <cms:editable name='email' label='Email' type='text' />
        <cms:editable name='code' label='Code' type='text' />
    </cms:template>


But the thing is that if I search for a specific code, or email, or page title, it doesn't show anything. Like if the email I've entered was not there. But it is.
Everything is working fine, except the Search function for that list.

Is that a bug with Couch 2.0?

Thank you
Hi,

I think I can see the problem.
The search feature in the admin-panel, as I mentioned in the docs, piggy-backs on the existing search feature that has always been available for the front-end templates. That search is designed to ignore non-executable templates - your template has the 'executable' set to '0' and so it is being skipped.

This behavior of the search feature is fine for the front-end but for the admin-panel, I think I'll have to modify it to include executable templates too.

I'll do that as soon as possible; for now you'll have to set the 'executable' to '1' (if that does not impact anything elsewhere in your setup.
That did the trick!
Thanks a lot KK for your quick reply. Helped me a lot.
3 posts Page 1 of 1