Re: [mbittner] Search Problem

  • Archived  

By Donna - December 31, 2009

Hi Matt!

Sounds like the "Next" and "Prev" buttons were changed from their default. This can happen if you copied & pasted formatting from your index pages. :)

Here's what the default values are:

<div id="nextlinks">

<!-- templateIf : $articleList.prevPageNumber$ ne "" -->
<div class="prev">
<a href="$settings.searchurl$?action=search&amp;page=$articleList.prevPageNumber$&amp;perpage=$articleList.perpage$&amp;template=$articleList.template$&amp;includeSubcats=$articleList.includeSubcats$">&lt;&lt; prev page</a>
</div>
<!-- /templateIf -->

<!-- templateIf : $articleList.nextPageNumber$ > $articleList.thisPageNumber$ -->
<div class="next">

<a href="$settings.searchurl$?action=search&amp;page=$articleList.nextPageNumber$&amp;perpage=$articleList.perpage$&amp;template=$articleList.template$&amp;includeSubcats=$articleList.includeSubcats$">next page &gt;&gt;</a>
</div>
<!-- /templateIf -->
</div>

Donna

--
support@interactivetools.com

Re: [Donna] Search Problem

  • Archived  

By mbittner - December 31, 2009

Thanks, Donna.

Which file does this belong in?
Matt Bittner
Software Engineer
Internet Modeler

Re: [mbittner] Search Problem

  • Archived  

By Donna - December 31, 2009

Hi Matt!

Sorry about that -- that's the searchEngine/searchResults.html template. :)
Donna

--
support@interactivetools.com

Re: [Donna] Search Problem

  • Archived  

By mbittner - January 3, 2010

Sorry, didn't work. Here's my searchResults.html code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>$my.siteName$</title>
<meta name="Description" content="$my.siteDescription$" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<link rel="stylesheet" href="$settings.webfolder_url$style/stylesheet.css" type="text/css" />
<link rel="stylesheet" href="http://www.internetmodeler.com/artman/publish/common/articleContent.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title=
"$my.siteName:textOnly:htmlEncoded$ $my.siteDescription:textOnly:htmlEncoded$" href=
"$published.globalRSS.webpath$" />
<style type="text/css">
/*<![CDATA[*/
body {
background-color: #FFFFFF;
color: #000000;
}
div.c1 {text-align: center}
/*]]>*/
</style>
</head>

<body>
<table width="760" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="602" bgcolor="#FFCC33"><?php include('$published.siteHeader.filepath$');
$categoryFileSize = 100;
?><span><a href="$published.globalIndex.url$">$my.homepageName$</a></span></td>

<td width="159" align="center" valign="top" bgcolor="#FFCC33">
<form class="search" method="post" action="$settings.searchurl$">
<p><input type="hidden" name="action" value="search" /> <input class="textbox" type=
"text" name="keyword" value="" /><br />
<input class="button" type="submit" name="Submit" value="Search" /><br />
<a href="$settings.searchurl$">advanced search</a></p>
</form>
</td>
</tr>

<tr>
<td width="601" valign="top">
<!-- template insert : $articleList$ -->
<!-- templatecell : articleRow -->

<h1><a href="$published.articlePage.url$">$article.title$</a></h1>Posted in:
<!-- template insert : $article.categoryList$ -->
<!-- templatecell : categoryRow -->
<!-- templateIf: $isLastCategory$ != "1" -->
<a href="$published.categoryIndex.url$">$category.name$</a>, <!-- /templateIf -->
<!-- templateIf: $isLastCategory$ == "1" -->
<a href="$published.categoryIndex.url$">$category.name$</a> <!-- /templateIf -->
<!-- /templatecell : categoryRow -->
<br />$article.summary$

<p class="post-footer align-right"><span class="date">$article.date$</span> <a href=
"$published.articlePage.url$" class="readmore">Read more</a></p>
<!-- /templatecell : articleRow -->
<!-- templateIf : $articleList$ eq "" -->

<div class="not_found">
Sorry, no articles were found.
</div><!-- /templateIf -->

<div id="nextlinks">

