2012-02-04, 04:47:43
Dominic Wrote:I've been searching for something like this, and it sounds like the simplest solution to what I want to do which is similar to what otoom wanted. I do have a question. How would I get this to work with multiple portfolios other than make a different function for each portfolio? "getPortfolio1();", "getPortfolio2(), "getPortfolo3();" etc etc.
Just add a parameter to the function and call it with getPortfolio('portfolio1') (portfolio1 being the parent page):
Code:
function getPortfolio($parentpage){
$subpages=getChildren($parentpage);
...
Dominic Wrote:Also, will this work if i already have the i18N custom fields plugin installed?
I18N Custom Fields is an extension of Mike's Custom Fields, so it should work.