How to call a certain section in a array_merge?

4 posts by 2 authors in: Forums > CMS Builder
Last Post: February 28, 2011   (RSS)

Re: [videopixel] How to call a certain section in a array_merge?

By Jason - February 25, 2011

Hi,

You can have a field in each section that would be used to identify it as coming from a certain section. If you have a large number of records though, it could be time consuming to set a value in each one.

You may want to rethink using array_merge. Since you need to treat each of these sections separately, why do you want to combine them into one array?

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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

Re: [Jason] How to call a certain section in a array_merge?

I'm using the http://desandro.com/resources/jquery-masonry/ Jquery plugin to arrange my div's that are filled in from different sections, every section needs a certain style (size and colors) that's why...

Re: [videopixel] How to call a certain section in a array_merge?

By Jason - February 28, 2011

Hi,

I can see why you would need to style each section differently. However, combining all your records with array_merge may not be the best approach since you wouldn't have a good way to tell where one set of records end and another begins.

I think the best approach would be to output the records from each section individually, that way you can control the style for that given section.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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