3 posts in this topic
Recently Browsing 0 members
No registered users viewing this page.
I would like to be able to fetch the labels for fields in a language different than the current logged in user.
For field values that's easy
// p is page, l is language, and f is field $p->getLanguageValue($l, $f); I'm looking for something like
$fields->getLanguageValue('en', 'length'); The only solution I know of is to save the current user language, iterate through the languages by setting the user language and fetching the value, and then restore the user language.
I have a fieldsettab I want to populate with two collapsable fields that are for display not input. One will display data directly from an extra MySQL table (corresponding with PW pages) and the other will list certain PW pages. How do I go about this? I wanted to lay them out using Dynatable, one per each field. Thanks.
By Brian Scramlin
Should I limit how many find() methods I use on a single page? Is it fairly resource-intensive?
I am getting consistent
2006 MySQL server has gone away errors and have followed all the suggestions I can find, but wonder if I am just "overloading" my server resources with database requests or something like that?
I have a category template and each page can be associated with multiple categories using a page field type.
i have this in php : -
$categories = $pages->find("template=category, limit=6"); I want to sort the results by the amount of pages each category has, is there a way to do this in a selector or is there a better way of doing this?