Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-23 14:55:47

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

problems with search page

Ive created a search section and corresponding page to display search results

Heres the search input in the header form.
<div id="keyword"> <txp:search_input section="search" wraptag="p" button="go" /> </div>

Here the form on my search results page.

<p><txp:search_result_excerpt /></p>

Other things i’ve check:
production status=live
all sections are set to include in site search
in admin>> content>> articles a title and body search using keywords works fine

If i search for “centre” this url is returned
http://nwtc.ie/index.php?q=centre

But here is the search results section:
http://nwtc.ie/index.php?s=search

I dont understand?

Last edited by kvnmcwebn (2007-05-23 15:00:58)


its a bad hen that wont scratch itself.
photogallery

Offline

#2 2007-05-24 02:51:32

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: problems with search page

<p><txp:search_result_excerpt /></p> needs to be inside an article form, and called in your page by the article tag.

Offline

#3 2007-05-24 07:34:00

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: problems with search page

k thanks i put search_result_excerpt inside a article form like this:

<h3><txp:permlink><txp:title /></txp:permlink></h3> <p><txp:search_result_excerpt /></p>

Here is the article tag that calls it in the search page:
<txp:article form="search_results" />

still dosnt work.


its a bad hen that wont scratch itself.
photogallery

Offline

#4 2007-05-25 02:14:28

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: problems with search page

Okay, this looks correct.

Now to figure out why the form isn’t working properly. Would you post your “High” diagnostics results please?

Offline

#5 2007-05-25 08:15:36

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: problems with search page

ok here it is
@Textpattern version: 4.0.4 (r1956)
last_update: 2007-04-07 04:57:51/2007-04-07 04:41:33
Document root: /home/nwtc/www
$path_to_site: /home/nwtc/www
Textpattern path: /home/nwtc/www/textpattern
Permanent link mode: messy
upload_tmp_dir: /tmp
Temp folder: /tmp
Site URL: nwtc.ie
PHP version: 4.4.4
Register globals: 1
Server time: 2007-05-25 04:07:56
MySQL: 3.23.57
Locale: en_GB.UTF-8
Server: Apache/1.3.37 (Unix) mod_watch/3.17 mod_ssl/2.8.28 OpenSSL/0.9.8d PHP/4.4.4
Apache version: Apache/1.3.37 (Unix) mod_watch/3.17 mod_ssl/2.8.28 OpenSSL/0.9.8d PHP/4.4.4
PHP mode: apache
rfc2616_headers:
Operating System: Linux 2.4.21-47.EL
active_plugins: zem_contact_reborn-4.0.3.17, zem_contact_lang-4.0.3.6

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

#php_value register_globals 0

————————————

Charset (default/config): latin1/latin1
character_set: latin1
character_sets: latin1 dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
17 Tables: -

