-
Posts
2,769 -
Joined
-
Last visited
-
Days Won
31
Everything posted by Martijn Geerts
-
page listing with hidden pages not working
Martijn Geerts replied to bbeer's topic in General Support
I've explained your selector below: // Get a page with ID 1035, // Sort that page with ID 1035 (You can't sort 1 page) // include page 1035 even when it is hidden (Get will always get the page, regardless if it is hidden) // Get the children of the page with ID 1035. (Will only get the visible pages) $stellen = $pages->get("1035", "sort=sort", "include=hidden")->children; I do think you want something like this: // Find pages with the 1035 parent // Sort it // Include the hidden children $stellen = $pages->find("parent.id=1035, sort=sort, include=hidden"); -
Allow Page Numbers isn't 404'ing when content doesn't exist...
Martijn Geerts replied to a-ok's topic in General Support
The solution would be Javascript rather then ProcessWire. From the ProcessWire side you have to tell the javascript when to stop. I don't know Isotope, but if I were you I would follow the recommendations of Macrura.- 15 replies
-
- pagination
- page numbers
-
(and 1 more)
Tagged with:
-
I'm not keen to do to much for this module, simply because I do not use it my self anymore. Haven't even been in a situation where I wanted to have an image in a text field. I f someone wants to take the lead on this module don't hesitate to ask to take it over from me. About your question: When you set the max image width for uploaded images in the image settings it'll take this max width.
-
How to update font-awesome icons used by ProcessWire
Martijn Geerts replied to efiguerola's topic in General Support
You could ask Ryan to update Font-awesome (on GitHub).- 3 replies
-
- 1
-
-
- font-awesome
- icons
-
(and 1 more)
Tagged with:
-
How to update font-awesome icons used by ProcessWire
Martijn Geerts replied to efiguerola's topic in General Support
Welcome to ProcessWire efiguerola, Don't update it but use your own copy. This way you do not rely on the core and if PW switches to another icon library your front-end will still work.- 3 replies
-
- font-awesome
- icons
-
(and 1 more)
Tagged with:
-
Call to a member function numChildren() on a non-object
Martijn Geerts replied to Greg Lercher's topic in General Support
Without seeing the code for the homepage we can't pinpoint where you made the mistake of trying to use something as an object. -
Good find pwired !
-
Thanks Wanze will come in handy one day!
-
Editor Usability in the ProcessWire Admin interface
Martijn Geerts replied to SwimToWin's topic in Wishlist & Roadmap
I think most of your issues are gone when you understand a little more about processwire. I would suggest to install a 'play install' where you can mess around and are allowed to break anything without issues. Especially take a look at permissions and roles and all template settings. 1. New pages. solution: Set your family settings right in the admin. 2. Overview. Again family settings & give examples and explanation at field level. 3. Clutter in the tree structure. Put settings in /processwire/settings/ folder (Don't forget te set access for settings folder) 4. User error risks. Setup proper permissions and it's solved. 1. Buttons. Already there (parental relation in template settings) PS: How do I create "apps" nav items a left menu (example)? Create a page under /processwire/- 6 replies
-
- 8
-
-
- usability
- user experience
-
(and 3 more)
Tagged with:
-
ProcessWire Site Header and Footer Used in WordPress Blog
Martijn Geerts replied to quickjeff's topic in API & Templates
Pete has a nice option, here's an other: You could make a dedicated template for the header and the footer and include those. You could template cache or pro cache it! include('http://www.processwire-install.com/header/'); include('http://www.processwire-install.com/footer/');- 25 replies
-
- 1
-
-
- caching
- header include
-
(and 1 more)
Tagged with:
-
Development: FieldtypeFloat - FieldtypeDecimal
Martijn Geerts replied to kixe's topic in Modules/Plugins
Welcome Back ! -
1 suggestion: For every view store a page in a folder page called stats (or whatever). The page to store has a pagefield (single) to store the viewed page based on the ID posted with Javascript. For the date you could used a dedicated field or just use the title/name of the page.
-
Do a post with javascript with the ID of the page to a not cached page. On the not cached page get the incremental number of the visited Page (an integer field) and save that plus 1 back to the Page that is viewed.
-
Would like to mention that fieldtypeJson is build before the awesome profields and all data is in one blob of json. I wouldn't trust the json field for important data because javascript is the middle man here and potential data los can happen.
- 12 replies
-
- 1
-
-
- Processwire
- handsontable
-
(and 2 more)
Tagged with:
-
Haven't used Hanna code for a long time but I think the cache is only used as cache. Actual code is stored in database I think.
-
Or download and install fieldtypeSelectFile. You can asign an other template file for that page to render. http://modules.processwire.com/modules/fieldtype-select-file/
-
Concept problem - reduce number of templates
Martijn Geerts replied to OLSA's topic in General Support
(Spam Alert) I use http://modules.processwire.com/modules/fieldtype-select-file/ alot. There is a setting Change Page Template, just before the Page::loaded event the selected file is set as template file for the page. Combine that with a custom selector and you have a very versatile setup. -
Hi Ralph // remove these lines: $view = $form->find("id=ProcessPageEditView")->first(); $form->remove($view); $form->append($wrapper)->append($view); // Replace it with: $form->prepend($wrapper); Then the it should work again. (Note that the family Tab is now the last tab, after view, sorry about that)
-
There are changes made in the PW core regarding Tabs & Fieldset. I've no time now, but I gonna see what I can do for you this week after work.
-
Welcome franciccio, Quick and dirty: A template is a wrapper for fields. When you create a Page you must assign a template to it. So a template is a page 'factory' that makes all fields available to the page. When you want to show the page in the browser the template needs a template file. So the template file is optional but needed when you want to produce output. And yes you're right, when you need the page to be visible you need to create a template file in the /site/templates/ folder and name it the same as the template plus the php extension.
-
Thanks Tom for all the work... Reno theme looks great!
-
Setup a ProcessWire environment on a fresh MacOS X install
Martijn Geerts replied to Martijn Geerts's topic in Tutorials
Type the domain name in the url bar of your browser. -
Could be a malformed template file. Try to delete the templates and create new valid ones. (Copy code from old to new)