-
Posts
2,008 -
Joined
-
Last visited
-
Days Won
21
Everything posted by dragan
-
According to rates @ https://www.google.com/finance?q=USDGBP the difference between pre- and post-Brexit is only about GBP 10, not $40. (assuming you mean the ProCache Dev License for $169)
-
Am I missing something? Where is that module? Do you have a link? Maybe I'm confused by the new forum changes, but I don't see an attachment either...
-
There are lots of frontend plugins / libraries that will do the job, e.g. http://www.dropzonejs.com/ https://blueimp.github.io/jQuery-File-Upload/ For sorting, there's stuff out there like https://rubaxa.github.io/Sortable/
-
When I check the front- and backend, there are no error messages showing up, and everything works just fine. These warnings come via email with a subject line "ProcessWire Error Notification" and the message I posted above. I received 5 of these eight hours ago, within a time-frame of 2-3 minutes. I'm just slightly worried if anyone tries to hack the site. Or perhaps it's a bug somewhere that needs fixing. But after googling around, I didn't find any related topics / infos. The only thing I found out so far, is that a LazyCron file in site/assets/cache has been modified at the same time these error messages popped up. I guess that's the culprit. Apart from the site/assets/cache/LazyCron.cache and the error log file, the rest on the filesystem is unchanged.
-
From time to time, I get error messages from the server like these: Page: http://domain.com/?/ User: ? Error: Call to a member function prepare() on a non-object (line 227 of /home/foo/public_html/wire/core/Modules.php) Does anybody know what could cause this? And how to fix it? The frontend and backend works just fine. What's that strange URL-segment all about: /?/ PW 2.3.8
-
I guess that should be doable with inputfield dependencies: https://processwire.com/api/selectors/inputfield-dependencies/
-
Any tips on expoting/importing site content translations?
dragan replied to cream's topic in Multi-Language Support
Just curious: Why can't these translators simply do their work directly in PW? What "spezialized programs"? imho, a professional translator should be capable to deal with various standard industry solutions such as Microsoft / OpenOffice products, or Adobe / CMS backend / WYSIWYG interfaces. -
In a nutshell, you have to know these (very) basic concepts: Define a variable Output a variable Loop through an array Perhaps use switch/case instead of if/else Concatenate strings for HTML-output Use include() or require() Have the API cheatsheet ready to build your selectors There are tons of examples around here, and also when you download and install PW, everything in the /site folder is very well commented to get you going.
-
I'd like to have $languages included into the cheatsheet
dragan replied to dlen's topic in Wishlist & Roadmap
Meanwhile, there's always the API reference https://processwire.com/api/ref/page/#pw-methods-languages and these dedicated multilanguage chapters / articles: https://processwire.com/api/multi-language-support/ -
Lister Pro is purchased!
-
Thanks for your infos. re: actions According to this user-comment, the actions tab is only included in the pro version https://processwire.com/videos/lister/ In my installed version 3.0.15 (lister version 0.2.4) I don't see any actions menu/tab. Do I have to activate another module somewhere or change settings? Or do you mean something like this? https://processwire.com/talk/topic/10254-custom-page-actions/#entry97554 though that is an example for Page List, not Lister o_O
-
For an internal project, I need to build some kind of Lister Pro functionality. Search filters, custom sort options etc. PW will store all our client projects / portfolio references (currently about 1200). Until now, these infos were collected in an Excel spreadsheet. And we still write our offers in Word. It's all a mess, because project screenshots are scattered all over the place. Now my questions: - How easy would it be to have admins create a collection of pages, and export a Word- or PDF file with a Lister Pro action? - Same as 1st question, but output would be regular HTML. Can I just build my own custom output template for my Lister Pro action? i.e. is it the same as building a "regular" PW frontend template? - Are there plans to offer the Lister Pro functionality for the frontend too? (not sure this is even a use-case, since this is only meant for internal use) - How compatible is Lister Pro with the latest 3.x dev version? - How compatible is Lister Pro with Pro Fields? - Any other gotchas or limitations (e.g. multilanguage)? Thanks for infos, tips and hints.
-
I just learned today that the website for "Zurich IT Days 2016" is made with PW. Sadly, it's not mentioned anywhere (except in a meta tag), but might as well be later on. This is just a preview: informatiktage.ch/ Still has a few bugs... unpublished events are linked, and some CSS bugs, but it's getting there. Each company that does workshops has a login to create and edit blog posts, event infos etc. I just have an editor admin login, can't see what modules have been used, but it looks promising. Wonder who built it... Edit: it has gone live now (changed dev to live URL above)
-
fwiw, I often use Google search like this: $field->attr site:.processwire.com i.e. https://www.google.ch/search?q=%24field-%3Eattr+site%3A.processwire.com&oq=%24field-%3Eattr+site%3A.processwire.com
-
Multiple groups = separate PW pages? How about something like this, using mainly data-attributes? http://www.redotheweb.com/2013/05/15/client-side-full-text-search-in-css.html
-
Do you have the basic hosting account for just €2 ? Sorry, but I really don't know how these companies even make money anymore with such prices... Only allowing 30 max_user_connections and 1M max_allowed_packet is really low. But you certainly don't need dedicated hosting to run PW smoothly.
-
This is a big oversimplification too: PW = Craft minus Twig. With PW's commercial modules ProDrafts and ProFields (Repeater Matrix) PW now covers two of the main advertised features of Craft too. (live preview / split view and matrix fieldtype). The multilanguage handling of Craft is inferior, imho. You have to create a folder full of template files for each addtl. language. And not being able to use plain PHP however I see fit, is a drawback for me. I just don't agree that PHP is "too verbose for templating", but that's maybe just personal taste.
-
How to allow html element for specify classes in ckeditor ?
dragan replied to adrianmak's topic in Getting Started
did you google? https://processwire.com/talk/topic/11055-ckeditor-wont-allow-classes-left-right/ https://processwire.com/talk/topic/10123-how-to-allow-an-id-in-ckeditor/#entry96526- 1 reply
-
- 1
-
-
Depends a bit on the actual use-case / scenario. If it's a typical article comments feature, I'd say have an admin review the comments before publishing. A JS or PHP solution is probably not going to work in 100% of all cases - if someone lists capitalized terms / company names like IBM, HTML, BMW or some such - that's not necessarily shouting or spam, but valid input. ucwords() would certainly not be the perfect cure; I only ever use it for (english language) titles. For german or french, that would be useless even for titles / headings, because it's not formatted like in english... If that's a real problem, I'd probably look into some regex magic and block form submission, if >x% of the entire text is uppercase, but I'm by no means a regex guru Perhaps something simple as that might help: var str = "OH HAI. HOW ARE YOU TODAY? WOULD YOU LIKE SOME cheese with THAT?", uc = str.replace(/[^A-Z]/g, "").length, total = str.length; if(uc > (total/20)) { console.log("HEY COWBOY! WE'RE NOT IN KANSAS ANYMORE!"); // form submit false etc. }
-
hmm, can you give us a real problematic image URL? both https://scontent-fra3-1.xx.fbcdn.net/hads-xfa1/t45.1600-4/12480837_6037580358670_471536793_n.png + https://scontent.xx.fbcdn.net/hads-xfa1/t45.1600-4/12480837_6037580358670_471536793_n.png seem OK here - status 200, not 302. maybe experiment with different CURL options...
- 10 replies
-
- api
- page creation
-
(and 2 more)
Tagged with:
-
Maybe the filename is simply too long for Windows. It used to be 256 characters (probably still is). Your image filename is 296 chars long... Another issue could be http://stackoverflow.com/questions/8084172/facebook-thumbnails-issue-traced-to-safe-image-php Also, d_aqksuwuaixz-djme44retrvs0th_wzpccib0ojqqb9lknelwusfkjvchyncx0pywb4q8k6iac9rf25kolvgy7nczw96myatyf8u6ap4gi2_cvdj-escwqhmb8dgb.com_ads_image__d_aqksuwuaixz_djme44retrvs0th_wzpccib0ojqqb9lknelwusfkjvchyncx0pywb4q8k6iac9rf25kolvgy7nczw96myatyf8u6ap4gi2_cvdj_escwqhmb8dgbafl1ikir_cs1gmmxhwwwfo_nlxez doesn't really have a file extension o_O If the images are all of the same filetype, maybe add it manually? Or do a CURL header check (2nd block of code here http://stackoverflow.com/a/31046363)
- 10 replies
-
- 1
-
-
- api
- page creation
-
(and 2 more)
Tagged with:
-
Add a dynamic Language Switcher to Markup Simple Navigation Menu
dragan replied to Neo's topic in Multi-Language Support
I would try to save your language switcher markup as a variable, and inject it via the outer_tpl option: -> http://modules.processwire.com/modules/markup-simple-navigation/ Not sure if that's possible. Of course you'd have to change your code above from echo() to $langSwitch .= "..." instead (delayed output) -
OMG, someone asked "How would this compare with Joomla?" Where do I even start?
-
Another vote for Susy here. It took me a little while before it clicked, but once you understand it, you'll never want to get back. Good intro tutorial: https://www.smashingmagazine.com/2015/07/smarter-grids-with-sass-and-susy/ One thing I like about it: The markup is kept lean. You define the grid behavior on the element without giving the element 3-4 classes (for each breakpoint). article { @include span(8); } aside { @include span(4 last); } i.e. you don't need any grid classes on the HTML elements anymore, like Bootstraps: .col-xs-12 .col-sm-6 .col-md-8 etc. You can define your entire grid-system with something like this: $susy: ( columns: 12, container: 1200px, gutters: 1/4, global-box-sizing: border-box, debug: (image: show) );
-
$text = $doc->createTextNode($form_fields); $form_fields is an array: https://gist.github.com/somatonic/5233338#file-form-upload-php-L25 Depending on whether you limit your upload to just one file, or multiple files, you have to add some $form_fields foreach stuff to create one XML for each file...