PHP extensions: xml, tokenizer/0.1, standard/4.4.4, session, posix, overload, mysql, ftp, ctype, pcre, apache
/include/txp_category.php: r1879 (aee777474b2f67ca07fc25756ba25c15)
/include/txp_plugin.php: r1917 (74184c0d8ed8608f840707a255178617)
/include/txp_auth.php: r1879 (b1dd4072b7daf4e997c6ff65ce3d1b2d)
/include/txp_form.php: r1913 (16ec600b41438b4cca10d2c8a19b2db8)
/include/txp_section.php: r1891 (2959593586ba3e97bc602f369c32e738)
/include/txp_tag.php: r1915 (3b4a7f73d92f9bbbe09985c5aa830d29)
/include/txp_list.php: r1892 (41f4d32fd070234b78f94adefebd5234)
/include/txp_page.php: r1913 (34331a5468bbb18dd9f6a282f3aa11e8)
/include/txp_discuss.php: r1909 (9b9ee934a30f52cd7a4d8cb45c8380ab)
/include/txp_prefs.php: r1946 (05615b6275d8927a2a0d51918d70a896)
/include/txp_log.php: r1919 (ed54d02e865319f2506c642a6bde768b)
/include/txp_preview.php: r1238 (5a4ae3ff0d68f4cb573d6d62a00ce9e8)
/include/txp_image.php: r1955 (20be975e67fa7c4aa9a1a3e51bfaf379)
/include/txp_article.php: r1889 (7749f699c03d0c57e04fafe17dbfa94c)
/include/txp_css.php: r1897 (f5cf1c20badb96a063c7c180e9020359)
/include/txp_admin.php: r1879 (d36dac010d21df7bcf9cf5e242b34d58)
/include/txp_link.php: r1879 (0652287df8bb32c66cfa1b939402404a)
/include/txp_diag.php: r1902 (96697ade63048e517177f4129d47de76)
/include/txp_file.php: r1895 (6ed67b094522e51b028dc88baa07444c)
/include/txp_import.php: r1238 (634e75d1b61958875ff275e3130f23ad)
/lib/admin_config.php: r1747 (1563fcbaffe25b3272b0d85ff9d5571d)
/lib/txplib_misc.php: r1956 (182c50b86195f1abe9dbe15728df3cae)
/lib/taglib.php: r1535 (04806ef864d5b0d2974e0e5f6397a2d7)
/lib/txplib_head.php: r1887 (b110efd071e9a5bb395beea66ced128a)
/lib/classTextile.php: r1943 (2c559991e34738eef1990dc079bd91c4)
/lib/txplib_html.php: r1937 (c206ca9cb9a54a7a95f3355b77fd0fa2)
/lib/txplib_db.php: r1879 (d68b6ea69950e405c4fec23b8641d9c2)
/lib/IXRClass.php: r765 (cbe59b59246dce060a4b4a52b4d448d8)
/lib/txplib_forms.php: r1887 (0049a228dc8eb346f8603478a7c1b2e2)
/lib/class.thumb.php: r1955 (12961180eee3add5096e69e0a154284e)
/lib/constants.php: unknown (0e40251c717c52b2b7fe992b62a3e97a)
/lib/txplib_update.php: r1239 (757f8189fcc53a795d7c807f17b2e788)
/lib/txplib_wrapper.php: unknown (584448787b4a3488200722672c0eee0d)
/publish/taghandlers.php: r1949 (3fa1b9ded18e6074b2495a3f4e3c33b5)
/publish/atom.php: r1864 (50602e2f1c443819a0a60f14f39d3093)
/publish/log.php: r1637 (a4a772567079f18101a1752446f3f6d4)
/publish/comment.php: r1951 (a3f803d744fea80808eb27a3f6b28674)
/publish/search.php: r1748 (b0182abc287055fe0932c263b2a5266d)
/publish/rss.php: r1864 (ae43eaa9ebe6b00e63810ae60ca7c6b6)
/publish.php: r1945 (abff727405efc6c4ec8b1cb403290063)
/index.php: r1948 (adf86f44861797f4969373c708ef48fb)
/css.php: r944 (763fa7658fc19ad23a5b2126fcdf366c)@


its a bad hen that wont scratch itself.
photogallery

Offline

#6 2007-05-26 00:24:36

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: problems with search page

Hmm. I don’t see any mod_rewrite trickery. The plugins you’re using wouldn’t do that either.

Well, the following should work, though it doesn’t explain why the tag isn’t working properly.

<div id="keyword">
	<form method="get" action="<txp:site_url />">
		<p><input type="text" name="q" value="<txp:page_url type="q" />" size="15" /> 
			<input type="submit" value="go" />
			<input type="hidden" name="s" value="search" /></p>
	</form>
</div>

Offline

#7 2007-05-26 00:45:53

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: problems with search page

Hi mary,
Thats brilliant. Maybe the problem had something had to do with the host. dont know
thanks very much

Last edited by kvnmcwebn (2007-05-26 00:46:39)


its a bad hen that wont scratch itself.
photogallery

Offline

Board footer

Powered by FluxBB