-
Posts
4,314 -
Joined
-
Last visited
-
Days Won
80
Everything posted by diogo
-
Welcome to the forum! You could of course add an exception to that file only on the href, but IMO the best way to do this is to have that file as a normal PW template and create a page with it, then, just call the page instead of the file: example.com/utilities/xcrud (or whatever you want)
-
Another guy in trouble with search pagination
diogo replied to heldercervantes's topic in General Support
Did you turn on pagination on this template? -
Alternative to creating pages for temporary data storage
diogo replied to Vineet Sawant's topic in Getting Started
Sorry, ya, that's more a frontend thing, but you could interact with the notifications system using the same method, of course. -
Alternative to creating pages for temporary data storage
diogo replied to Vineet Sawant's topic in Getting Started
You could have a pagefield "notifications" in the users template, and create the notifications as pages connected to the topic (not one per user, just one per notification, that could be used for many users), than you would link the user to the notification, and delete it from the pagefield as soon as it is presented to him. Does this make sense? PS: I know you asked how to not create pages, but I think this way would at least make them much less, and easier to delete when not needed. -- A little pseudo-code for the above: foreach ($user->notifications as $not) { echo $not->body; // show the notification $page->of(false); $user->notifications->remove($not); // remove it from the list if ( !$pages->get("template=user,notifications={$not}") ) $not->delete(); // if there are no more users to be notified, delete the page } $page->save("notifications"); //save the field with the notifications removed -
Hélder, before you choose FieldtypeOptions over pages (and may be the best option, depending on how simple is your task), make sure you understand the full potencial and flexibility that pages provide even when used for a simple dropdown select. You'll get it as soon as the weird factor goes away
-
Had to happen one day... Grooveshark closed! I started a 30 days trial at rdio and so far so good. Listening to some Portuguese bands
-
New kid on the block https://code.visualstudio.com ! Is this the same Microsoft that kept IE6 alive for so long??
-
wireshell - an extendable ProcessWire command line interface
diogo replied to marcus's topic in API & Templates
Two suggestions. If I make a mistake, writing the db password for instance, I have to start all over from the download. Even if I noticed that I typed the wrong info, there's nothing I can do to correct it. 1. allow to correct wrong input before submitting 2. create a command to install from the last download -
Great site Nico! Feels ok to me. And I think this is css animations on hover, there's no Nico can do to change it without switching to js. There's this problem though Maybe it would be worth to use js to reduce the size of the font on large words. If you Germans wouldntwritelikethis this wouldn't be such a problem
-
Not an easy task. The bigger they are the dumber they get... Because it's late and I'm sleepy, I will answer directly to those points: This won't be an easy one. If I look at the developers directory there are only two PW Devs in Porto <- On the left it's me, and on the right it's you. You can state that PW is growing fast, supported in factual statistics preferably (you would need them, of course). You can also argue that ProcessWire has a lower learning curve than other CMSs for an experimented developer. And, of course, they're not forced to hire someone in Portugal in case something happens to your company (make sure you keep the comments on your code and all namings in English, which is good practice anyway). If you think it can help, point them here http://www.cmscritic.com/dir/products/processwire/ and tell that even their website is built with PW. That's an easy one! You don't have to look for a long time to find recent examples of security holes in WP. As for Drupal, a quick googling brought this up http://brightlemon.com/blog/community-pulls-together-drupal-highly-critical-security-announcement. As for PW, you have tis http://www.reddit.com/r/webdev/comments/2zzo0t/any_reason_i_cant_find_anything_about_processwire/ Can't look for it now, But there are one or two posts where Ryan talk about this subject. Anyway. Processwire is Open Source and was forked hundreds of times. There are already a lots of great devs depending on it to earn their living to be sure that, whatever happens, PW won't go anywhere. Show them how active PW's development on github is.
-
Actually, it's pretty simple, this is how I have my server set up and it allows me to upgrade all sites in one go. Just point all your domains to the same ip and directory and place the index.config.php in the root (it's originally inside wire) and place a line like this 'mydomain.com' => 'site-mydomain' for each site. See the complete instructions in the file https://github.com/ryancramerdesign/ProcessWire/blob/dev/wire/index.config.php#L39
- 6 replies
-
- 1
-
-
- site folder
- site
-
(and 2 more)
Tagged with:
-
If you are really afraid that this might happen, rename it to something like "forthesakeofgoddontdeletethis" and create a symlink to it, named "site".
- 6 replies
-
- 4
-
-
- site folder
- site
-
(and 2 more)
Tagged with:
-
https://cloud.google.com/launcher/details/bitnami-launchpad:processwire?gclid=CjwKEAjw9uypBRD5pMDYtsKxvXcSJACcb9AYQYmo3gq6uBZnB--Gx_25FwkcigJ4YaYbR7TNh-OF_hoCMwnw_wcB
-
Is PW a "better" fit for my needs in regard to sort query results?
diogo replied to ZionBludd's topic in Getting Started
Yes, but in pw all fields are custom. -
I still don't get it howcome google doesn't filter them. Would be so easy to put a report spam button and do exactly the same as they do with email. Isn't filtering emails more risky than filtering visits for analytics purposes?
-
Is PW a "better" fit for my needs in regard to sort query results?
diogo replied to ZionBludd's topic in Getting Started
You can actually get away without using foreach now. Have a look at the last updates http://processwire.com/blog/posts/processwire-core-updates-2.5.27/ -
Is PW a "better" fit for my needs in regard to sort query results?
diogo replied to ZionBludd's topic in Getting Started
Hi mattcohen, welcome to the forum! Quick answer here, sorry for that. Hope someone will step in with a more complete answer, but for getting you started: $gyms = $pages->find("parent=/gyms/, sort=location"); -
How did we miss this (or it was only me)? Tidy CMS did a nice comparison of their CMS to some others that included PW. All in all, I think the review was as honest as it can be in a chalenge made by their measure although their CMS had unsurrisingly the best result of all by far Tidy Vs all the CMSs: http://tidycms.com/blog/2014/one-page-website-speed-test-summary.php Tidy vs PW: http://tidycms.com/blog/2014/one-page-website-processwire.php
-
Oops, there's something funky happening with the third image in this page http://www.pipistrello.ch/mitspielzirkus/
-
Great site Soma. Absolutely love the tinted images on the slider
-
Complicated Page Query (page references, etc.)
diogo replied to Jonathan Lahijani's topic in General Support
I actually think the reverse way would make more sense. Because you are likely to add more people than companies, and like this you have to edit only one page when adding a person. Also, the list in the asm field is also likely to be shorter this way. and... With that system you could use a single query for this: $people = $pages->find("parent=/people/,template=person,first_name=Joe, company=$companies"); -
Not wanting to change completely the shift of this, but did you have a look at GraphicsMagick? It's a fork of iMagick that seems to have better performance and some large users. Maybe they have better support also. http://www.graphicsmagick.org/ Read about a use case at Etsy here https://codeascraft.com/2010/07/09/batch-processing-millions-of-images/ And the PHP support here http://php.net/manual/en/book.gmagick.php Why didn't I ever heard of this?
-
You probably have the class name in the text of each item in the navigation, so why not use it? With jQuery, written in the browser, and making lots of assumptions about your markup. but so you get an idea: $('nav a').click(function () { // do your ajax thing // and then $('body').addClass($(this).text().toLowerCase()); }); or, in case you use the name of the page, or anything else instead of the text in the nav item, add it as title or even data-something attribute to the link in the nav and do instead: $('body').addClass($(this).attr('data-something'));