<!-- templateIf : $articleList.prevPageNumber$ ne "" -->
<div class="prev">
<a href="$settings.searchurl$?action=search&amp;page=$articleList.prevPageNumber$&amp;perpage=$articleList.perpage$&amp;template=$articleList.template$&amp;includeSubcats=$articleList.includeSubcats$">&lt;&lt; prev page</a>
</div>
<!-- /templateIf -->

<!-- templateIf : $articleList.nextPageNumber$ > $articleList.thisPageNumber$ -->
<div class="next">
<a href="$settings.searchurl$?action=search&amp;page=$articleList.nextPageNumber$&amp;perpage=$articleList.perpage$&amp;template=$articleList.template$&amp;includeSubcats=$articleList.includeSubcats$">next page &gt;&gt;</a>
</div>
<!-- /templateIf -->

</div>
</td>

<td width="159" valign="top" bgcolor="#FFCC33">
<?php include('$published.globalMenu.filepath$'); ?>

<div class="c1">
<p><a href=
"http://digg.com/submit?phase=2&amp;url=$published.articlePage.url:urlEncoded$&amp;title=$article.title:urlEncoded$&amp;bodytext=$article.summary:maxWords(40):textOnly:urlEncoded$"
class="digg">Digg this story!</a><br />
<a href=
"mailto:?subject=$article.title:urlEncoded$&amp;body=$published.articlePage.url:urlEncoded$"
class="email">Email this article</a><br />
<a href="$published.articlePrinterPage.url$" class="print">Printable page</a></p>

<p>
<? $bid=""; $zid=4890; include "/home/shb1_200/www.internetmodeler.com/public_html/Scripts/banner.php" ; ?>

<? $zid=4679; include "/home/shb1_200/www.internetmodeler.com/public_html/Scripts/banner.php" ; ?>
</p>
</div>
</td>
</tr>

<tr bgcolor="#FFCC33">
<td colspan="2" align="center">
<? $zid=2619; include "/home/shb1_200/www.internetmodeler.com/public_html/Scripts/banner.php" ; ?>
</td>
</tr>
</table>
</body>
</html>

Matt Bittner
Software Engineer
Internet Modeler

Re: [mbittner] Search Problem

  • Archived  

By Donna - January 4, 2010

Hi Matt!

Try adding this to the end of the links:

&keyword=$form.keyword:urlEncoded$&keywordSearchFields=$form.keywordSearchFields:urlEncoded$

Let me know if that works for you. :)
Donna

--
support@interactivetools.com

Re: [Donna] Search Problem

  • Archived  

By mbittner - January 30, 2010

Sorry it took so long to get back to you. Unfortunately this didn't work. I received the following error:

Error: Unknown fieldname '[unknown placeholder $form.keywordSearchFields$]'!

Did I place your code in the wrong place?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>$my.siteName$</title>
<meta name="Description" content="$my.siteDescription$" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<link rel="stylesheet" href="$settings.webfolder_url$style/stylesheet.css" type="text/css" />
<link rel="stylesheet" href="http://www.internetmodeler.com/artman/publish/common/articleContent.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title=
"$my.siteName:textOnly:htmlEncoded$ $my.siteDescription:textOnly:htmlEncoded$" href=
"$published.globalRSS.webpath$" />
<style type="text/css">
/*<![CDATA[*/
body {
background-color: #FFFFFF;
color: #000000;
}
div.c1 {text-align: center}
/*]]>*/
</style>
</head>

<body>
<table width="760" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="602" bgcolor="#FFCC33"><?php include('$published.siteHeader.filepath$');
$categoryFileSize = 100;
?><span><a href="$published.globalIndex.url$">$my.homepageName$</a></span></td>

<td width="159" align="center" valign="top" bgcolor="#FFCC33">
<form class="search" method="post" action="$settings.searchurl$">
<p><input type="hidden" name="action" value="search" /> <input class="textbox" type=
"text" name="keyword" value="" /><br />
<input class="button" type="submit" name="Submit" value="Search" /><br />
<a href="$settings.searchurl$">advanced search</a></p>
</form>
</td>
</tr>

<tr>
<td width="601" valign="top">
<!-- template insert : $articleList$ -->
<!-- templatecell : articleRow -->

