Problem with Page viewer with merged data

4 posts by 2 authors in: Forums > CMS Builder
Last Post: October 7, 2010   (RSS)

By gadefgaertgqe - September 30, 2010 - edited: September 30, 2010

Hi there,

I am merging news data using the array_merge command.

The news data lists fine.

However when I click on a news item to display it in detail with the page viewer, it quite often loads the wrong one.

Obviously this is because the data is merged and the order of the data is different and it seems to access the first news articles that are added to the array_merge.

Any advice on how to get round this?

Thanks

Paul

Re: [8bit Gamer] Problem with Page viewer with merged data

By Damon - October 1, 2010

Hi Paul,

Thanks for the update. Glad to see you were able to solve the link issue.

Building links the way you have can be a good way to link to results by category, results by date, printer friendly pages, and so on.

I find the showme function is really useful to list all the available variables from an array that I can use:

<?php showme($newsRecords); ?>
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Damon] Problem with Page viewer with merged data

I was not aware of that and very useful! Thanks Damon!