 |

WebFusion
User
Nov 10, 2006, 1:49 PM
Post #1 of 7
(618 views)
Shortcut
|
|
A few Problems after the Upgrade
|
Can't Post
|
|
OK....first of many posts I'm sure I'll have (I didn't realize how complicated this new version is). First...in AM1 I could designate a custom directory I wanted a category to publish it's articles into...I can't seem to find how to do that now (they're all publishing to the same directory). Second, I use search queries via php includes in AM1 to bring in related articles to my article pages. In AM1, it looks like this: /cgi-bin/artman/search.cgi?template=search/related.html&perpage=25&keyword=KEYWORD&start=1 Obviously, this doesn't work with AM2 - what's the fix?
|
|
|  |
 |

Damon
Staff
/ Moderator

Nov 10, 2006, 3:51 PM
Post #2 of 7
(605 views)
Shortcut
|
|
Re: [WebFusion] A few Problems after the Upgrade
[In reply to]
|
Can't Post
|
|
Hi, First...in AM1 I could designate a custom directory I wanted a category to publish it's articles into...I can't seem to find how to do that now (they're all publishing to the same directory). Go to Admin > Publishing - select modify for "Category Indexes". In the Rule Options section, in the Filename field for Category lists, you can set where categories are published. If you use <catFile>/index then you categories will be published into directories named after the category name. example: www.yoursite.com/news/index.php www.yoursite.com/sports/index.php If you have other categories that you want to publish in another location, let me know and I can go through the steps to set that up too. Second, I use search queries via php includes in AM1 to bring in related articles to my article pages. In AM1, it looks like this: /cgi-bin/artman/search.cgi?template=search/related.html&perpage=25&keyword=KEYWORD&start=1 In Article Manager 2, the search variable "keyword" was replaced with "keywordSearchFields". This should work for you: /cgi-bin/artman/search.cgi?action=search&template=search/related.html&perpage=25&keywordSearchFields=KEYWORD I hope both my answers helped. If you have any other questions or would like more details, please let us know. Cheers Damon Edis interactivetools.com
|
|
|  |
 |

WebFusion
User
Nov 10, 2006, 4:08 PM
Post #3 of 7
(600 views)
Shortcut
|
|
Re: [Damon] A few Problems after the Upgrade
[In reply to]
|
Can't Post
|
|
Hi, First...in AM1 I could designate a custom directory I wanted a category to publish it's articles into...I can't seem to find how to do that now (they're all publishing to the same directory). Go to Admin > Publishing - select modify for "Category Indexes". In the Rule Options section, in the Filename field for Category lists, you can set where categories are published. If you use <catFile>/index then you categories will be published into directories named after the category name. example: www.yoursite.com/news/index.php www.yoursite.com/sports/index.php If you have other categories that you want to publish in another location, let me know and I can go through the steps to set that up too. Second, I use search queries via php includes in AM1 to bring in related articles to my article pages. In AM1, it looks like this: /cgi-bin/artman/search.cgi?template=search/related.html&perpage=25&keyword=KEYWORD&start=1 In Article Manager 2, the search variable "keyword" was replaced with "keywordSearchFields". This should work for you: /cgi-bin/artman/search.cgi?action=search&template=search/related.html&perpage=25&keywordSearchFields=KEYWORD I hope both my answers helped. If you have any other questions or would like more details, please let us know. The search query works somewhat, but displays the advanced searchbox, as opposed to the designated search results template (related.html)
|
|
|  |
 |

Damon
Staff
/ Moderator

Nov 10, 2006, 4:19 PM
Post #4 of 7
(595 views)
Shortcut
|
|
Re: [WebFusion] A few Problems after the Upgrade
[In reply to]
|
Can't Post
|
|
Hi, Missed it the first time around, the template directory names between Article Manager 1 and 2 have changed so this: /cgi-bin/artman/search.cgi?action=search&template=search/related.html&perpage=25&keywordSearchFields=KEYWORD should be this: /cgi-bin/artman/search.cgi?action=search&template=searchEngine/related.html&perpage=25&keywordSearchFields=KEYWORD As long as /artman2/templates/searchEngine/related.html is the location of your customized search results template. Cheers Damon Edis interactivetools.com
|
|
|  |
 |

WebFusion
User
Nov 10, 2006, 4:40 PM
Post #5 of 7
(591 views)
Shortcut
|
|
Re: [Damon] A few Problems after the Upgrade
[In reply to]
|
Can't Post
|
|
Nope. NO luck. Here's What I haveL /cgi-bin/artman2/search.cgi?templates=searchEngine/related.html&perpage=25&keywordSearchFields=beagle&start=1 Those results still display the advanced search box. *sigh* It's going to be a looonnggg weekend.
|
|
|  |
 |

Damon
Staff
/ Moderator

Nov 10, 2006, 9:38 PM
Post #6 of 7
(577 views)
Shortcut
|
|
Re: [WebFusion] A few Problems after the Upgrade
[In reply to]
|
Can't Post
|
|
Hi, Could you could private message me the full URL to both your search engine and the related.html template? I can then test out the search query to make sure it works before posting it. Cheers Damon Edis interactivetools.com
|
|
|  |
 |

Damon
Staff
/ Moderator

Nov 13, 2006, 8:49 AM
Post #7 of 7
(536 views)
Shortcut
|
|
Re: [Damon] A few Problems after the Upgrade
[In reply to]
|
Can't Post
|
|
Hi, For anyone else following this thread, here is the correct search query string: /cgi-bin/artman2/search.cgi?action=search&template=searchEngine/related.html&perpage=25&keywordSearchFields=KEYWORD Cheers Damon Edis interactivetools.com
|
|
|  |
|