-
Posts
7,529 -
Joined
-
Last visited
-
Days Won
160
Everything posted by kongondo
-
Making session changed messages less in your face
kongondo replied to SamC's topic in General Support
Install: Modules > Core > System Notifications Adjust settings as you wish. -
@adrian, Yes, the PHP IntelliSense is not the best. What extension are you using? This PHP IntelliSense one? That's the one I use. I have never had any luck with auto-completion for PW. Seems you are doing better than me. I suppose the reason is that I don't have the wire folder included as a source in my projects. Are you including wire? Maybe with the new-ish Multi-root workspace implementation I should be able to add wire in my projects in order to get to at least where you are. I'll have a play with this and post back. Whenever I get the time, I will also post tips and tricks I've gathered so far.
- 246 replies
-
- 1
-
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Pulled in from another topic:
- 246 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
@adrian, @bernhard, sorry, I didn't respond to your posts. I have started a new VSC-only topic here. Let's take the discussion there.
-
Visual Studio Code for PW Devs This thread is a place for ProcessWire developers who use Visual Studio Code (aka VSC or Code) to share their experience, tips, frustrations , solutions, code snippets and generally discuss all things VSC. From Wikipedia:
- 246 replies
-
- 8
-
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
I get you. However, UI in NativeScript is made using just XML and CSS. XML is quite simple, especially if you already know HTML. In return you get the speed that comes with native apps. Onsen looks neat though, so I have one eye on it .
-
Thanks for the purchase @Robin S, I'll have a look at the issues you've raised and respond here later.
-
How do I edit multiple pages at once, based on a WHERE criteria?
kongondo replied to desbest's topic in Getting Started
This: $a = $pages->find("template=yourtemplatename, field=fieldname"); should be matching a value for the field...not the field name itself... $a = $pages->find("template=yourtemplatename, fieldname=search_criteria"); If only saving the one field, it is more efficient to do: $b->save('fieldname'); -
Not, it's not late at all. In fact, I forgot to mention it. I was looking for name suggestions! (one of the reasons I still left it in Alpha, actually). Thanks! I like sites manager. Let's see if there are more suggestions. All, Module Name Name suggestions for this module please? We currently have: Sites Manager Upgrading Please note, version 002 includes some templates not in version 001. A re-installation is required I am afraid.
-
Update: Multi Sites Version 0.0.2. Multi Sites can now install single/stand-alone sites! The Multi Sites in the name now means installing and managing multiple sites ! For single sites use, the module now downloads, strips, compresses and save ProcessWire versions of your choice for reuse (rather than downloading each time you install a single site). These ProcessWire files can be refreshed on demand, e.g. when a new version of ProcessWire comes out. README is now complete. See changelog for more details. Download from GitHub. Changelog Support for installing single/stand-alone sites. Added Type or Paste and Install Configuration methods for creating sites. Create and edit site install configurations. Download, store and restore various versions of ProcessWire (for single-site installations). UI enhancements. I'll update first post later. Screens 1 2 3 4
-
Hmm. I must be doing something wrong then. I tested on 3.0.77
-
Using a selector, how do I find a page created by a specific user?
kongondo replied to desbest's topic in Getting Started
More info from the Docs Get: http://processwire.com/api/ref/pages/get/ Find: http://processwire.com/api/ref/pages/find/ -
Just a little FYI, for those who might try this in PW 2.7, this... ..only 'works' in PW 3.x. @tpr, I tried the code but it's only returning one page, the immediate parent of 'Sub-child 2', i.e. Child 1? Is that how it works? @thetuningspoon I'm not sure I follow your requirement. In the text you say: You want all pages, meaning your want parent, grand-parents, etc, i.e. Child 1 and Page? However, in the illustration, you say: Here it seems you only want Page but not Child 1? If you want Child 1 and Page (and any other parent in between) you can also do: $parents = $pages->get(1028)->parents; I have a feeling you already know this, meaning I misunderstood you .
-
Big Numbers, when integer is not enough. What to do?
kongondo replied to bobbit6k's topic in General Support
Hi @bobbit6k Welcome to the forums . MySQL INT (unsigned) can store up to 4.2 billion. I think ProcessWire uses signed INT for integer fields, so, you get about 2.1 billion. If you need something bigger, there is MySQL BIGINT. If you need to manipulate the data as numbers, one solution is to create your own custom Fieldtype that extends FieldtypeInteger and uses BIGINT in its database schema. We can show you how if you wish...Otherwise, if you just need a "number", you can go with a text field. FYI https://dev.mysql.com/doc/refman/5.7/en/integer-types.html https://planet.mysql.com/entry/?id=13825 -
FYI, sometimes it is simpler to do an in-memory search of the WireArray. E.g. $oneItem = $myWireArray->get("id=20");// id is a property in the WireArray if($oneItem) echo 'we got the item folks!'; $multipleItems = $myWireArray->find("price>500");// price is a property in the WireArray if($multipleItems->count()) echo 'We got several items';
-
3 more lists (there will be duplicates, certainly) - haven't checked them all out, so be careful. http://mentalfloss.com/article/61003/10-funnier-alternatives-lorem-ipsum https://www.buzzfeed.com/saraboboltz/18-lorem-ipsum-alternatives-for-design-nerds-af7c?utm_term=.dtLA3o6mO#.tqQLJyEBK https://www.sitepoint.com/10-lorem-ipsum-alternatives/ I like filerati but their website seems to have been hacked?
-
Yes, please. Some of my modules extend ProcessPageLister, for instance.
-
Thanks for reporting @zkriszti. I'll have a look.
-
Update: Jquery File Upload Version 0.0.6. Changelog Added support for SVGs (to be recognised as images, etc).
-
Hi @Tom H, Sorry for the delay in resolving this. Changes had to be made to Jquery File Upload module and not Media Manager. I have done that. Please upgrade to version 6 of Jquery File Upload.
-
The links pasted by others above should help with this. To be more specific have a look at this post: from the sub-section /site/templates/includes/hooks.php as also discussed here.
-
I recently switched to VSCode from Sublime Text and I haven't looked back since. Was hoping to make a demo of how I'm using it in my development...but haven't got the time...yet. I'm getting intellisense, step-by-step debugging (including CSS debugging!), terminal, grep, diff checker, push to Github, JS/HTML/CSS/PHP documentation, phpDocs, etc...the works!
-
Thanks for reporting @Zeka, This line is the problem. The array index gets overwritten (since duplicate). I'll see what to do.
-
Just to clarify to those that might be confused by this line. This module is not a multi-site solution. It is a multi-site helper. You will still be using the official ProcessWire mulit-site solution. The module only helps you to auto-mate some of the manual tasks. The only notable difference is the how index.config.php is structured. I am not keen on splitting the module like this since it can, with a little tweaking, already achieve a standalone(single) installation. The only differences between a multi-site and single site are: multi-site location of site folder - located in same folder as the main site folder (e.g. /www/main-site/site/ for the main site and /www/main-site/site-something/ for the installed site site folder named site-something uses the existing wire folder (/www/main-site/wire/) needs index.config.php single site location of site folder - located in its own folder (e.g. /www/another-site/site/) site folder named 'site' uses its own wire folder (/www/another-site/wire/) does not need the index.config.php This means that all we have to do is (like you suggested earlier) tell the module in which directory on your server you want to install the single site, do the htaccess.txt renaming and copy over the wire folder as well as its index.php, LICENSE.txt, etc. That's all there is to it. The database stuff routines remain the same. So, I am thinking of a radio button to choose whether you are installing a single versus multi site, blah blah. Edit: In respect of selecting ProcessWire versions, the module could check if you have a zip file in a designated folder to unzip from and if not, download the ProcessWire version of your choice, or something along those lines. What is a standard setup ? I am a bit jittery about the module communicating with any URL. I would prefer all that such setups are loaded locally. Maybe I am just being paranoid here . I was thinking of saving this locally. That's what I was intimating by this: