In Plone the default folder_contents etc. views display 20 items per page. This is too small number for most of our use cases. How to increase this number to 100?
See https://dev.plone.org/ticket/8115:
The number of items shown by default in the foldercontents is hardcoded in a BrowserView: tableview.py. Although I think it's a good default, I find it frustratingly small for some of my websites. I would suggest to move this value to a new property in site_properties.
You'll have to edit tableview.py, I think.
Related
I've made a custom vendor with all class glyphs included (~350 items), but when I interact with it in-game it shows only 10 pages or 101 items. Is this how it's supposed to work, or I'm doing something wrong?
I know that I could split the items into a few vendors, but still want to know the limit, if there is one.
I am using Display Suite to add a php button/link to the page for a single content-type. It works great. The title and the custom field (the button) appear as expected.
After some time, less than a day I believe, the title and button are no longer visible.
Checking the content type, the setup for the display has not changed.
Clear Cache All fixes the problem...for a day or so.
I would like the Display Suite custom field and the Title to stay in place on the page.
Your case resembles the problem described in this drupal.org issue. One of the module developers thinks it is mostly related to out of memory exceptions.
A possible solution, described here, is to increase the following PHP settings:
memory_limit to 192MB
max_input_vars to 2000
I'm using a website that runs on Plone. On the homepage, the carousel has several images that you have to click the next number to see the next image. What I want though, is to get these images to rotate automatically after a certain number of seconds. How do I do this? Thanks.
It would be very helpful if you could mention current setting for the portlet you're using.
However most probably it is because you forgot to set a reasonable value for Timer field. Check the settings for the carousel portlet and set the Timer to for example 5 and see what happens.
i'm currently having a nightmarish moment with Sitecore. Basically my issues are two-fold:
1) the first time i added a standard value item to a template, and added a layout setup to it, i was thrilled, since all my items from that template were showing the layout, however now, certain items are now showing no layout at all. I tried doing presentation->layout, reset several times, but to no avail.
2) i added a new sublayout to the standard value layout to another placeholder, did publish on the template (republish everything, publish subitems), then publish on the standard values item again, just in case (should not be needed), i click on all items from the template, and they show the updated layout with the new sublayout (should be good, right?) however, i browse, both live and with preview to the pages and i am still seeing the old layout without my new sublayout.
- I added a breakpoint in the page_load of the new sublayout but it never hits, the others do
- I tried cleaning the cache on sitecore/admin/cache.aspx, but did not help
- tried recycling the app pool, restarting the web site, spreading black rooster' blood over the machine, nothing seems to helps
i am using sitecore 6.2.0 (rev. 100701), visual studio 2008 SP1, IIS7 in integrated mode
Basically the way to do it is set layout on the Standard Values, which should update all items, that haven't had their layout overwritten on the item or by a branch.
This is the key to the issue. If your items that aren't getting updated with the template standard value layout were created using a branch, check to make sure that branch does not also have layout details associated with it. If the branch has layout details in addition to the template, the two will conflict and cause really odd, frustrating behavior.
I encountered the exact same scenario, but after removing the layout details from my branch the issue went away.
Sounds strange... usually this only happens, when you have a "conflict" between layout set on Standard Values, template/branch.
Basically the way to do it is set layout on the Standard Values, which should update all items, that haven't had their layout overwritten on the item or by a branch.
I really dislike branches, so always try to avoid them (the only real use when they were Masters were for building hierarchies of items).
Could you try to look in the __layouts field (View > Raw values) of the items and see if anything is entered there?
And is it only some items or all items based on that template?
I am going to write an application that uses QT4 (with C++ or python it isnt important in that moment).
One of functionality is "Showing all items in database".
One item has a Title, author, description and photo (constant size)
And there could be very many items. Let's say 400. There won't be enough space to show'em all at once time.
One row will have 200px, so i need at most 4 for once time.
How to paginate them? I have no idea.
I can use limit and offset in SQL queries, but how to tell window: "that's 5th page"?
Any solutions?
First off, you normally do not want to use any manually set pixel widths in any GUI application, if you do, your toolkit sucks (or you must work in game development).
Second off: be more specific.
You'll need to define "page" for your application, namely what a page should be in its context. I assume it is breaking a list of items into separate pages. Normally this is done by using one of the view classes (e.g. QListView or QTableView) to take care of much of the legwork: it's called a scrollbar (not to mention the collapsing folders concept from file managers). Another method is splitting the information across several tab pages (QTabWidget), where each page displays a view of some sort (Perhaps QTextView or one of the M/V or Item view classes).
Same thing can also be done using your own widget stack and some other widget to manipulate the currently displayed page. This is basically how the option dialogs in the TeamSpeak 3 client and most KDE apps work; it's also how wizards with back/next buttons work in concept. I suggest you take a look at this config dialog example
Normally what you want is a view with a scrollbar and or some form of collapsing related entries into categorised information. If you just want to display a list of pages where each page is X entries: use a tab widget or stacked widget.