Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/30/2014 in all areas

  1. If someone asks someone in a language that is other than English, we usually ask to stick to English, but I don't think we are inflexible with it. I would say, if you have a concrete question, try to ask in English, also because it will raise the chance that someone will answer, but if it becomes too difficult for you to understand or express the doubt it's ok to mix a bit of dutch in between. We have enough Dutch people here to understand it, and probably the German(ic)s will also
    4 points
  2. I'm very lucky indeed. The town I'm in started as project some years ago putting fibre into mini trenches. When you sign up contractors extend the trench into your home and run a piece of fibre into your house. They boast gigabit speed but I've only managed 880 Mbps on borrowing a friend's MacBook with an ssd. www.gigler.co.uk I can watch 100+ movies at once lol. It won't be long hopefully once bt have replaced their core networks that they will eventually extend fibre into the home for everyone.
    4 points
  3. Commented already on the video, but I'll say the same here. To prevent having the site down while moving the new files to the server, it's better to rename the new wire folder to "newwire" and do the switch only after all the files are moved.
    4 points
  4. I think either way would work. Your suggestion is change the label client-side, mine was leading towards changing it server side.
    3 points
  5. It's just that the ability to assign icons to modules is a relatively new feature and those modules haven't been updated to add the icon yet. You should perhaps file separate requests on the github pages for each module. That said - are you really giving the client access to the Setup menu?
    3 points
  6. I just created a module that does that just for you you can modify it to get what you want. Create the folder ChangeLabels with 2 files: ChangeLabels.module <?php /** * ChangeLabels * @author Luis Santiago "blad" * * ProcessWire 2.x * Copyright (C) 2010 by Ryan Cramer * Licensed under GNU/GPL v2, see LICENSE.TXT * * http://www.processwire.com * http://www.ryancramer.com * */ class ChangeLabels extends WireData implements Module { public static function getModuleInfo() { return array( 'title' => 'ChangeLabels', 'version' => 1, 'summary' => "ChangeLabels - Tested", 'author' => 'Blad', 'autoload' => true ); } public function init() { $this->addHookBefore('InputfieldPassword::render', $this, 'HookChangeLabel'); } public function HookChangeLabel(HookEvent $event) { $this->config->scripts->add($this->config->urls->ChangeLabels . 'ChangeLabels.js'); } } ChangeLabels.js $(document).ready(function() { $("li#wrap_Inputfield_pass label").empty(); $("li#wrap_Inputfield_pass label").append("Your label"); }); It works.
    3 points
  7. No Durch though. I have checked behind the sofa and we definitely don't have any Durch. Dutch we have crawling out of the woodwork, however....
    3 points
  8. hi i'm Frank i'm 38 years young normaly i make the sites int html, but now therse some one who wants to upload whitout html so i thougt whit a cms is to doe the best.. i've lookd into the net en noticed the processwire was not so hard to learn and still is in progress... so i'm going for it... i have 2 kids an a dog on my profile you can see a few sites that i've made.. i'm not a pro and i'm doing it for fun but now there are more and more people who are asking if i can make some sites.... so what i've done so far and what i've seen so far is realy great.. but my engilsh i hope to learn a lot here
    3 points
  9. translation ? First post. Why don´t you introduce your self first, and tell something more about the how and what.
    3 points
  10. There is a way around this. Either remove all whitespace characters from the pagination string you get. $out = $list->renderPager($options); $out = str_replace(array("\n", "\t", "\r"), "", $out); This should work as long as there aren't real spaces between the tags. The raw css way of preventing the space would be this: ul{ font-size: 0; } li{ font-size: 16px; }
    3 points
  11. exit print_r var_dump gettype ProcessWire
    3 points
  12. Nice job Khan! Perhaps we should integrate this as an option into the main Comments fieldtype? Or should be be a separate fieldtype (under a different name)?
    3 points
  13. Upgrading processwire... in just 3 minutes
    2 points
  14. Still messing with this a little, but... http://theblokewotdoeswebsites.uk/ Made with ProcessWire, of course, (2.5.3) with the Foundation 5 framework and Adobe Edge Animate on the front page. Hanna code used a lot and Pro Cache. Generally speaking it is more fancy to look at than fancy at the back end. That is the nice thing about ProcessWire - I could do most of what I needed without bloating it out with a ton of plugins. All the graphics are mine (couldn't afford a proper graphic person) - except the globe The music is played out with a very neat little library called howler.js http://goldfirestudios.com/blog/104/howler.js-Modern-Web-Audio-Javascript-Library It is not pro-cached yet (since I am still messing) and I haven't squished the scripts or css yet. But, other than that, it is suitably scary.
    2 points
  15. you posted while I was still writing. For normal input fields like InputfieldText and InputfieldEmail the label override works just fine. It seems to be only the password field. So it seems not that big of an issue to me and I can live with it. But I will add it as an issue to see what the reason behind hardcoding in the render method is.
    2 points
  16. Well, thanks for the props but that might not be the case. A better solution to the problem might be found in either removing the hard-coded label set from the ___render() routine or in doing what PW does for its own admin login: use an InputfieldText rather than an InputfieldPassword! Here it is straight from ProcessLogin.module... $this->passField = $this->modules->get('InputfieldText'); $this->passField->set('label', $this->_('Password')); // Login form: password field label $this->passField->attr('id+name', 'login_pass'); $this->passField->attr('type', 'password'); $this->passField->attr('class', $this->className() . 'Pass'); First time I've noticed that the login page isn't using InputfieldPassword. Any mileage in that approach for you Gerhard?
    2 points
  17. Might be unlikely, but what if a bot decided to hit 1000's of random pages on your site looking maybe for admin access or something - then your redirects database table would be full of all these entries - could get messy!
    2 points
  18. That was quick blad! I was just about to post the following... But your's is another approach again.
    2 points
  19. wel tryde different thing but it wont work... pffffff but i won't give up
    2 points
  20. Something like $album = $pages->get("template=album, yourpagetable=$page"); $track = $album->yourpagetable->find("track_group=2194");
    2 points
  21. Ah ok. On a sidenote: It's recommended better to use add and remove status not just status = status cause it's a bitmask and it can have more than one status. $page->addStatus(Page::statusUnpublished); https://processwire.com/talk/topic/1293-how-to-set-unpublished-for-a-page-in-the-api/?p=11538
    2 points
  22. Jealous of your broadband speed. Stuck here with a 4MB connection You on fibre optic?
    2 points
  23. Thank you all very much -- ProcessWire looks like it will be fun to learn. I have become too overly-reliant on WordPress as easy-to-implement, but leading to limitations on my ability to personalize a site such that it looks like something other than a typical WordPress site. Same experience on Blogger. Also tried Drupal & Joomla, both of which required too much overhead for what I have to communicate. I appreciate everyone's helpfulness. I hope to be very active on this forum. I'm a military veteran, and want to build a professional but personable web site that will serve as a platform for me to provide peer support to other veterans who need help. Goes without saying that I don't want to compete with the VA on a compendium of everything veteran-related, but straightforward content organization is (I think) going to be very important. I also don't want to spend more time on web site administration than I do on actual assistance to others.
    2 points
  24. Our client wanted a site that would allow users to join a sport events (either free or for a small fee) and that would be easy and flexible for moderators. The final (well, there are some unpolished little things there - so let's call it a beta) effect is available to see here: http://www.meetspot.pl/ It was the first major project based on ProcessWire for us and it (PW) worked flawlessly. One thing I would like to see is a front-end user module ready from the get-go - while the API is super nice we spent a lot of time on reinventing the wheel: e-mail confirmations, captcha checks, Facebook integration, and so on. Maybe someday we will extract our code into separate module, but it's kind of tightly coupled to templates so it could be problematic. Other than that PW was perfect, and we felt we made the 100% right choice when we had chose it. API is very solid, and - besides aforementioned members managment - we only had to focus on major features (managing events, payments, cancellations). All the rest was already solved. There were a lot of third-party integrations (payment gate, Facebook, MapBox, SMS/text message integration) - and from the PW side everything went really smooth. Furthermore, the client is happy with the administrators' options. Actually, we even didn't had to explain things - the dashboard is so intuitive. Looking forward to Your feedback and opinions.
    2 points
  25. This module allows the page name to change when the title is edited. Modules directory: http://modules.processwire.com/modules/page-rename-options/ Github: https://github.com/adrianbj/PageRenameOptions I'd love to think that this module was not necessary for me but, especially during development, I find that page titles often change and I'd really rather have the names/urls match the title. I don't think you can expect clients to remember to change the name when they change the title, or even if they do, they still have to get it right which can be a challenge with a long article names with characters not allowed in page names. With none of the config settings checked, the default behavior is to have the page name always match changes to the page title, but allow the user to manually edit if they want. The options allow you to protect initial differences (changes you may have made as a user with an exempt role), completely disable manual changes, or protect manual name changes from subsequent changes to the title while editing. My preferred settings are to set the exempt role as superuser, and check "Initial Differences Protected" and "Prevent Manual Changes". CONFIG SETTINGS Exempt Roles The selected roles will not be subject to any of the rules below. The name will change automatically with the title, but they will be able to manually edit the page name as desired. Excluded Pages Pages that are excluded from the actions of this module. Changing the titles of selected pages will behave as though this module is not installed. For multi-language sites it is recommended to select the site's homepage. Initial Differences Protected If checked, further changes to the name (to match a changing title) will not happen if the name is already different from the title (evaluated on page edit initial load) Prevent Manual Changes If checked, it won't be possible to manually edit the name. If checked, this will disable the "Live Changes Protected" setting since it won't be possible to make any manual changes. Live Changes Protected If checked, further changes to the name (to match a changing title) will not happen if the name field was manually changed at any time during the current page edit. Please test the behavior of each setting thoroughly so you understand what each one does! Please let me know if you have any further requirements around permissions / role access to the module's functionality.
    1 point
  26. ------------------------------------------------------------------- LanguageFieldTabs is now included in ProcessWire by default (version 2.4). Unless you are using version 2.3 DO NOT install this module, instead navigate to Modules and then core and you will find the module in the Language section ------------------------------------------------------------------- LanguageFieldTabs Beautify and organize you Field Languages into tabs! DOWNLOAD - Github DEFAULT UI UI IN "UNIFY" ADMIN THEME Sorry for the lack luster write up, will add to Modules Directory later, late, long day tomorrow. Enjoy! (very much beta maybe alpha, minimal testing, just quick evening idea at this point). Changelog v1.0.2 Improved styling capabilities (added surrounding class "LangTabsContainer" ) Added admin wide support Fixed description text order (was being pushed to bottom) v1.0.3 Added support for toggling tabs display and faded labels to represent empty fieldsv1.0.4 Fixed tabs destroy error Moved toggle into Inputfield ui-widget-header
    1 point
  27. Dear PW-ers. I would like to inform you that I’ve been in need of Tree View commenting system for a project being developed by me at the moment, thus, I’ve decided to make some additions to the commenting system developed by Ryan. Hereunder, I’d like to share the code with you for your kind information. You can also practice it in case of need. Some screenshots: Download link: FieldtypeComments.zip List of changed files: small change in main.css: Archive updated.
    1 point
  28. I like the idea ceberlin. Catch, log and redirect 404 would make a lovely new module, but I don't see it as a feature for this one. I have heard about a fellow called Adrian, who creates about 5 modules in a week...
    1 point
  29. It is logical. The PW API supplies method which we can use to render forms through the API. There are predefined input field types that we can use. @netcarver You're right. I added an issue on github.
    1 point
  30. @blad Yeah, it's logical but there are actually two different use-cases and I was getting them mixed up. I think Gerhard touched on the difference between the two above; the admin login only needs to collect the username and one copy of the password, so it uses InputfieldText with the type set to 'password' to do it. In admin forms (once logged in) if you collect a password to set it or change it, then you usually get two copies (the password and a copy of the password) - just to make sure you typed it the same both times. I think (but didn't realise till now) that InputfieldPassword is for the second scenario; setting or changing a password. Gerhard's trying to reuse this Inputfield in his form but the hard-coded set of the label in InputfieldPassword's ___render() routine is getting in the way. Anyway, that's my current understanding of the situation.
    1 point
  31. I just doublechecked. The label is not hardcoded in the __render() method. It says $this->label = $this->_('Set Password'); Where _('Set Password') is a translatable string. So if I add a translation for it, I should be able to change it. Only where would I translate it?
    1 point
  32. To implement a module to do this, I would need to hook the path generation at the lowest level, which appears to be PagefilesManager::path() or actually the static method PagefilesManager::_path() at the very lowest level? Ryan, any chance you can make this hookable? A module could then implement the path modification, e.g. adding ".protected/" to the path, and adding a new setting to FieldtypeFile, and a checkbox to InputfieldFile. Does that sound feasible?
    1 point
  33. Gerhard, Could I tempt you to add this as an issue on github to see what Ryan has to say about having the label hard-coded into the __render() routine? There might be a reason for it - but it does rather limit the inputfield at the moment.
    1 point
  34. Hello, I have registered it there. https://github.com/ryancramerdesign/ProcessWire/issues/701
    1 point
  35. Awesome, thank you blad! Would be better to not require js for the task. So the hook after render is something I will investigate further. Cheers Gerhard
    1 point
  36. I did not get into all this, but maybe: $myfile = $page->documents->get("name={$myfile}"); But why not limit "Maximum files allowed" and output it like this: <?php if($page->documents) { echo $page->documents->url; } ?> If you plan to have multiple files uploads, you should leave "Maximum files allowed" option as it is and do foreach.
    1 point
  37. Apparently there are some changes in Processwire 2.5 when new pages are added. When adding a page with a title that already exists, Processwire automatically changes the page name to 'pagename1'. Before, Processwire would tell me that the title/name already existed and forced to use an other name. For my website the new behaviour is rather awkward. When I add a new 'place', say 'Processtown, Wirestate, Forumland' to the already 2000 present, Processwire will add a new page, which I don't want. So now when I want to add a new place I have to check before if it already exists. Worse is when I add a new 'event', say '30 September 2014'. When it already exists, Processwire will add a page '30-september-2015', which is not what I want. Processwire warns me that a different pagename was used, but still it's confusing and could easily lead to unwanted errors. Perhaps it's possible to change this setting somewhere I don't know of....
    1 point
  38. wel i have a contact form in php already is it possible to work whit it because it's from the old site... and yes it's handy to call it dutch typing to fast i thnk
    1 point
  39. 1 point
  40. @Mike - I plan to update the theme really soon, I've also started using PW 2.5+ so you shouldn't wait too long
    1 point
  41. @blad Great "fucking awesome" video @Joss Yes it is really a blast from the past. I started with MX Kollection from interakt and was really hard to find something similar. But I agree that PW is really more powerful and flexible!
    1 point
  42. May I ask why aren't you providing the delete-links through the field itself by looping through the items it contains and using the hash of the files to reference them? In other words, why do you need to work with the original filenames? Just to make my point clear // Generate delete-links foreach($myPage->files as $file) { echo "<a href='{$myPage->url}?action=deleteFile&hash={$file->hash}'>".htmlentities($file->name)."</a><br />\n"; } // Then on your controller you can retrieve the file with $file = $myPage->files->get("hash=".$sanitizer->selectorValue($input->get->hash)); $myPage->files->delete($file); $myPage->save(); In the actual implementation you should of course validate the request and also use POST instead of GET, but my point was to just demonstrate the usage of the hash.
    1 point
  43. Hey, Ehsan and I recently finished redesign of the website phototriennale.de. It's one of multiple ProcessWire sites I'm currently working on and I'm really happy it finally went online:
    1 point
  44. Hey Ryan. I came across this post looking for how to clear image cache. I wonder, did this "image cache clear" module ever come to light?
    1 point
  45. Hey Guys, The site isn't brand new, but runs for four months now. The client is a facility management & building-cleaning company from Hamburg, Germany. We had reworked the Corporate Design before we started the creation of the website. Quite modest colors characterize the website. Besides that, there is nothing really special about the site. ProcessWire 2.4 Responsive Layout a few "Cross-fields" (display data on different pages, but get it all from one central place to avoid redundant data like contact informations) Modules: Hanna Code Redirects (to keep the search engine ranking) Modules Manager ModestAdminTheme (my absolute favorite Admin theme) and most important: ProcessPreview by nico! Big thanks again for finalizing this nice module! This site will be constantly reworked and extended with smaller and bigger things. oellerking.de
    1 point
  46. Launched http://www.greggorrauto.com last week! Responsive Theme built with Bootstrap 3 and Processwire! Uses the bootstrap carousel for the slider, and the Affix.js to keep the right column on the inventory search page sticky on scroll. (If the screen is tall enough.) Also uses a modal style lightbox on the inventory detail page as well as animated scrolling to anchors. I know I used the Google maps marker module and the form templates processor module. Also using redirects and batcher. (Redirects for the sub menu items for the price ranges. It just sends the user to the search page with the correct query strings. The homepage slider is managed with the image field so I can drag and drop new slides up, but I didn't know how to manage both the caption and the link url using just the description field, and I did not know how to add another one, so I did a pipe delimited. ie. image caption|http://www.linkurl.com format is used in the image description field. If its easy to add a second box to separate those out, let me know! Also, let me know what you think!
    1 point
  47. destinations UNLIMITED This site is a conversion from an old Joomla site that is far better suited to processwire due to the 100s of facts and figures about the destinations. Many of the facts from each of the destinations help to form other content such as blurbs on the video content hopefully adding quality content for google to index. It's also got a growing number of features for registered users such as being able to add personal comments to destinations which collate into a personal notebook. Hope you enjoy having a look around. Although the site is now live, I don't think it will ever be finished! ..not to forget a thank you to everyone who has helped me with the project along the way!
    1 point
  48. I myself began with the Gutters explanation from the Pocketgrid documentation (allmost at the end), but I didn't get what I (and you) wanted. But this works fine for me: .block-group { margin: 0 0 0 -4px; } .block { padding: 0 0 0 4px; margin-top:20px;} Maybe there is an easier way but it helped me. Hope this helps you also.
    1 point
  49. Hi Ryan, I don't how complicated this would be, but I have a feature request. If a field using the Table Fieldtype is set to required, then have the first row of the field automatically visible. I just watched some of our interns test calendar entry using a "dates" table field. They got tripped up on the field being required, but no rows immediately visible. Most of them missed entering the field the first pass.
    1 point
  50. one of users asked me how to do counting comments with reply. for countuin comments with reply do next steps: open /wire/core/FieldtypeMulti.php file and find this change it to: then in this file add function: then in this file add function: to print result in your template file type this:
    1 point
×
×
  • Create New...