Search form
  • Hi

    i was trying to use more options in my search form.

    I want to give to users the ability to search in a specific field name.

    I was tring:

    {{ camp_edit object="search" attribute="NAME_OF_FIELD_TO_SEARCH" }}

    But this thoes not work.... can someone help?

    thanks,

    Nelson Camacho


    >
    >

  • 1 Comment sorted by
  • Hello Nelson,

    Unfortunately at the moment you cannot do that with Campsite.
    camp_edit modifier only accepts three predefined attributes for the
    "search" object as you can read from the manual
    http://en.flossmanuals.net/Campsite/Forms (look for Form: Search,
    especially Edit Search and Select Search might be also helpful. Manual
    was recently migrated to floss and we do not have anchors yet for some
    of the pages).

    Searching works only on the "Keywords" field and all the textarea
    fields of the article marked as content.

    For a complete example on searching with advanced features, please go
    to http://en.flossmanuals.net/Campsite/CreatingASearchTemplate



    On Wed, Jul 21, 2010 at 4:22 PM, Nelson Camacho
    <campsite-support@lists.sourcefabric.org> wrote:
    >
    > Hi
    >
    > i was trying to use more options in my search form.
    >
    > I want to give to users the ability to search in a specific field name.
    >
    > I was tring:
    >
    > {{ camp_edit object="search" attribute="NAME_OF_FIELD_TO_SEARCH" }}
    >
    > But this thoes not work.... can someone help?
    >
    > thanks,
    >
    > Nelson Camacho
    >
    >
    > >
    > >
    >
    >


    --
    Holman Romero
    Senior Software Engineer, Sourcefabric
    holman.romero@sourcefabric.org

    Salvátorská 10
    110 00 Praha 1, Czech Republic
    +420 607 133 896

    http://www.sourcefabric.org