 |

Kimber
User
Jul 23, 2008, 8:13 AM
Post #1 of 16
(4806 views)
Shortcut
|
|
textfield / string searchable
|
Can't Post
|
|
Hello, I made a new textfield / string and input the place hold thing: <!-- templateIf : $article.productnumber$ ne "" --> <b>Product Number:</b> $article.productnumber$ - (if applies) <!-- /templateIf --> It works fine however there will be matching product numbers to help people get all the peice of the project they need. Is there anyway to add make a new search page for people to only search for product numbers? So when they enter the product number all matching product number show up. Or ~ make the product number a link so when they click it all the matching number show? could it been done like related articles but with related product numbers? Example of product numbers: P - 8974784 W - 8974784 T - 8974784 P for printable, W for word doc and T for tutor etc... Thanks Kimberly
(This post was edited by Kimber on Jul 23, 2008, 8:24 AM)
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 23, 2008, 12:59 PM
Post #2 of 16
(4751 views)
Shortcut
|
|
Re: [Kimber] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Hi Kimberly, Any one of those methods you outlined should work here. Let us know which one you'd prefer to use and we can write out some more detailed information on it for you. ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! 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 Priority Consulting.
|
|
|  |
 |

Kimber
User
Jul 23, 2008, 1:52 PM
Post #3 of 16
(4736 views)
Shortcut
|
|
Re: [Jake] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Hello, If I could do it like related links that would be greats! Kimberly
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 24, 2008, 12:22 PM
Post #4 of 16
(4705 views)
Shortcut
|
|
Re: [Kimber] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Hi Kimberly, In that case you should be able to follow the related articles tutorial pretty much as it is - you won't really need to do anything different. http://www.interactivetools.com/docs/doc.cgi?/articlemanager2/tutorials/related_articles.html Let us know if you have any questions while setting that up! ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! 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 Priority Consulting.
|
|
|  |
 |

Kimber
User
Jul 24, 2008, 2:38 PM
Post #5 of 16
(4700 views)
Shortcut
|
|
Re: [Jake] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Since I already have this tutor done as related articles. I do I do the same tutor but change the: Field Label: Article Keyword Field Name: keyword Field Type: text field to fit the products field names. Correct?
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 24, 2008, 8:43 PM
Post #6 of 16
(4696 views)
Shortcut
|
|
Re: [Kimber] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Hi Kimberly, Right - if you've already set this up, then you would need to create the exact same type of field, but just give it a different name and description. ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! 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 Priority Consulting.
|
|
|  |
 |

Kimber
User
Jul 25, 2008, 9:14 AM
Post #7 of 16
(4596 views)
Shortcut
|
|
Re: [Jake] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Hello, I have a few questions after trying this. First here is the information: Add new article field: Field Label: Product Number Field Name: productnumber Field Type: text field Create a custom search results template I named the page relatedProduct.html - Does any of this need edited? I cound not se anyting to edit. <!--StartFragment--> <b>Related Product:</b><br> <!-- template insert : $articleList$ --> <div class="summary"> <!-- templatecell : articleRow --> <a href="$published.articlePage.url$"><b>$article.title$</b></a> - <span class="summary_date">$article.date$</span><br> <!-- /templatecell : articleRow --> </div> Edit the articlePage.html template I will highlight what I changed but got an error message so need to know what I did wrong: <!--StartFragment--> <!-- templateIf : $article.keyword$ ne "" --> <!--#include virtual="$/printable/search.cgil$?action=search&keywordSearchFields=keyword&keyword=$article.productnumber$&template=searchEngine/relatedProduct.html&perpage=10" --> <br> Thoughts? Thank you Kimberly
|
|
|  |
 |

Donna
Staff
/ Moderator

Jul 25, 2008, 2:03 PM
Post #8 of 16
(4534 views)
Shortcut
|
|
Re: [Kimber] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Hi Kimber! What error message are you getting? One thing to doublecheck is that the new template is in the searchEngine template directory, since that's what you're specifying in the search path. Donna
Hire me! 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 Priority Consulting.
|
|
|  |
 |

Kimber
User
Jul 30, 2008, 5:41 AM
Post #9 of 16
(3390 views)
Shortcut
|
|
Re: [Donna] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Hello, I started over from scratch to I could find my error. I got related articles working fine. But on related product I get error [an error occurred while processing this directive] Go to Admin > Database Editor and click "edit table & fields" link for Articles. I put: Field Label: Product Number Field Name: product Field Type: text field -- - - - - - - - - - - - - - relatedProduct.html is the file in the /templates/searchEngine/ and in that file I have: <b>Related Products:</b><br> <!-- template insert : $articleList$ --> <div class="summary"> <!-- templatecell : articleRow --> <a href="$published.articlePage.url$"><b>$article.title$</b></a> - <span class="summary_date">$article.date$</span><br> <!-- /templatecell : articleRow --> </div> - - - - - - - - in articlePage.html I put: <!-- templateIf : $article.product$ ne "" --> <!--#include virtual="/printable/search.cgiaction=search&productSearchFields=product&product=$article.product$&template=searchEngine/relatedProduct.html&perpage=10" --> <br> <!-- /templateIf --> - - - - - - Any thoughts what I am doing wrong here? Thanks Kimberly
|
|
|  |
 |

