Leaderboard
Popular Content
Showing content with the highest reputation on 10/03/2015 in all areas
-
Number 15. Above the symfony author. http://www.cloudways.com/blog/php-influencers-to-follow/4 points
-
Does updating to the newest stable version (2.6.1) resolve the issue? If not would it be possible to get the full stack trace as the error is probably rooted far earlier in the stack then what the error message is showing. To get the full trace you'd need to add a line at the bottom of the index.php file. Maybe you also need to comment out the other lines, not sure as I haven't tested it. … } catch(Exception $e) { echo $e->getTraceAsString(); //Add this line /* * Formulate error message and send to the error handler * */ if($process) $process->failed($e); $errorMessage = "Exception: " . $e->getMessage() . " (in " . $e->getFile() . " line " . $e->getLine() . ")"; if($config->debug || ($wire && $wire->user && $wire->user->isSuperuser())) $errorMessage .= "\n\n" . $e->getTraceAsString(); trigger_error($errorMessage, E_USER_ERROR); }3 points
-
I just installed El Capitan and once again when you upgrade Mac OSX the system creates a brand new /etc/apache2/httpd.conf file. You'll want to make some changes. Here are some quick fixes to make this set-up work again: First backup the new httpd.conf in case something goes wrong. Diff the new httpd.conf with your old httpd.conf.pre-update file. Apply the changes in the new httpd.conf file. Restart Apache and you good to go. I had to change: Enable rewrite_module on line 168 Enable php5_module on line 169 Change User and Group to my own to avoid messy permissions stuff on lines 181-182 Enable Virtual hosts on line 499 I used to mess for hours with this stuff. Nowadays it's pretty straight forward and I got it up-and-running in under 5 minutes.2 points
-
You can just put the ID of the page in that field. And to clarify the possible confusion. It may be the case you want to redirect to an url, that isn't a page managed by processwire, therefore it's not a page select field from the beginning.2 points
-
Maybe a bit late but locking this thread down because it has gotten to the stage where it doesn't contribute anything worthwhile and it's just silly and all over the place.2 points
-
@cssabc123, I'm debating the intention of your posts, but they are really starting to strike me as trolling. If you want to talk about all the finer points of Wordpress, there is an excellent place to do that. Many of us take time out from our schedules to participate in these forums, and one the whole the community here tends to provide very thoughtful/courteous replies. This thread has meandered all around, and as your questions are answered, you seem to move on to something else. Again, I don't know your intentions, but it is becoming increasing difficult to take you seriously.2 points
-
2 points
-
Guys, finally the podcast episode where I talk about PW is out. It's spoken in Portuguese, so most of you won't understand a word, but still I wanted to shout it here http://10web.pt/programas/programa-15-diogo-oliveira-trabalho-remoto-e-internacional-processwire-e-webdesign/2 points
-
Represents the instagram feed of a user. Instructions: Register a new instagram Client: at instagram. It's really important to add the current url as redirect url. (For example "http://page.dev/processwire/module/edit?name=InstagramFeed/"). Complete module settings (Client ID and Secret), leaving the access input token field empty. This value will be generated. Click the "get Access Token" link to generate code and access token in module settings. Configure username to output feed from (default setting is "self": to get the most recent media published by the owner of the access token) ... and use it! > detailed instructions at github1 point
-
Visual Page Selector Released 31 March 2016 https://processwireshop.pw/plugins/visual-page-selector/ As of 04 January 2018 ProcessWire versions earlier than 3.x are not supported ******************************************************* ORIGINAL POST ******************************************************* Introducing VPS, a commercial visual page field selector. This is a pre-sale closed-beta version. This post is WIP and will be updated now and then. ############################ Many ProcessWire users use the 'one image per page' principle to manage and reuse images across their sites. This works fine. However, for site editors who mainly work with images, especially for larger sites, it is sometimes difficult to remember the pages where particular images reside. This module helps to solve this challenge. Harnessing the awesomeness that is ProcessWire, VPS provides a rich editing experience, enabling editors to search for, view, select, add, remove and delete page-images easily, in an easy to use and friendly interface. ProcessWire Lister is the workhorse behind the lightning-fast searches. Editors will be able to search for images by their descriptions, names, partial names, page names, templates, etc. Current Features Single-image mode Full search Batch add/Remove/Delete Image/Delete Page in page fields Image Browser Selectable pages as per page field settings + Lister filters Grid and List View Draggable sorting Responsive (almost fully ..iframes!) Planned Features Multi-image mode (there are times you want to group similar images in multi-image field in one page; e.g. the back, front and side of a car photo) Configurable CSS on the fly resizing vs real image resizing (image resizing can quickly hog memory) Other as per feedback from beta testing FAQs When will this be available? Soon. How much will it cost? Reasonably priced. Announcement soon. Where will I be able to buy this from? At all fine stores that stock quality ProcessWire products Do we really need another page field/inputfield select? See links below. What type of licenses will be available? Soon to be announced. Can I beta test this? Thanks for the interest but all available slots have been taken. Video (excuse the video quality please - too many takes....) Screens Previous Discussions https://processwire.com/talk/topic/10927-wishlist-select-pages-by-thumbnail/ https://processwire.com/talk/topic/4330-get-image-from-other-pages-via-images-field/ https://processwire.com/talk/topic/417-extending-image-field/?p=6982 https://processwire.com/talk/topic/7073-profield-table-and-gallery/ https://processwire.com/talk/topic/3200-image-management-concerns-is-processwire-suitable-for-me/ https://processwire.com/talk/topic/425-file-manager/ https://processwire.com/talk/topic/10763-asset-manager-asset-selector/1 point
-
Hi everyone, This is an early (but mostly functional) version of a module that I am experimenting with for automatically populating all empty fields on a page. It is designed for use during site development and should be uninstalled once the site is live. https://github.com/adrianbj/AutoContent (anyone have an idea for a better name?) It currently supports the following field types: Text - outputs "This is an example Field Label", where "Field Label" is the label for the field Textarea (RTE and plain) - configurable content from http://loripsum.net/ and embedded images from http://lorempixel.com Datetime - honors output formatting and returns random date/time with configurable min/max datetime Integer - honors min and max settings Float - honors min, max, precision settings URL - returns a random URL Email - returns a random email address Image - you can specify image category (people, nature, business, etc), and the range for min/max number of images to generate. Page - creates runtime selected child page content for output - not well tested yet. MapMarker - not well tested yet! I will be adding support for Profields and other selected 3rd party fieldtypes shortly. Highly configurable content is provided by: http://loripsum.net/ http://lorempixel.com/ https://github.com/fzaninotto/Faker Generated content can be localized to your region - very handy for addresses, people's names, phone numbers etc: Many fieldtypes are configurable via the Input tab on the field's config settings, eg: Textarea: Text: Images: Datetime: In general I am designing this to work with minimal/no configuration so you can install and have all fields on all pages on your site immediately populated for testing layout and styling without the need for manually adding dummy content. There is also a dummy page batch creator and deletor (automatically tracks and deletes just the dummy pages) available from the module config settings page. Please let me know if you think you will find this useful - trying to get an idea of how much time to put into support for additional field types.1 point
-
Hi, I'm trying to automate the process of updating installed language packs with the help of the API, because I have to update quite a lot of ProcessWire installations and I would like to avoid these tedious tasks. While is easy to select the language page and upload the new language files to the field, I noticed that there is more to be done: Obviously the process of parsing the language files has to be started somehow. I looked around in /wire/modules/LanguageSupport and, well, I have to say that this seems to be above my capabilities. :-/ Has anyone experiences how language files could be fully imported by API? Thank you.1 point
-
I don't think anyone would disagree with that but that's not what cssabc123 expressed in his post, which actually started with "Drupal is better than PW". Of course each is entitled to his/her own opinion, no problem, but when almost all of ones forum activity up until now consists of subtle or less than subtle trolling attempts there will be a time when people are fed up with it. Especially when there are no apparent signs of actually having tried PW, read some docs etc.1 point
-
The ready.php is so nice. No more tons of mini modules just to enhance the admin.1 point
-
@horst That sounds definitely clumpsy. What about some buttons in the page editor? Put this as is in /site/ready.php: $wire->addHookAfter("ProcessPageEdit::buildForm", function(HookEvent $event){ $process = $event->object; $form = $event->return; $page = $process->getPage(); // Update to fit your fieldnames $imageFields = array("images"); $multiple = $page->fields->find("name=" . implode($imageFields))->count() > 1; foreach ($imageFields as $field) { if($page->fields->has($field) && $page->editable($field)){ if(wire('input')->post("hook_sort_$field")){ $page->of(false); $page->set($field, $page->get($field)->sort("basename")); $page->save($field); } $button = wire('modules')->get("InputfieldSubmit"); $button->attr("id+name", "hook_sort_$field"); $button->value = __("Bilder Sortieren"); $button->value .= ($multiple ? " (" . $field->get("label|name") . ")" : ""); $button->icon = "sort-alpha-asc"; $button->addClass("ui-priority-secondary"); $form->insertBefore($button, $form->get("id")); } } });1 point
-
I want to note, that the default PHP on macs is really default. I always feel better when PHP is installed with the installer from: http://php-osx.liip.ch/1 point
-
You said your urlSegment2 was '6bc', but somehow pages2pdf is searching for just 'bc'. But the version change could also be the culpit.1 point
-
Thank you Kongondo & @Valan for this great little helper! For me as a non real dev...it is much more easy to get some special admin magic working with this! This is one of the real big things i like with PW - there are tools that helps and can used by non experienced PHP users without to force them to do risky things within the backend...in other systems the level of complexity always grows and grows...with PW it seems it always get easier I'm on a hard deadline this days so less time to contribute but this little snippet may helps others - easy to use and very helpful. It works as a kind of shortcut navigation to prev next siblings - like Kongondo showed off in his video to the notorious V.P.S. I saw the raw links and thought hey i've a version of this running with UI buttons so here we go: $out =''; $siblings = $page->siblings; //generate next & prev links output if (count($siblings)) { $prev = $siblings->getPrev($page); if ($prev) { $out .= '<a href="'.$prev->editUrl.'">'; $out .= '<button type="button" name="button" class="ui-button ui-widget ui-corner-all ui-state-default">'; $out .= '<span class="ui-button-text"><i class="fa fa-angle-double-left"></i> '.$prev->title.'</span></button>'; $out .= '</a>'; } $next = $siblings->getNext($page); if ($next) { $out .= '<a href="'.$next->editUrl.'">'; $out .= '<button type="button" name="button" class="ui-button ui-widget ui-corner-all ui-state-default">'; $out .= '<span class="ui-button-text">'.$next->title.' <i class="fa fa-angle-double-right"></i></span></button>'; $out .= '</a>'; } if ($out <> "") $out = "<div class='NextPrevLinks'>".$out."</div>"; return "<div class='NextPrevLinks'>".$out."</div>"; } Output of the field is: Have fun and best regards mr-fan1 point
-
It would be nice to update the system notification settings for the order with other descriptions. With the current translation it's really hard to differ what means what. I'd rather use something like "newest first" or "oldest first", which makes clear which notifications will be above others.1 point
-
My best bet is that he is Siri/Cortana or he is collecting info for his dissertation/article/whatever. The only positive outcome of this topic is WillyC's post informing us that google search is also on WP now1 point
-
Not sure which forum category this should go in, but I spent my lunch break today training a few staff members of a pretty large client of mine on how to use a new processwire website I designed for them. They currently have a wordpress website and were dreading the training process. She said she didn't like how the wordpress widget system worked, and it was confusing to use. (Knowing where to go to update what.) After showing her how to use processwire, she said it was much more intuitive and user friendly. She likes how the page tree logically lays out the website, and how I designed their staff to be a page that other pages could read from so they only needed to update one spot. (Instead of typing it in to many different pages and widgets.) They gave it a big thumbs up! Just wanted to let you guys know!1 point
-
I'm several months late to CONGRATULATE you CONGRATULATIONS! lol How are the liking, 3.5 months later?1 point
-
This is going nowhere. Questions, answers... (57 posts in a few days) that are, most of them, already in the Forums. And some of them, wondering why they are even there. Also, there seems to be some trolling style in the air(s). If not, there is this on google: site:processwire.com/talk/ "your search". Try site:processwire.com/talk/ "silverstripe", or with wordpress or whatever. Here is what I was about to write yesterday at some point (with some things I would have perhaps changed and other things I would have perhaps added): "All this is already known/has already been discussed so many times. These questions (and answers) don't go anywhere and don't add anything. I've wondered several times if you weren't a silverstripe or wordpress developer/maintainer, that wanted to spam the forums. And I've rarely had this impression." ... or who wanted to get ProcessWire's success ingredients to... change the potion that works or do whatever with them.1 point
-
Ha! Nice try, but I know that you are trying to trick us into revealing we are all PW fanbois. I will counter the trickery with a reverse double jinx and vote for Wordpress = 11 point
-
All, think we figured it out. There was one iPv6 Setting pointing to the old domain. We deleted this record, now we see the new site all the time. Its good to have an extra set of eyes on something, thanks to all that helped on this.1 point
-
Sorry, I wasn't very detailed. i actually meant you or the hosting provider (ISP) needs to flush the DNS cache from the cPanel (or it's equivalent). On some hosting providers, you can do it yourself (i.e. DreamHost). Normal DNS propagation takes at least 72 hours or longer. It all depends on where the actual server is located, that's why some see the website where it's been moved to and others still see the old DNS information. There are times where due to traffic congestion or other router issues, the updated information doesn't make it everywhere (across the world) in a timely manner. Flushing the DNS cache will restart the process and usually things will start working as required. You are correct that you need to work with the hosting provider (ISP) to clear this up. GoDaddy support should have been on top of this, since they are hosting the website now. Please open a trouble ticket with them and good luck.1 point
-
Dns is strange. I've seen this before. In the end (after a week) it was solved, but I have no clue why it took so long. 1. When did you change the A record for the first time? 2. When did you change it for the second time? 3. I've noticed that both www and non-www are loaded separately. Perhaps the www subdomain was changed later on? You can change the .htaccess so traffic is directed to either www or non-www. I always use http://dns.squish.net/ to determine if the DNS is setup correctly ( medstarlab.com resolves to 192.186.217.98).1 point
-
In my case i only have 1 field and then my code checks for which template it's on, then outputs various buttons and messages; the buttons themselves just link to templates that read the url parameters and run some process. Eventually i'll probably have a generic module to process the buttons.. i think I'm going to be using this a lot!1 point
-
I can confirm this. But it's no problem of language files? Opened a new issue at GitHub. https://github.com/ryancramerdesign/ProcessWire/issues/1415 EDIT: now fixed by Ryan1 point
-
1 point
-
1 point
-
Crosslink to a interesting categorising post for products with extra options for pagefields: https://processwire.com/talk/topic/10306-product-catalog-with-a-twist/#entry97847 (i like to keep such really good examples organized together somehow...) regards mr-fan1 point
-
The absolutely MOST helpful post I have read in a long long long time. Thank you Kongondo!1 point
-
If the parent page is hidden you'd have to include "include=hidden" in the selector when doing a find(), but not if you get() the page explicitly. Also wanted to note that doing $pages->get("title=previous caption winners")->children; isn't a very reliable method to find a page by it's title, since the title isn't unique. In most cases it makes more sense to use id or page name, page path. $pages->get(1005)->children; Or maybe $pages->get("/some/path/")->children; To find if a parent has children there's also a method in PW numChildren(). if($pages->get(1004)->numChildren) { // has children } In PW 2.3 there's a new version of numChildren() to make it access aware if you pass true as the argmument if($pages->get(1004)->numChildren(true)) { // has children that are really visible to the user }1 point
-
The find() method returns an array of pages, and you can on only check for children in a individual page. If your goal with this selector is to get only one page, use get() instead. $info = $pages->get("title=previous caption winners")->children; But, if all you want is to check if there are children, the shortest method would be: if ($pages->get("title=previous caption winners")->child->id) It gets the first child and checks for it's id edit: nik was faster1 point
-
What you've got as a result is a PageArray so you'd need to check the count like this (edit: ..and change find to get as diogo says below): if(count($info) >= 1) { // do stuff } If there are potentially lots of children, it would be better to do it for example like this:$childCount = $pages->count("parent.title=previous caption winners"); if($childCount >= 1) { // do stuff } This way you wont end up fetching all the children just to count them.1 point