Recent Topics

1 Oct 05, 2005 23:34    

I want to change the sidebar search form from name="SearchForm" to id="SearchForm"... The name= part is being assigned programmatically, however, with the following code:

<?php form_formstart( $Blog->dget( 'blogurl', 'raw' ), 'search', 'SearchForm' ) ?>

I can't seem to find the file wherein the actual name= vs id= part is being assigned...

jj.

2 Oct 05, 2005 23:44

Okay, seems that the code I'm looking for is in /b2evocore/_functions_forms.php (correct me if I'm wrong). That means that I can't change the name= to id= on a skin by skin basis, it would have to be blog-wide... My next alternative option would be to explicitly define id= for the particular skin I'm working on.

So... If I edit the above code to this:

<?php form_formstart( $Blog->dget( 'blogurl', 'raw' ), 'search', '' ) ?>

how do I go about assigning id="SearchForm" into the form tag?

jj.

3 Oct 05, 2005 23:57

Okay, I got it to work by explicitly defining the method='get' in the form tag, like so:

<?php form_formstart( $Blog->dget( 'blogurl', 'raw' ), 'search', '', 'get', 'SearchForm' ) ?>

and leaving the name= portion blank... Is there a better way to do this?

(I'm one step closer to making my darkling skin, and the corresponding brightling skin, XHTML Strict compliant. woohoo!)

jj.


Form is loading...