Search the Community
Showing results for tags 'limit'.
-
Hi, have a site where I set up a news category, then under that I have different regions where editors in those regions can add news stories. I'm trying to figure out how to allow each editor to only add/edit stories in their region, and not allow editors from other regions to edit them. examp...
-
Hello guys. I am super happy to be passing to the final cleanup of my first custom build theme and to start applying the SEO optimization modules/code. I noticed something strange this morning and can't find out where exactly is my issue. Hopefully it is a quick fix or silly miss on my side. So...
-
Is it somehow possible to limit the number of pages one can select with the page reference field? I have a case where I need to have exactly three, not more, not less. Is this doable with a hook? Or would you suggest another approach? (three single pageref fields and make each mandatory)
-
Hello together, I have a problem with the image field and in my case it seems that there is a limit of how much images can be in such field. The following case: I have around 20 pages. Each has a usual image field, where I can upload an unlimited number of images (array). Most of the p...
-
I'm sure the answer is fairly simple but I was wondering if there's an easy way to define the number of lines for a textfield in a template. I know you can set size limits for images fairly easily using $image->size(100, 100); but wondered if there was the equivalent for text?
-
I have about 50 pages which are just containers for their child pages. What's the most efficient way to exclude these parent pages from Searches? I'm using Ryan's code here I guess I have a few options but is number 2 here the best way or is there anything I haven't consider...
-
Hi folks, My maximum file size upload tops at 50Kb, no matter what the browser or OS. My PHP settings are: enabled extensions: imagick, imap , json, mailparse, mbstring , pdo , pdo_mysql and pdo_sqlite options: allow_url_fopen On display_error...
-
I am using the below to go several levels deep, but when using a select of "limit" or "sort" I am getting strange results. For example, if limit=2 I get five results. If limit=3 I get six results. I am sure I have messed up something. Maybe there is a better way? $cats = $pages->get("/mypage/")-...
-
Hi, I have a PageTable field where one template type should only be used once per PageTable as otherwise it will break the lazy-loading pagination on the front-end. Is there a way to limit the number of times a template is used? I think I basically need to create a module that......
-
Hi, I have some pagination on my page, which is pretty bog standard. $allChildren = $page->find('template=blog-article, limit=10, sort=-article_date'); The limit is set to 10 as I want to show them 10 articles at a time. The articles are displayed side by side, so there is 5 rows of 2 article....
-
Hi. I wonder if is there possibility to limit page children to specific template. I know that it can be done in template settings. But I think it could be good option to do it in page settings. Lets say we have templates like news, gallery, author, tag, movie, song itc. We have also pages with the...
-
Hi, Run into a bit of an issue with pagination on a site I am working on. I am sure the answer is really simple, but struggling to figure out what's going wrong. I have a bunch of articles, but I only want the ones where the date is less than the current date. I then want to limit the array so...
- 6 replies
-
- pagination
- pageArray
-
(and 1 more)
Tagged with:
-
I used a repeater field on my site to handle arrest reports. (It's much easier for the user than say adding a new entry for each person arrested as you would a new page). Basically, my client creates a new entry with the arrest report section then starts adding repeater "records" and data which incl...
-
Hi, I'm working on implementing a poll system with a variable number of choices that a user can vote form (via a submission form). Currently, each poll question is stored as a page with each choice being a child of the Poll page (as seen below). Additionally, each choice has a "votes" field which tr...
- 2 replies
-
- poll
- ip address
-
(and 2 more)
Tagged with:
-
Hello. I'm developing website for restaurant network, and I use repeater field for menu (meals). Page has repeater field, named "menu". It has 2 fields - title (multilingual - 3 languages) and price. 150 repeater entries are created and save normally. Starting from 151 when I fill new repeater...
-
Is there a way to limit the repeater entry on the admin? for example, user can only enter a max of 10 entries
-
Hi everybody, I have got a (hopefully) pretty simple question but I can't find a "clean" solution for it and hope you can help me. I'm using a form to let the user specify different variables (Get Request) and show them the according pages. It's more or less similar to the Skyscraper Demo page....
-
Am trying to list 3 other events (siblings) at the bottom of an event page. My problem is I can only seem to limit before I remove the $page part meaning I end up with only 2 other events at the bottom of the page. Have tried the following but doesn't seem to work: $page->siblings->remove($page...