Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-06 18:56:06

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

Trying to be smart here by making a thought out template...not working

I’m trying to make a template for my site. For areas of the site such as the navigation, search, or any other area of the site that will be consistant throughout the whole site, I’m wanting to put those areas in forms, so if a change needs to be made, I can edit the form and it updates throughout the site, rather then me having to update code for 50 page templates.

Anyway, I’m still new with TXP and what I’m doing isn’t working. I have the code for my site search in a form called site_search. Then in the page html, where I want the search to show up at, I have, <txp:article form=“site_search” />. When I do this, it displays three search input boxes on top of each other, rather than just displaying one.

I know this can’t be the right way to do this, but in my searching the forums and looking at tags on textbook I can’t figure out the right way.

Offline

#2 2006-08-06 19:00:15

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Trying to be smart here by making a thought out template...not working

Hi,

You’re code didn’t display but this is how I display my sidebars:
<code>
<!— left —>
<div id=“sidebar-1”>
<txp:output_form form=“sidebar-1” />
</div>
</code>

<code>
<!— right —>
<div id=“sidebar-2”>
<txp:output_form form=“sidebar-2” />
</div>
</code>

Offline

#3 2006-08-06 19:13:52

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

Re: Trying to be smart here by making a thought out template...not working

Ah, I’m sorry. I always forget to wrap it in code tags. Anyway, that worked! I kept doing this:

<code>
<!—-left—->
<div>
<txp:article form=“sidebar” />
</div>
</code>

<br />
thanks!

Last edited by deronsizemore (2006-08-06 19:14:28)

Offline

Board footer

Powered by FluxBB