Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/24/2014 in all areas

  1. GitHub: https://github.com/owzim/FieldnameUnprefixer From the README.md: Makes it possible to access prefixed field names without the prefix. Usage Create some prefixed fields and add it to you desired template, for example prefix_myField and otherPrefix_myOtherField. Configure the prefixes, that should be removed in your /site/config.php, like so: $config->FieldnameUnprefixer = array( 'basic-page' => array('prefix_', 'otherPrefix_'), 'home' => array('prefix_', 'otherPrefix_') ); The first array keys are the template names. The Prefixes also can be assigned as a string if it's just a single one: $config->FieldnameUnprefixer = array( 'basic-page' => 'prefix_', 'home' => 'otherPrefix_' ); Now you can access the fields without the prefix, like so: echo $page->myField; echo $page->myOtherField; The unprefixed field names are now also accessible via selectors, but only for already fetched data, since the field is not really in the database: // not $pages->find('myField=something'); // but $pages->find('template.name=basic-page')->filter('myField=something'); Use case Prefixes are sometimes necessary to have fields that behave specific to the template, so you need to create a specific field and namespace it with a prefix, but don't want to access the fields differently on each template. // eeew! $client->client_address; $something->something_address; // yay! $client->address; $something->address; Might be not the ProcessWire-way because data access is abstracted, but I use it, and perhaps some of you find it useful too.
    6 points
  2. "Dumbing down" Teppo's points to something a non-technical customer will understand a little easier : ProcessWire has most common features built-in, custom fields and admin templates are easy to do as well so it can be set up to work around your needs ProcessWire is the ideal platform to grow on - there are no roadblocks that can appear in other systems (it's capable of doing almost anything and doesn't mind you changing direction along the way) ProcessWire is secure. Never had a security flaw unlike some other systems where they patch for security systems every other month ProcessWire is fast - faster with ProCache (the fastest you can technically get!) ProcessWire is scalable, so if you need to support hundreds of customer accounts, or run an online ordering system, you can ProcessWire is Open Source and well-supported. It keeps costs down and there's an excellent community of developers behind it. I crossed out bits that I initially wrote that can be skipped as they are a bit negative, but left them there if you want to use them. As for the "Why can't you do it in Wordpress for me?" I think you answered that in your previous post pwired - if they insist on that then skip the job The thing a lot of people get hung up on is selling the system. At the end of the day, aren't people hiring us because we're skilled at what we do? If they don't value your knowledge and expertise despite explaining the benefits and want to use something else then you have to make a choice - use a system you don't want to use or turn down the work. To be brutally honest, if they won't listen to you at this stage it's worth considering if that might continue throughout the whole job and sap all the fun out of it for you. Having worked in retail a long time ago, I disagree with "the customer is always right". I prefer "the customer may have some valid points", but more-so in web development they should be listening to your suggestions. They then make the decision whether to take that advice or not of course, but you've at least done your best up until that point. --- A day I'll always remember working in retail is the time I was asked by a customer to check if an item of clothing was available in other sizes upstairs, Having just brought out all the sizes we had, I informed him there were no other sizes. He insisted I go and check. I assured him they were all out. He stormed off after telling me that I had lost a sale because I couldn't be bothered checking. You can't help some people
    5 points
  3. The main "selling points" for ProcessWire I've used in the past are flexibility, cost-effectiveness, security, performance and scalability. The order depends on the client and his/her specific situation, but there's always something you can use: If the client wants something large or very specific but doesn't have an endless amount of cash to spend, ProcessWire is a very good choice, as it has built-in a lot of common features and the rest (ones that probably won't fit any pre-made solution anyway) are usually much easier to build than with certain other systems. If the client isn't entirely sure about his/her needs and/or those needs might change in the future, it's good to explain that with ProcessWire there's always room for growth. I've never, ever said "ProcessWire can't do that" (and probably never will). ProcessWire is secure, period. Zero known vulnerabilities, built-in CSRF protection, various security measures against things like cache poisoning and session hijacking, *almost zero possibility for SQL injections*. With or without the buzzwords this should be of interest to the client regardless of their technical know-how. ProcessWire comes with a whole collection of native caching methods and has pretty awesome level of performance even without any caching at all. If the client is worried about how the system will hold, toss in ProCache (or simply mention that it's easy to setup later if such a need comes up). I've managed sites with tens of thousands of pages and I know that there are a lot bigger sites than that. I'm not sure about EE, but I wouldn't even dream of doing something like that on certain other systems. Not sure if this really applies to your client in this case, but it's good to keep in mind anyway ... and, of course, there's the "it's 100% open source" thing. Many clients seem to value that nowadays.
    5 points
  4. Tell him the benefits ....oh, Alexander sort of beat me to it. But basically, tell him that this time you will be building in ProcessWire because it is what is required now, together with a mobile first website. Unless he is insisting on using EE, I wouldn't even tell him the pros and cons, just say why PW is ideal, without saying why EE isn't. As my brother always said (he is the proper salesperson of the family), stick to the plot. If what happened in the past isn't part of the plot, don't go there.
    5 points
  5. Hi everyone, I'm glag to introduce pierre-diagnostic.fr. This is the corporate website for a french real estate services agency. It was built with Processwire 2.5.3 and the following modules : AIOM ProcessBatcher Zurb Foundation 5 (wich is a delight to work with) Go Processwire!
    3 points
  6. @pwired: there seem to be a few misunderstandings here. First of all, if I suggest a specific platform, and explain my choice properly, and that makes the client lose her trust in me, I don't think there ever was any proper trust there. Just like Pete said, you just can't help everyone. About your other point, I never said that the project is doomed if the client decides against ProcessWire. I said that the project is probably doomed anyway if the client doesn't trust me and my expertise. There's a huge difference there. If a client approached me and told me that she needs to put a static one-page flyer online, I wouldn't spend a whole lot of time explaining why that flyer should be built using ProcessWire. I'd go with a static page and that's it. Also, if the client requested a huge e-commerce site, I would probably explain that there are other solutions, including various SaaS products, that probably match her needs better. Being an expert doesn't just mean that you can convince anyone to buy anything. It's about finding solutions, and sometimes the right solution is to let the project (or the client) go
    3 points
  7. We'll be here with a box of tissues and some kind words. Maybe even some help
    3 points
  8. OH ABSOLUTELY NOT! Perhaps WordPress would be a better idea? bwahahaha, nope, just kidding, I'd never consider NOT using ProcessWire. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - EE years years ago was the CMS of choice (for me). I was very active on their forums and loved it. I turned out a few non-profits and several business sites with it - one was e-commerce. I met Mr. Client when doing a search and asking family/friends about "Opening Soon" type businesses in the area. I moved here from another city and found HIM and approached HIM. He said he liked my enthusiasm and "go gettim" attitude. I mentioned the cost of the EE commercial license and it was a non-issue for him. Even my own cost (which was the highest I had ever billed). Now fast forward several years later and I am excited, thrilled, super super enthusiastic to be back on this project!!! Words can not express my joy right now. I am certain (pretty certain, not fully 100% certain) that he will agree with me when I speak to him about the change. I've asked that he set up a subdomain for me and server/DB access. I shall be crying around these parts when I need s'more help
    3 points
  9. @pwired: I communicate with clients regularly, and the clients I work with tend to understand common sense. They don't have to be professionals to understand that system X might not be the best choice for them because a) it's not scalable, b) it's not secure, c) it's not powerful or d) it's going to be bloody expensive. The client does have to trust my word as an expert, though.. and if there's no such trust, the project is pretty much doomed anyway
    3 points
  10. Hello everybody, We've just updated AIOM to Version 3.1.4. This is a minor update including the following changes: Bugfix: CacheFiles for Pages are now deleted when a new minimized file is created Bugfix: An error is thrown if the document root is different to ProcessWire's base path If you find additional bugs or have some feature wishes, please open up a ticket at our GitHub repository. Thank you! Marvin
    3 points
  11. Hitting these kinds of roadblocks makes you better in the long run. At some point you'll never forget that when file or image fields are set to allow more then 1 file/image, you'll have to iterate over them because they are a WireArray. Or use a method like adrian showed. Also, this concept is explained at the start of the images documentation you referred to. One of the most common sources of confusion here on the forums .
    3 points
  12. tobaco - you can control the fields visible in profile edit mode - just go to the settings for the core module called User Profile
    3 points
  13. Sorry netcarver, this will be a late answer. The reason we offer mueslis, and not other things is because our product is really the best we can offer without spending too much of the money that will come if the campaign goes well. We thought of alternatives, but they would either be too expensive, or take too much of our work and energy in a time when we will be completely focused in opening the café. Offering our own product is always the best balance between more value and less spendings in any business, right? Of course we thought about people that won't be in Porto. We thought of sending our very nice postcards for instance, but only sending them to everyone (if we get all the money we need, we are necessarily talking about lots of people) would make it too expensive for the real value of it. That's why we have the symbolic offer of writing all the names somewhere in the café, and saying that there is no limit to using the muesli vouchers, like this people can use it at any time that they come to Porto. Of course we can make an exception for PW users, and I love André's idea. There will be for sure a hand drawn surprise for all of you that contribute, even if with 1 euro edit: And we sure need everyone's help at this point!! Thanks for the heads up André! By the way, great news, we were featured on the website of one of the main Portuguese newspapers http://p3.publico.pt/vicios/gula/14236/casal-de-designers-quer-abrir-um-muesli-cafe-no-porto
    3 points
  14. The first thing to do is leave the technology completely out the conversation, even if the client starts asking. Websites are, in the end, marketing and communications tools and it is vital to get the client thinking about the brand, the message, the need and the customer. If I was making a TV commercial, I would not expect the client to ask which recording desk I would be using for the soundtrack, but I would expect him to tell me whether commercial will be aired on cinema as well as television. In above the line advertising, the client wants clear results above anything else and it is worthwhile to encourage the same expectations for their website. Since a website may also involve the client or someone from their organisation working on the site, then it is also important to make the point that the site should also be easy to use. There is not need to say "ProcessWire" is easy to use, since that is meaningless if they don't know what a processwire is, how much to feed it or where you can get one kennelled. So, again, no technology speak, this is about assurances that YOU can fulfill the brief not that the software can. Coming from an old world creative production background, one of the most frustrating things I have found is this huge blurred area between the needs of the brand and the technology needed to get there. I suppose it is because many people in creative roles are also in technology roles, whereas in film production, for instance, the two roles are often separate and have been so traditionally for a hundred years. The client therefore has a clear route: Account Manager -> Creative -> a great big, magical, foggy bit when the technology is handled by people he is not introduced to -> final product to be signed off and paid for. Much better for all concerned
    2 points
  15. @pwired, Teppo was not talking about the CMS, he was talking about trust. Edit: oh, it's already answered
    2 points
  16. Someone else might have a better solution, but the options I can think of right now would be using a "dynamic" RewriteMap -- or a static one, if it's possible to list all the URLs available at the legacy site. On the other hand, if you end up with a dynamic RewriteMap, I'd probably go with a simple module that hooks into page not found and checks there if the requested URL exists, perhaps combined with some sort of internal caching Either way, using this kind of approach you will need to perform an additional query behind the scenes to see if the URL exists. While that's doable with -U in mod_rewrite too, it doesn't handle 404's (or, rather, it considers them "existing URLs") so it's not really useful here AFAIK.
    2 points
  17. Good to hear! Not really. The if, as a whole, applies to whatever is in the brackets following it. Yes, $page->sidebar is in the mix, but not as a true/false evaluation any more. So, you've got this bit; if (some-boolean-expression) { // If the expression evaluates as true do this stuff... echo "True!"; } Now you have to peel the if "onion", from the outside in, to find what's happening... if (strlen(X) > 0) : // Checks if the string length of X is greater than 0. This is the true/false decision. // Now let's peel another level and look at what X is... trim(Y) // X is the trimmed version of Y // And Y is? $page->sidebar Putting it together again, from the inside out, the if statement says... 1) Read the contents of the $page->sidebar field. (Even when this string field is empty in PW's admin page it's coming to us with length 1 after the textformatter - probably the TF adding whitespace) 2) Trim it - The trim function trims leading and trailing whitespace (amongst other things) - so now we have an empty string. 3) Measure how long the trimmed version is (Now it's 0) 4) If that length is > 0 then do this stuff (This stops us showing the empty string as the length is no longer greater than zero. You might find this, simpler, if statement works for you too... <?php if (trim($page->sidebar) != '') : ?> ...and I think that's what Soma was suggesting earlier in the thread. Hope that helps.
    2 points
  18. And what about... echo "<pre>Len: ", strlen(trim($page->sidebar)), "</pre>"; If it's still len: 1 then there are some chars in there that the trim function isn't removing. It that's the case I'd do this... $ord = ord($page->sidebar); echo "Ord: $ord";
    2 points
  19. Hi and thank you SiNNut, I have tracked this down: It is definitely caused by the markdown text formatter. Made a textarea field "debug" and tried it once with and once without markdown enabled. Worked as it should without but not with markdown enabled. The installation in question is 2.4. I'm going to double-check with a 2.5 and if it is the same will file a bug.
    2 points
  20. Alan, this probably won't affect you or anyone else here who's running https sites but I'll post it anyway... Please makes sure that there aren't any issues with your visitors' browser support for SSL certs that use SHA-2. If you have a whole bunch of visitors using older versions of IE then you may be cutting them off if you do go down this route. (I know that another take on this would be "Encouraging them to switch".) I believe that Mozilla had to rapidly switch back to SHA-1 after switching to SHA-2 recently as many people who install Windows then visit Mozilla's site to get the latest version of Firefox and download it. Of course, when Mozilla switched to SHA-2 some proportion of their visitors (I think it was a fair few percent but can't remember the figure) were finding that they couldn't download Firefox without certificate warnings & ironically this put up a barrier to their switching to a better browser - so Mozilla rapidly reverted the change. What I like about the story are that folks were using IE just once, as a bootstrap, to load a better browser & that Mozilla thought that it was more important to allow them to do that easily than to improve their own site's SSL hash algorithm.
    2 points
  21. Peter has got it running using HannaCode, https://processwire.com/talk/topic/3745-hanna-code/?p=77895 To conclude: In general, never use the eval method mentioned here people!
    2 points
  22. Hanna code is the way to go, and should work with 2.5
    2 points
  23. It's possible, only not recommended. Take a look at this thread https://processwire.com/talk/topic/3004-is-there-any-way-to-execute-php-loaded-from-textarea-fields/?p=29541 If you lose the opening and closing PHP tags in your 'Inject Include' code, you can use php eval, http://php.net/manual/en/function.eval.php to execute the code in the template. But you really should be using Hanna (which should work also in 2.5.5) or maybe http://modules.processwire.com/modules/markup-shortcodes/
    2 points
  24. Provided an example on this post how to prevent it using hooks. It would be great to have this supported natively though, so such "hacky" tricks wouldn't be needed.
    2 points
  25. Yes this is possible. However since preventing it is not "natively" supported by ProcessWire, you need to trick it a little bit. This can be done in many ways, but here's one wire()->addHookAfter("ProcessPageEdit::buildForm", function($e) { if(!$this->input->get->modal) return; $form = $e->arguments(0); $field = $this->modules->get('InputfieldHidden'); $field->attr('id+name', 'ProcessPageAdd'); $form->append($field); }); Providing a native way would be very simple since the closing of the dialog is controlled by a single variable called closeOnSave in InputfieldPageTable.js. You could also modify the buttons and whatnot. Also submitting the form in a regular way (e.g. by hitting enter) also prevents the modal from closing. The example I provided tricks the InputfieldPageTable.js to set closeOnSave to false by just adding a hidden field to the form with the ID "ProcessPageAdd" (https://github.com/ryancramerdesign/ProcessWire/blob/576a5d30153f045daa94a136a6ba981650632b26/wire/modules/Inputfield/InputfieldPageTable/InputfieldPageTable.js#L52). Edit: Added a litte more information
    2 points
  26. @MindFull: Thanks for the updated info, it was enlightening. Is the VPN down more often than their Internet-connection? The reasons behind these questions is that if you need 10+ masters, I would suggest a technique Flickr, for an example, uses. You can actually check their post about it here: http://code.flickr.net/2010/02/08/ticket-servers-distributed-unique-primary-keys-on-the-cheap/ - it's a really simple method If only the VPN-downtime is a problem, you could consider running the ticket-servers on the Internet. If things cannot be reliant on the Internet-connection either, then in my opinion, the simplest solution would be using the same method described in the article above, but just using it locally. Either way, such implementation would require hooking to the saving of new pages and just prefixing all IDs with a prefix assigned for each of the PW-instances (read from the site's wire('config') for an example). A three digit prefix would probably be enough to cover all of the customer's expansion needs (forever). Just an example Corporate instance 1: 100 + <local ticket ID> Corporate instance 2: 101 + <local ticket ID> Branch instance 1: 200 + <local ticket ID> Branch instance 2: 201 + <local ticket ID> ...and so on. This would work without any hacks to PW, because you are allowed to set the ID for new pages. UML, urgh, I feel you there!
    2 points
  27. I'm not sure where to put this, but because I got the basic code from Ryan's post in this thread, I'll put it here. I was working on a portfolio site where the Work page spits out a list of thumbnail links. I scoured the forums looking for a simple prev/next link setup to move from page to page of the work thumbnails. I'm still learning PHP, so I can't solve these problems from scratch. Thankfully, I came across this thread and the basic solution to my problem. After tweaking Ryan's code and adding a couple of things, I came up with this: // What we are trying to grab $entries = $pages->get("/work/")->find("template=work-entry, sort=sort, limit=2"); // values we need to make this work $start = $entries->getStart(); $end = $entries + count($entries); $total = $entries->getTotal(); $num = $input->pageNum; $lastNum = ceil($total / $entries->getLimit()); // prev link if($num > 2) { $prevLink = "./page" . ($num - 1); $prevLinkClass = "class='NavPages-item NavPages-item--prev'"; $navPagesPrev = "<li {$prevLinkClass}><a href='{$prevLink}'>« Newer</a></li>"; } else if($num == 2) { $prevLink = "./"; $prevLinkClass = "class='NavPages-item NavPages-item--prev'"; $navPagesPrev = "<li {$prevLinkClass}><a href='{$prevLink}'>« Newer</a></li>"; } else { $navPagesPrev = ""; } // next link if($num < $lastNum) { $nextLink = "./page" . ($num + 1); $nextLinkClass = "class='NavPages-item NavPages-item--next'"; $navPagesNext = "<li {$nextLinkClass}><a href='{$nextLink}'>Older »</a></li>"; } elseif($num == $lastNum) { $navPagesNext = ""; } Then you can output the links with <ul class="Nav NavPages"> <?php echo $navPagesPrev; echo $navPagesNext; ?> </ul> When you're on the first page, the prev link won't show up, and when you reach the last page, the next link will disappear. I used a small limit to make sure it worked for over 2 pages of links. I hope somebody will find this useful.
    2 points
  28. Hey guys, first, ProcessWire is a great piece of software. Thanks for that and the great community behind that. So, i'm realy new to ProcessWire, but i will present you my first module for SEO- and performance optimizing: AIOM+ (All In One Minify). AIOM+ (All In One Minify) for CSS, LESS, JS and HTML AIOM+ (All In One Minify) is a module to easily improve the performance of your website. By a simple function call Stylesheets, LESS and Javascript files can be parsed, minimized and combined into one single file. This reduces the server requests, loading time and minimizes the traffic. In addition, the generated HTML source code can be minimized and all generated files can be loaded over a cookieless domain (domain sharding). Install AIOM+ Download current release (link below) Extract and copy the files for this module to /site/modules/AllInOneMinify/ Login to PW backend and go to Modules > Check for new modules Install Module > AIOM+ (All In One Minify) for CSS, LESS, JS and HTML Alternative in ProcessWire 2.4 Login to PW backend and go to Modules Click tab "new" and enter Module Class Name: "AllInOneMinify" Click "Download and Install" Features Combining stylesheets / LESS files or JavaScripts Minimize the combined files No change to the .htaccess necessary (except for the domain sharding) Server-side LESS parsing without plugins HTML source code minimization Cookieless domain / domain sharding Automatic cache management (With changes to the source file, the cache is rebuilt) Configurable via the backend Automatic rewriting the paths in the stylesheet and LESS files. No changes are needed Optional developer mode (combining, but no minimize and browser cache prevention) Clear the cache on the backend Conditional loading for CSS, LESS and JS (since Version 3.1.1) How to use Minimize multiple stylesheet or LESS files into one file. You can even mix stylesheet and LESS files in parsing and combining process! <link rel="stylesheet" href="<?php echo AIOM::CSS(array('css/file-1.css', 'css/file-2.less', 'css/file-3.css', 'css/file-4.less')); ?>"> Minimize multiple javascript files into one file. <script src="<?php echo AIOM::JS(array('js/file-1.js', 'js/file-2.js', 'js/file-3.js', 'js/file-4.js')); ?>"></script> Conditional loading (same with Javascripts) <?php $stylesheets = array('css/reset.css', 'css/main.less', array('loadOn' => 'id|template=1002|1004|sitemap', // PW API selector 'files' => array('css/special.css', 'css/special-theme.less'))); ?> <link rel="stylesheet" type="text/css" href="<?php echo AIOM::CSS($stylesheets); ?>" /> More Information, Documentation and Download AIOM+ in ProcessWire repository AIOM+ on GitHub So, I hope you can do something with this module. Dave
    1 point
  29. Recipes website: http://superpola.com Modules Used: ProCache ProcessImageMinimize / minimize.pw Batcher AIOM
    1 point
  30. Hi all, This one is special because it's for a project of ours, Erika and mine. http://muesli-cafe.com/ We are starting a crowdfunding campaign to open a breakfast place in Porto where we will serve muesli. This is quite a bold attempt because muesli is not common at all in Portugal and it will take a good communication effort from our part. We will need all the help we can get, if you guys want to contribute here's the project's crowdfunding page http://ppl.com.pt/en/prj/muesli-cafe-porto and you will be all welcome to Porto to taste our delicacies It will be great if we make it
    1 point
  31. title inspiration TL;DR Unless a last bit of checking I am doing over the next short while concludes otherwise, I am going to convert all my sites to run from httpS connections <del>and ensure all the certificates I use are of type SHA-2 not SHA-1</del><ins>and later on ensure all the certificates I use are of type SHA-2 not SHA-1</ins> Dull detail I amy be wrong about a little or a lot of this stuff so please check my facts before you rush off and do stuff, but, I've learnt some new stuff over the last little while and thought I'd share with PW friends in case it's of any help. The following is just a bunch of things that I believe are correct and that may be helpful, sorry I had no time to write it up into a nice article/post: Google preferring websites that serve their pages over httpS connections (so clearly it's a good idea to make a website deliver pages over httpS) source many of the the companies selling certificates are selling SHA-1 type certificates rather than SHA-2—I (I bought two in recent months from different suppliers and they are both SHA-1)—want to test a site's certificate? Check out https://shaaaaaaaaaaaaa.com/ (even tho the URL looks mad I believe it's good and comes from this authoritative looking source: https://konklone.com/post/why-google-is-hurrying-the-web-to-kill-sha-1) Google are gradually sunsetting SHA-1 (in favour of SHA-2) Microsoft, Chrome, and Firefox all recently deprecated SHA-1, and plan to turn it off in 2017. source x
    1 point
  32. Yes, I agree on that one and also what Pete said earlier. You have to listen very carefully to the client and his reactions to picture what is coming for you and say no very early in the process when it is not worth it. Lost a lot of time in the past with, trying to convince, explain, comparing, etc. In the end you make your self look like a fool instead of doing some real business. Time is money. In the past I was selling a real state of the art home alarm system. Same thing, I spend hours per client to demonstrate, explain, compare, etc. Partners who sold the same home alarm only spent 10 minutes per client and at the end of the day they sold a whole lot more than me.
    1 point
  33. Teppo's version is shorter than mine I think a lot of us were timid when we started doing web development - it can feel odd doing a job you enjoy - but at some point it all boils down to you being the expert and the client listening to you. A really rubbish plumber analogy would be if you were talking to a client and they wanted lead pipe instead of copper, what would you do? A crappy job with lead pipe that would taint their water supply or walk away?
    1 point
  34. Teppo: as usual you are communicating from your own professional level to us forum members where we understand you perfectly. Now try again with clients who respond to you like: "What, processwire? Never heard about processwire!" "I want you to do it in wordpress because I know many people who have their website in wordpress" "Why can't you do it in wordpress for me ?" Your technical arguments, no matter how correct they are, have zero effect on the feelings of a client. He is going to respond to you with "yes, yes, yes" making you think it is going to be done in processwire. Only to find out the next day the client has found somebody else to do it for him in wordpress because he feels right about wordpress.
    1 point
  35. I remember that this is also with configurable modules, if you have a textarea in a config screen where you should add params one per line, for example, and if you simply end the last line with a "new-line char", line one (new-line-char) line two (new-line-char) line three (new-line-char) hit submit, you will get back your content with three tab characters added! If you do nothing but only hit submit once again, you will get three more tabs added, and so on and so on. Whereas if you let out the last "new-line-char", you will get back only the content you want, without added tabs: line one (new-line-char) line two (new-line-char) line three This is with PW 2.3, 2.4 and 2.5, you can test this simply by make the HelloWorld Module configurable: class Helloworld2 extends WireData implements Module, ConfigurableModule { public static function getModuleInfo() { return array( 'title' => 'Hello World 2', 'version' => 2, 'summary' => 'An example module used for demonstration purposes.', 'href' => 'http://processwire.com', 'singular' => true, 'autoload' => true, 'icon' => 'smile-o' ); } public function init() { } static public function getModuleConfigInputfields(array $data) { $form = new InputfieldWrapper(); $field = wire()->modules->get('InputfieldTextarea'); $field->label = 'Textarea'; $field->attr('name', 'textarea-value'); $field->attr('value', $data['textarea-value']); $field->columnWidth = 100; $form->add($field); return $form; } }
    1 point
  36. Martijn, I can speak only for my self, because other designers/coders are skilled in more than one cms/cmf and use them mixed for using the right tool for the job that needs to be done. In my case I am not willing to build it in another system then processwire simply because I have no time to learn other systems ! Sometimes a client asks me to extend a wordpress or joomla site and I have to say no to them. I need all my time to learn the pw api plus php and css and hopefully become one day as good as you are.
    1 point
  37. @netcarver: thank you so much for this comprehensive tutorial. Really appreciate. @Martijn: I did already.
    1 point
  38. Are you willing to build it in an other system then ProcessWire?
    1 point
  39. There are more instances where saved empty fields still contain tabs. Sorry that I don't remember what fields and in which context.
    1 point
  40. Hi Nico Currently lots of people are actually switching from TYPO3 to other CMS and IMHO this will be also be the case in future as they simply made to many codebreaking changes to extensions where they kept the name, but after updates your complete site was blank etc. So people get frustrated. Like us too by the way. We were looking long time for another CMS which has most or evenmore benefits than TYPO3 and I ampretty sure we found it in Processwire. it is faster very modularized multidomain capable (i.e. we made a site for 400 churches in one TYPO3 - and they now need to update from TYPO3 4.5 to 6.2.6 and are also not happy that many things no more work like before) multilingual and has multilingual SEO (if you adjust your module which you just released - it's great thanks) you can have profiles and very easy backups of your sites and profiles using the profile exporter (a think that was missing in TYPO3 all those years!) the core is separate and it can be updated much easier than in TYPO3 In TYPO3 6.2 you can now create profiles and import them >>> IMHO one way to build a migrator to processwire! and to move customers over, another way is the .t3d export of complete branches or only single pages. It is an internal format for TYPO3 where you can afterwards all data back into another TYPO3 page. Also this could be a great way to use for an importer from TYPO3 to Processwire as it imports all kind of data and files and relations. -- Like said we have lots of customers and usually they ask us to build a TYPO3 website (since 2002 we are doing that) but meanwhile we suggest that they switch toprocesswire. The main problem for all those companies and people is that they ran their sites often in TYPO3 for many many years and are now afraid that it will be very difficult to import their current site data from TYPO3 to processwire. If there would be an importer like your wordpress importer than it would be quite easy to switch customers to processwire. Another 2 problems - (need to discuss that in another thread) is the flexible templating for editors what is available in TYPO3 and now wordpress and drupal but still not in Processwire. and the Digital Asset management which id great in TYPO3 as you can integrate dropbox, googledrive using a File Abstraction Layer and the build in fileadmin is great to with his Meta Data management (similar to DAM). Those things are still missing Processwire but I hope that the Gallery Extension will be released soon as it looks great. Let's see. The biggest hurdle to convert customers from TYPO3 to Processwire is actually their data. When I did the coding of the UNESCO Bangkok website 2007-2010 they had about 550 pages with 16.000 Content Elements and 25.000 Digital Assets (in DAM Digital Asset Manager). East West Center (2008-2010) was very similar to that, but had additionally lots of user data coming from their editors and every day lots of news articles and their categories and tags and their specific permissions. This site was also TYPO3 and is now Drupal (also done with an importer to Drupal by Srijan Technology a former TYPO3 and now Drupal supporter) - http://www.srijan.net/work/typo3-drupal-east-west-center/ Those are sites we name here only as an example as we had worked before with it, but to be able to convert those sites incl their user rights management to processwire would open up very new perspectives to Processwire. This is Enterprise Level! Beside this of course there are tons Universities, NGOs, Schools, Governmental, SME and lots of small TYPO3 websites which meanwhile often complain that TYPO3 in Version 6.2 is to slow, getting to instable and that with each new update you don't know if your site perhaps will turn blank/will be inaccessible. In other words NOW is the right time to crack that nut and convert more and more of the still existing customers to Processwire. A module which would do that would be just ideal for that purpose. Perhaps you can "reconstruct it" ;-) even it's already 2 years ago you did give it a try. Perhaps those two links canhelp you to get such a module done: https://www.drupal.org/project/migrate https://www.drupal.org/project/typo3_migrate https://www.drupal.org/node/1188446 Similar to the processwire approach they are using a general Module and a CMS specific (in this case TYPO3) module the latest update is 2013-Oct-19
    1 point
  41. Apologies, Joss, I'm sure the posts were meant as questions not complaints.
    1 point
  42. I have just committed an update that adds an option to send a test message from the module settings page. The fields in the email body will come from the sending user's account so you must have an email entered for your account and if you have fields like first name etc in the body template, then you should have those completed for your account also. If your body template makes use of the {pass} code, in the test email you will see "password" instead of your actual password. Please let me know if you find any problems with this new version or any other ideas for improvements.
    1 point
  43. I went ahead and made it an option. By default it is added to the shortcut button, but you have the option to prevent this. Also made a couple of other minor fixes / tweaks. Joss - let me know if that works ok for you.
    1 point
  44. So, two seperate editions of PW, you have to choose one and can trade with people who installed the other edition if you want to use all the fieldtypes? Sounds like fun
    1 point
  45. Yep, the certificate authorities are rubbing their hands in glee.
    1 point
  46. By id, or usually using the object ($modules->get("ProcessHome")).
    1 point
  47. Could you try getting the process module by its id? For ProcessHome: $pages->get("template=admin, process=87, include=all"); I suspect you have to get the process by id, not sure though.
    1 point
  48. Agree with Charles on this. This forum is pushing my learning process in a very positive way from html to php and am very thankful for this.
    1 point
  49. Looks awesome. The Pagetree is not everyones love, especially for those coming from joomla an the likes. Any chance for a frontend filter that would be customizable through the same Lister Pro Module?
    1 point
  50. Podcast Profile Github: https://github.com/thetuningspoon/PodcastProfile Direct Download: https://github.com/thetuningspoon/PodcastProfile/archive/master.zip Manage your podcasting with ProcessWire! The Podcast Profile is a fully featured iTunes podcast publishing platform built using nothing more than ProcessWire's basic fields/templates/pages system. Automatically generates an XML feed for submission to iTunes. Fully implements the iTunes podcasting specification (https://www.apple.com/itunes/podcasts/specs.html) and supports managing an unlimited number of podcasts and episodes from the same installation. Accommodates both on-site and off-site file hosting. Get it here: http://modules.processwire.com/modules/podcast-profile/ Instructions 1. Upload a fresh copy of ProcessWire to your server. 2. Extract the PodcastProfile-master folder from the zip file to the root directory of the new installation. 3. Rename the folder to site-PodcastProfile <- IMPORTANT! 4. Install ProcessWire as usual. When asked to select a site profile, choose "Podcast Profile". 5. Once installed, you can add a new Podcast via the "Add New" menu in the upper right portion of the admin panel. 6. Fill out the podcast details and then begin adding episodes under the podcast page, or via the "Add New" menu. 7. The XML file for each podcast is generated at http://www.yoursite.com/podcast-name/ (The url of the podcast page) 8. Use this URL to submit the podcast to iTunes at https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/publishPodcast
    1 point
×
×
  • Create New...