Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-03-07 18:54:57
- tez
- Member
- Registered: 2006-02-25
- Posts: 22
Add the Search/Browse features to a Theme?
Hi
I’ve just installed the TXP empire theme
….and I’d like to add the search/browse features.
Is this possible?
And if so, could someone suggest how I place the tags?
Ideally I’d like them to be top right in or above the nav bar on the right.
<code> <txp:search_input label=“Search” wraptag=“p” /> <txp:popup type=“c” label=“Browse” wraptag=“p” /> <p><txp:feed_link label=“RSS” /> / <txp:feed_link label=“Atom” flavor=“atom” /></p></code>
Hope that’s clear and some kind TXPer can help!
Thanks
Tez
This is the page template:
<code>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en”>
<head profile=“http://gmpg.org/xfn/1”>
<meta http-equiv=“content-type” content=“text/html; charset=utf-8” />
<meta name=“author” content=“textpattern” />
<meta name=“rating” content=“General” />
<meta name=“generator” content=“TextPattern” />
<meta name=“revisit-after” content=“14 days” />
<link rel=“stylesheet” href=”<txp:css />” type=“text/css” media=“screen” />
<link rel=“alternate” type=“application/rss+xml” title=“RSS 0.92” href=”/?rss=1” />
<link rel=“alternate” type=“application/atom+xml” title=“Atom 1.0” href=”/?atom=1” />
<txp:if_individual_article><title><txp:section title=“1” />: <txp:page_title /></title></txp:if_individual_article><txp:if_article_list><txp:if_section name=”“><title>Home Page: <txp:sitename /></title><txp:else /><title><txp:section title=“1” />: <txp:sitename /></title></txp:if_section></txp:if_article_list>
</head>
<txp:if_section name=”“>
<body id=“home”>
<txp:else />
<body id=”<txp:section />”>
</txp:if_section>
<div id=“accessibility”>
<a href=”#content” title=“Go to content”>Go to content</a>
<a href=”#sidebar” title=“Go to menu”>Go to menu</a>
</div>
<div id=“header”>
<h1><txp:link_to_home><txp:sitename /></txp:link_to_home></h1>
<p class=“description”><txp:site_slogan /></p>
</div>
<div id=“nav”>
<div id=“navwrap”>
<ul>
<li><a href=”<txp:site_url />”>Home</a></li>
<li><a href=”<txp:site_url />about”>About</a></li>
</ul>
</div>
</div>
<div id=“wrap”>
<div id=“content”>
<txp:if_section name=”,article”>
<txp:if_article_list>
<txp:article limit=“2” />
<div class=“navigation”>
<div class=“alignleft”><txp:older>Previous Entries</txp:older></div>
<div class=“alignright”><txp:newer>Next Entries</txp:newer></div>
</div>
<txp:else />
<txp:article />
</txp:if_article_list>
</txp:if_section>
<txp:if_section name=“about”>
<txp:article />
</txp:if_section>
</div>
<txp:output_form form=“sidebar” />
</div>
<txp:output_form form=“footer” />
</body>
</html>
</code>
Offline
#2 2006-03-07 19:33:51
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Add the Search/Browse features to a Theme?
It looks like the right column is in your form ‘sidebar’. If you add those tags there just after <div id="sidebar">
it will appear above the ‘Sections’ block. You can move them around in that form to see what suits you best.
Offline
#3 2006-03-08 10:12:24
- tez
- Member
- Registered: 2006-02-25
- Posts: 22
Re: Add the Search/Browse features to a Theme?
Hi Els
Many thanks for that!
Tez
Offline