<h1><a href="$published.articlePage.url$">$article.title$</a></h1>Posted in:
<!-- template insert : $article.categoryList$ -->
<!-- templatecell : categoryRow -->
<!-- templateIf: $isLastCategory$ != "1" -->
<a href="$published.categoryIndex.url$">$category.name$</a>, <!-- /templateIf -->
<!-- templateIf: $isLastCategory$ == "1" -->
<a href="$published.categoryIndex.url$">$category.name$</a> <!-- /templateIf -->
<!-- /templatecell : categoryRow -->
<br />$article.summary$

<p class="post-footer align-right"><span class="date">$article.date$</span> <a href=
"$published.articlePage.url$" class="readmore">Read more</a></p>
<!-- /templatecell : articleRow -->
<!-- templateIf : $articleList$ eq "" -->

<div class="not_found">
Sorry, no articles were found.
</div><!-- /templateIf -->

<div id="nextlinks">

<!-- templateIf : $articleList.prevPageNumber$ ne "" -->
<div class="prev">
<a href="$settings.searchurl$?action=search&amp;page=$articleList.prevPageNumber$&amp;perpage=$articleList.perpage$&amp;template=$articleList.template$&amp;includeSubcats=$articleList.includeSubcats$&amp;keyword=$form.keyword:urlEncoded$&amp;keywordSearchFields=$form.keywordSearchFields:urlEncoded$">&lt;&lt; prev page</a>
</div>
<!-- /templateIf -->

<!-- templateIf : $articleList.nextPageNumber$ > $articleList.thisPageNumber$ -->
<div class="next">
<a href="$settings.searchurl$?action=search&amp;page=$articleList.nextPageNumber$&amp;perpage=$articleList.perpage$&amp;template=$articleList.template$&amp;includeSubcats=$articleList.includeSubcats$&amp;keyword=$form.keyword:urlEncoded$&amp;keywordSearchFields=$form.keywordSearchFields:urlEncoded$">next page &gt;&gt;</a>
</div>
<!-- /templateIf -->

</div>

</td>

<td width="159" valign="top" bgcolor="#FFCC33">
<?php include('$published.globalMenu.filepath$'); ?>

<div class="c1">
<p><a href=
"http://digg.com/submit?phase=2&amp;url=$published.articlePage.url:urlEncoded$&amp;title=$article.title:urlEncoded$&amp;bodytext=$article.summary:maxWords(40):textOnly:urlEncoded$"
class="digg">Digg this story!</a><br />
<a href=
"mailto:?subject=$article.title:urlEncoded$&amp;body=$published.articlePage.url:urlEncoded$"
class="email">Email this article</a><br />
<a href="$published.articlePrinterPage.url$" class="print">Printable page</a></p>

<p>
<? $bid=""; $zid=4890; include "/home/shb1_200/www.internetmodeler.com/public_html/Scripts/banner.php" ; ?>

<? $zid=4679; include "/home/shb1_200/www.internetmodeler.com/public_html/Scripts/banner.php" ; ?>
</p>
</div>
</td>
</tr>

<tr bgcolor="#FFCC33">
<td colspan="2" align="center">
<? $zid=2619; include "/home/shb1_200/www.internetmodeler.com/public_html/Scripts/banner.php" ; ?>
</td>
</tr>
</table>
</body>
</html>

Matt Bittner
Software Engineer
Internet Modeler

Re: [mbittner] Search Problem

  • Archived  

By MikeB - February 1, 2010

Hi Matt,

I've had a look at this template here and based on what you've described you'll just need to make a quick tweak to the two "next" and "previous" links.

Just replace this bit of code:

keywordSearchFields=$form.keywordSearchFields:urlEncoded$

With this:

keywordSearchFields=$keywordSearchFields:urlEncoded$

You'll notice you're just removing the "form." portion and this should get you up and running with the appropriate navigation links.

Let me know how this works out Matt! [:)]

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com

<hr /><i><a href="http://www.interactivetools.com/consulting/" rel="nofollow"><b>Hire me!</b></a>
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with <a href="http://www.interactivetools.com/consulting/" rel="nofollow"><b>Priority Consulting</b></a>.</i>

Re: [MikeB] Search Problem

  • Archived  

By mbittner - February 2, 2010

That worked. Thanks!
Matt Bittner
Software Engineer
Internet Modeler