0

search-box not working

hi, i'm having trouble with search-box element, it give me nothing

this is my BML

CODE
<page>
<page-header>
<title-bar>
<logo resource="http://domain/image.png" />
<title>Title</title>
</title-bar>
<page-title>Home</page-title>
<back-title>Back</back-title>
<search-box ref="search-string" />
</page-header>
<content>
<module>
<header layout="simple">
<layout-items>
<block class="title">Blueprint Markup Language</block>
</layout-items>
</header>
<block>Hello World!</block>
</module>
</content>
<page-footer>
</page-footer>
</page>


there is exactly this 2 lines gives nothing
CODE
	<back-title>Back</back-title>
<search-box ref="search-string" />


any1 having same problem? why it doesn't work

by
5 Replies
  • Yo do know you still need model, don't you?
    CODE
    <models>  
    <model id="model_1">
    <instance>
    <search-string />
    </instance>
    <submission method="urlencoded-post" resource="/..." />
    </model>
    </models>

    QUOTE (bdutzz @ Apr 19 2009, 02:07 AM) <{POST_SNAPBACK}>
    hi, i'm having trouble with search-box element, it give me nothing

    this is my BML

    CODE
    <page>
    <page-header>
    <title-bar>
    <logo resource="http://domain/image.png" />
    <title>Title</title>
    </title-bar>
    <page-title>Home</page-title>
    <back-title>Back</back-title>
    <search-box ref="search-string" />
    </page-header>
    <content>
    <module>
    <header layout="simple">
    <layout-items>
    <block class="title">Blueprint Markup Language</block>
    </layout-items>
    </header>
    <block>Hello World!</block>
    </module>
    </content>
    <page-footer>
    </page-footer>
    </page>


    there is exactly this 2 lines gives nothing
    CODE
    	<back-title>Back</back-title>
    <search-box ref="search-string" />


    any1 having same problem? why it doesn't work
    0
  • ic, thanks natali

    i'm didn't notice search-box need a model
    i'll read about model

    what about the back-title?
    why it didn't appear
    0
  • I quote this from the manual:
    QUOTE
    Back-title contains text for a "back" button that returns to the previous page. This is useful when the page-title of the previous page (shown on the button by default) is too long. The "back" button appears only on certain devices.
    0
  • Additional:
    QUOTE
    Text appearing on the "back" button of a page-header. This element is primarily for iPhone applications.

    QUOTE (Natali @ Apr 21 2009, 07:41 AM) <{POST_SNAPBACK}>
    I quote this from the manual:
    0
  • ok thanks natalie FYI :D
    0
This forum is locked.

Recent Posts

in Blueprint General Discussion