Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Problems with 'next' and 'prev' on the main index page

 

 


kano
User

Oct 5, 2007, 11:36 PM

Post #1 of 9 (4583 views)
Shortcut
Problems with 'next' and 'prev' on the main index page Can't Post

I have set up a small AM2. Everything is 'out of the box' except that the main index page is set up to publish articles from just two categories. This works fine until I use the 'next articles' and 'prev articles' links. The 'next' and 'prev' search suddenly includes articles from all categories, and shows articles that really don't belong on the main index page. Anything I can do to avoid this?

Regards
Kjell


Jake
Staff


Oct 7, 2007, 10:02 AM

Post #2 of 9 (4562 views)
Shortcut
Re: [kano] Problems with 'next' and 'prev' on the main index page [In reply to] Can't Post

Hi Kjell,

Thanks for your post. Smile

Setting this up can be tricky, but there are a couple ways to get around the problem you described. A lot of it is going to depend on how your site is set up, specifically your category structure. Would you mind submitting a support request so that we can go over your site and offer you some suggestions? You can do so here:

https://www.interactivetools.com/support/email_support.cgi

I look forward to hearing from you!
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


kano
User

Oct 7, 2007, 10:37 AM

Post #3 of 9 (4557 views)
Shortcut
Re: [Jake] Problems with 'next' and 'prev' on the main index page [In reply to] Can't Post

Thanks, a support request has been submitted!

Kjell

Regards
Kjell


ennisoft
User

Aug 24, 2009, 2:22 AM

Post #4 of 9 (4048 views)
Shortcut
Re: [kano] Problems with 'next' and 'prev' on the main index page [In reply to] Can't Post

Any chance of you guys expanding on this solution within the forum?

I've just come across this issue, and I'd consider it to be a serious bug in the functioning of an otherwise solid product.

The categories selected for the homepage can't change just because you click Next. And then clicking back gives you an altogether different first page! It's nonsense!

Please publish a walkthrough or something that allows us to put this right.

Ross


ross
Staff / Moderator


Aug 24, 2009, 4:39 PM

Post #5 of 9 (3999 views)
Shortcut
Re: [ennisoft] Problems with 'next' and 'prev' on the main index page [In reply to] Can't Post

Hi Ross

Thanks for posting!

What I'll get you to do is check that the URL's you have for your next and previous links have this at the end of them:

&categoryNum=$category.num$

It's the same for both. That will tell them what category you want to be using on the next and previous page. Make sure that isn't on your global index though. It won't work there. Just the category index template.

Give it a shot and let me know how you make out :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - 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: http://www.interactivetools.com/consulting/



ennisoft
User

Aug 25, 2009, 1:59 AM

Post #6 of 9 (3996 views)
Shortcut
Re: [ross] Problems with 'next' and 'prev' on the main index page [In reply to] Can't Post

Hi Ross, thanks for the response. I have tried this, but the code doesn't resolve the $category.num$ (this is the GlobalIndex template we're talking about). The URL for the Next Page is:

http://www.clareed.ie/cgi-bin/content/search.cgi?action=search&page=2&perpage=5&template=articleLists/globalIndex.html&includeSubcats=0;&categoryNum=[unknown%20placeholder%20$category.num$]

and the generated page is a line of text:

Error: expecting a value (quoted string, bareword, or function) in where condition: "...cle.categoryNum IN ( ***ERROR*** [unknown placeholder..." at /usr/local/pem/vhosts/115566/webspace/cgi-bin/content/modules//IT/DB/WhereParser.pm line 486.

Think I'll change it back the way it was...

Ross


Donna
Staff / Moderator


Aug 25, 2009, 3:22 PM

Post #7 of 9 (3974 views)
Shortcut
Re: [ennisoft] Problems with 'next' and 'prev' on the main index page [In reply to] Can't Post

Hi there,

As Ross mentioned, that will only work on category index pages, not on the global index. You'll need to remove that bit of code from the global index template. Since there's no specific category number, it can't resolve. That code will only work on the category index template. :)

Donna

--
support@interactivetools.com


ennisoft
User

Aug 26, 2009, 5:02 AM

Post #8 of 9 (3966 views)
Shortcut
Re: [Donna] Problems with 'next' and 'prev' on the main index page [In reply to] Can't Post

Ok Donna, so what's the solution?

There really has to be a way to navigate through the homepage articles without the selected categories changing from under you, otherwise I effectively have no control over homepage articles at all.

I've installed AM2 on several websites - I can't believe I haven't come across this before. Am I missing something obvious here?

Ross


Donna
Staff / Moderator


Aug 28, 2009, 11:05 AM

Post #9 of 9 (3918 views)
Shortcut
Re: [ennisoft] Problems with 'next' and 'prev' on the main index page [In reply to] Can't Post

Hi Ross,

You could hardcode the categories into your global index "Next" buttons. So, instead of using:

&categoryNum=$category.num$

...you'd have something like this:

&categoryNum=4,2,15

...with your actual category numbers replacing the example I've added in there.

Let me know if that works for you.

Donna

--
support@interactivetools.com