Donna
Staff
/ Moderator

Jul 30, 2008, 12:06 PM
Post #10 of 16
(3328 views)
Shortcut
|
|
Re: [Kimber] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Hi Kimber, Yep, you've got a teeny typo. In this line: <!--#include virtual="/printable/search.cgiaction=search&productSearchFields=product&product=$article.product$&template=searchEngine/relatedProduct.html&perpage=10" --> You're missing the "?" after the filename. It should be: <!--#include virtual="/printable/search.cgi?action=search&productSearchFields=product&product=$article.product$&template=searchEngine/relatedProduct.html&perpage=10" --> Right now, it's getting that error because "search.cgiaction" isn't a filename on the server. This is basically a fancy "file not found" error. :) Donna
Hire me! 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 Priority Consulting.
|
|
|  |
 |

Kimber
User
Jul 30, 2008, 12:20 PM
Post #11 of 16
(3327 views)
Shortcut
|
|
Re: [Donna] textfield / string searchable
[In reply to]
|
Can't Post
|
|
I hate tiny typos (thanks) and now I have another problem. It works but it showing the last 10 added articles instead of the ones with matching product numbers. And this is on all articles but I only have product numbers I put in two articles. http://www.printmefree.com/printable/halloween/Halloween_story_school_lesson.shtml for a sample. Under Related Products: Any ideas? { Hope I am not driving you all crazy, if this is not possible then that is ok. Just something we like to add } Kimberly
|
|
|  |
 |

Donna
Staff
/ Moderator

Jul 31, 2008, 11:59 AM
Post #12 of 16
(3219 views)
Shortcut
|
|
Re: [Kimber] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Hi Kimberly, Would you be able to download the "Halloween_story_school_lesson.shtml" file, view the source and see what's being output there? I can't quite see what's happening without seeing what the browser sees (which will be the source of that file.) If you can let me know what it's coming up with, we should be able to track down why it's not displaying correctly. :) Donna
Hire me! 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 Priority Consulting.
|
|
|  |
 |

Kimber
User
Jul 31, 2008, 12:11 PM
Post #13 of 16
(3218 views)
Shortcut
|
|
Re: [Donna] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Is this what you need: removed codes
(This post was edited by Kimber on Jul 31, 2008, 12:32 PM)
|
|
|  |
 |

Donna
Staff
/ Moderator

Jul 31, 2008, 12:23 PM
Post #14 of 16
(3216 views)
Shortcut
|
|
Re: [Kimber] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Hi Kimber, Nope, that's the source code of the page -- what we need to look at is what's actually on the server. It should just be an SSI string, but with the placeholders replaced with the actual content. :) Donna
Hire me! 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 Priority Consulting.
|
|
|  |
 |

Kimber
User
Jul 31, 2008, 12:40 PM
Post #15 of 16
(3214 views)
Shortcut
|
|
Re: [Donna] textfield / string searchable
[In reply to]
|
Can't Post
|
|
I am really not for sure what you are looking for. I download the halloween file and opened in a txt pad. In the product section it is <!--#include virtual="/printable/search.cgi?action=search&productSearchFields=product&product=843830&template=searchEngine/relatedProduct.html&perpage=10" --> I can post the whole page if you want or send in a trouble ticket. What ever you think is best.
|
|
|  |
 |

Donna
Staff
/ Moderator

Aug 1, 2008, 12:00 PM
Post #16 of 16
(3181 views)
Shortcut
|
|
Re: [Kimber] textfield / string searchable
[In reply to]
|
Can't Post
|
|
Hi Kimber, Yep, that's exactly what I was looking for -- mostly, I just wanted to be able to test the search myself... and ahah, I see the problem! In the tutorial, where it has the word "keyword" ... most of those are actually required to stay as keyword, but you've changed them to product. So, change your SSI to this: <!--#include virtual="/printable/search.cgi?action=search&keywordSearchFields=product&keyword=$article.product$&template=searchEngine/relatedProduct.html&perpage=10" --> Article Manager doesn't know what "productSearchFields" means, and it wasn't getting a keyword passed through at all... so it just gave back the last ten articles instead. Switch it to the above, and you should be good to go. :) The URL that it'll be bringing in will be this: http://www.printmefree.com/printable/search.cgi?action=search&keywordSearchFields=product&keyword=843830&template=searchEngine/relatedProduct.html&perpage=10 So you can view that page and see that you get the appropriate results. Donna
Hire me! 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 Priority Consulting.
|
|
|  |
 | |  |
|