x
Toggle Content    Register or Login  -  December 16, 2018, 3:42 pm  
Toggle Content Commercial Themes
This is an opportunity for you to preview TCD commercial themes. All themes seen here can be purchased from the store.
Toggle Content User Info

Welcome Anonymous

Toggle Content Navigation
Toggle Content Project Status
Support Forums » DragonflyCMS » Tips & Tricks » Header - Searchbox
Please use the forum search before making a post. Your question might have been previously answered.

Header - Searchbox
Some of the best non-standard tricks for your site all in one location.


Post new topic   Reply to topic    Forum Index » Tips & Tricks Printer Friendly Page

View previous topic :: View next topic  
Author Message
Lead Developer


PostPosted: Wed May 30, 2007 1:04 am Reply with quote

The header searchbox must be formatted within theme.php because it will use DF's getlink. You can do it from within an html file by replacing getlink with index.php?name=Search however for this example we'll be using themes/TCD_Natural/theme.php

Define the headersearch variable immediately above where you assign variables. So it would look something like this:
Code:
$headersearch='<form action="'.getlink('Search').'" method="post" enctype="multipart/form-data" accept-charset="utf-8">
<input type="text" name="search" size="20" maxlength="255" />
<input type="submit" value="'._SEARCH.'" /></form>';
$cpgtpl->assign_vars(array(

Assign the variable:
Code:
'HEADER_SEARCHBOX' => $headersearch,

In header.html or whatever template file you want the search put:
Code:
{HEADER_SEARCHBOX}

All there is to it. enjoy.


_________________

Back to top
View user's profile Photo Gallery
  Page 1 of 1All times are GMT - 5 Hours

Post new topic   Reply to topic    Forum Index » Tips & Tricks Printer Friendly Page

  
  
  
 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


RSS-News
RSS-Downloads
RSS-Forums
RSS-KnowledgeBase
Valid CSS!
Valid HTML 4.01!

Site Search | Support | Contact | Payments | Link to Us
All TCD logos and trademarks in this site are property of TreasureCoastDesigns.com
Interactive software released under GNU GPL, Code Credits, Privacy Policy
TCD_Natural © T.C.D.