Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 10/26/2016 in all areas

  1. 8 points
    Hey guys, Just launched a new project called Fabricius: fabriciusstrasse31.de Fabricius is a new building thats being built in Hamburg (Germany), that offers modern living comfort in a green environment. I developed the whole brand strategy and visual identity for the website and some printing materials. The logo mark is derived from the silhouette of the building, which is surrounded by trees (circular shapes) and green areas. More details here The website is build with PW 3.0 and uses Modules like Map Marker, Pages2PDF (to generate the apartment exposes) and MarkupSrcSet. Thanks for the awesome support here and the development of PW and the modules!!
  2. 5 points
    You can set the classes to be used for left, center and right alignment in the configuration settings of ProcessPageEditImageSelect.
  3. 3 points
    This appears to be an error in the translation: https://github.com/underk/pw_french/blob/9f8da2b0dff6df62f13410486a9244af5deaf71c/wire--modules--process--processmodule--processmodule-module.json#L99. There's a more up-to-date French translation available from here: http://modules.processwire.com/modules/french-language-pack/.
  4. 3 points
    You could also use a hook. $this->addHookAfter('ProcessPageEdit::execute', function(HookEvent $event) { // Get page being editted $page = $event->object->getPage(); // Only use on pages with the product template if ($page->template != 'product') return; // Set the title & you also have access to all $page fields $title = "New title"; // Overwrite the processBrowserTitle $this->wire('processBrowserTitle', $title); }
  5. 1 point
    I needed to create some Fields and Templates via API and it was always a pain to get the right settings (like columwith, field context settings and so on). With the brand new (and ALPHA) RockSVN Module you can create your fields via the backend and then show a diff of your changes. Please see the comments on top of the module for todos and limitations. I'm not totally happy with the diff tool, so if anybody knows a better one or knows ho to change the behaviour to line-based diff (that would be better in this case i guess) feel free to comment. As @ryan is using the same diff tool in ProDrafts i guess there's not too much hope... anyway - i think the module can be a big timesaver and also help you to keep track of changes - an often requested feature and maybe also a good companion for @LostKobrakai s Migrations module! (Benjamin, jump in ) The module will create some Fields, Templates and Pages for you. All properly tagged and hidden, so it should not mess up things more than needed. Caution: Currently the module removes all those pages, templates and fields on uninstall! Requires my new basemodule called RockTools RockSVN.zip
  6. 1 point
    Making a minimalist site with Processwire is pure pleasure. Here is one for my photography. http://www.mikael.siirila.net/ Enjoy
  7. 1 point
    @Zahari Majini It appears to be the same issue as reported here. For now, you can work around it by changing the settings for your repeater matrix to the following... Not the most satisfactory of results. Note, doesn't work well enough if you simply switch the Ajax option to off as the picker appears on all the fields as soon as you open the owning entry.
  8. 1 point
    Anyone looking for some contract work? I have a few projects that I need help with. I have 8 upcoming projects (PW dev only) that need to be implemented. I would do all design and HTML/CSS. most of these are small to mid size sites with 5-10 templates. I would love to work with someone that wants to do a bunch of on-going contract work. I always have work . I am looking for someone that can write PW modules, is familiar with the PW way of doing things – and is completely happy with that. I have an existing project - PW site that I need some expert help on with the following features: tracking users actions & information on the site - saving to user profile. some FormBuilder integrations User favorites and recently viewed. adding some google charts to the admin backend - like a dashboard for some of the information we are collecting. making the admin/data easier to use for the clients. (organizational. I don't want to change PW at all) If you PM me, I can show you the site. I just don't want this forum post to get indexed by google if I put the URL or name.
  9. 1 point
    Welcome to the forums kasu64, and I hope you enjoy processwire. Just by looking at the screenshot, it looks like you misspelled "modules". http://modules.processwire.com/
  10. 1 point
    you have a point here. Its still possible to read it thought. On smaller screen sizes I may have to hide those elements.
  11. 1 point
    Very nice site indeed. My only issue is with regards to the floating blocks - they float over the text, which means I have to scroll very specifically for the block to move past the text, but not so much that the text scrolls out of view. This would be less prominent on a 1080p screen, but more prominent on a common 1366x768 screen. Other that that, it's very well composed and designed.
  12. 1 point
    "To master git, one has to live many lives" – Confucius Is indeed very hard to understand it beyond the basics. I sure don't. One good resource that I can recommend is this course by Jeffrey Way on his Laracasts: https://laracasts.com/series/git-me-some-version-control He is an excellent teacher, I can't recommend him enough. Take a look at all courses there, you won't regret.
  13. 1 point
    On GitHub: https://github.com/rolandtoth/PageimageRemoveVariations On Modules directory: http://modules.processwire.com/modules/pageimage-remove-variations/
  14. 1 point
    Hi SamC, Processwire does not create a CSS cache. This is done by your browser and/or the server (in this case, Dropbox). The technique you used to see the new file, by appending a query string in the filename, in this case "?a=1", is one of the things that trigger an instruction in the browser to make it download the file again. You can read more about this in this post https://css-tricks.com/strategies-for-cache-busting-css/ And regarding keeping the site copies in sync between your computers, although Dropbox works, it's not a good practice because you can't track changes on the files and risk losing some of the work done in eventually sync error. It is recommended that you use a version control system for this. Best, Sergio
  15. 1 point
    Your "controllers" aka regular ProcessWire templates are always in "site/templates", you can't customize this path. However, with this setting, you tell the module where your twig templates are, e.g. "views" in your case. Since you use twig, check out the template inheritance support from Twig, where you define a "global" template and other children-templates inherit stuff from it. If you enable this setting, you always have the same twig template behind the $view API variable. You either need to write this in an autoload module or attach the hook in your site/ready.php file. Learn more about hooks here: http://processwire.com/api/hooks/ Cheers
  16. 1 point
    @Michael van Laar, you could use a hook to set the value of the Page field after a new article page is added. In /site/ready.php: $this->pages->addHookAfter('added', function($event) { $page = $event->arguments('page'); if($page->template->name != 'article') return; // your logic here to find the right author ID $page->setAndSave('author', $my_author_id); });
  17. 1 point
    I think this is what you're looking for:
  18. 1 point
    The pages views IMHO aren't really in a critical range if you have halfway decent hardware, though if you're really trying to squeeze milliseconds out of the system and be prepared for spikes in page hits, a (carefully tuned) redis approach might be the best option. As an intermediate solution, you may also consider storing hits in a (non-pw-field) InnoDB table (entry id with auto increment, page_id, timestamp, plus arbitrary non-key columns) to avoid file level locks and repeated seek()s to the end of a potentially large log file. I'm using the InnoDB approach for our intranet with > 50.000 page views / day. In a nightly cron job, I switch the stats table for a new one (create table stats_new like stats; rename table stats to stats_[timestamp], stats_new to stats) and process the data from the then idle table.
  19. 1 point
    I can't spot anything wrong, but try to re-upload the file to the live site and make sure that there is no linefeed conversion active. Also, you should probably remove the closing php tag (?>), as it might simply be an issue of trailing (and perhaps even invisible) characters after that tag.
  20. 1 point
    It looks like the pages have to be published in order for Get function to work. The page option "Hidden : Excluded from Lists and Searches" is a little misleading as I had that option unchecked and I assumed it would be searched. Perhaps "Unpublished : Not visible on site" should be more elaborate and include "Excluded from searches (and lists????)"
  21. 1 point
    Hi, perhaps Latte is not the best choice for beginners in PW but I guess you have some programming background judging from your questions 1. You can use ready.php for example for such purposes (or init.php, _init.php, perhaps _main.php). Or you can add two blocks to the layout, one for the site header and one for the logged in user. You can leave the block you don't need empty and it won't be rendered. I sometimes use PHP logic in my view files but it's rather because my lazyness 2. Well you do your logic in {template}.php and set variables to output in {template}.latte. You can use another .latte file in {template}.php, so eg. you can include login.latte or register.latte if you need that. You can even render a chunk in the php (controller) file to a variable and use in the final view file. 3. Could you provide more details? I've done all my PW multilanguage sites with Latte and haven't encountered such an error. I think Latte is just as good as Twig or others, maybe a bit more forgivable in some cases. So I think the question for you is perhaps to use a template engine or not.
  22. 1 point
    Hi @Michael van Laar For selectable pages in your page field, try the "Custom PHP code to find selectable pages" option... return $pages->find("parent=/blog/, author={$this->user->name}");
  23. 1 point
    Your true is probably being converted to an integer 1. The second parameter of json_encode is $options and it expects an integer representing a Bitmask of JSON constants.
  24. 1 point
    Can it help in this case? 500 is an internal server error (provided it is what we are talking about) if I'm not mistaken , so it is probably a server setup issue I suppose, in which case I would start troubleshooting by looking at the Apache log file. However, I have never used this script so I might be easily mistaken.
  25. 1 point
    Cool! That immediately comes to mind is some wild wishes: add a generation script @LostKobrakai's Migrations and we got a nice GUI-based migrations for PW; add comparison to remote installation. Big thanks!
  26. 1 point
    Hi Wanze, Thank you for the answer, if it can help someone I just put this at the end of my "main.html.twig" file: {# FileCompiler=0 #} Cheers!
  27. 1 point
    I'm not entirely sure I know how to answer all your questions here because it sounds like you may trying to do things with InputfieldFile is may not necessarily be designed for. If that's the case, you may be better off extending it as a new PHP class, or copying its code to new module, rather than trying to achieve these all with hooks. Another thing I'm not sure about is whether you are talking about a front-end or back-end context. If dealing with a front-end context, the ajax uploading will not work. In some cases you may have to disable it on back-end use too (see the commented line below for how to do that). InputfieldFile is really meant to be used in combination with FieldtypeFile and within the page editor. But it is possible to use it outside of that context. Though you will still need to supply it a Page object so it has a known storage location, but the given Page doesn't need to have a files field. Meaning, it can be any Page, even an admin one. Here's an example of how you might use InputfieldFile on it's own: // page the file will be stored with (doesn't have to have a files field) $myPage = $pages->get('/path/to/your/page/'); // optionally set the name of existing file(s) that will be present (or leave it blank) $myFiles = array( $myPage->filesManager->path . 'myfile.txt' ); // file extensions you allow $myExts = 'pdf csv txt'; // -------------------------------------------- // create the form $form = wire('modules')->get('InputfieldForm'); // create the files field $f = wire('modules')->get('InputfieldFile'); $f->name = 'my_files'; $f->label = 'My Files'; $f->extensions = $myExts; $f->overwrite = true; // $f->noAjax = true; // uncomment if necessary $pagefiles = new Pagefiles($myPage); foreach($myFiles as $filename) { $pagefile = new Pagefile($pagefiles, $filename); $pagefiles->add($pagefile); } $f->attr('value', $pagefiles); $form->add($f); // add a submit button $f = wire('modules')->get('InputfieldSubmit'); $f->attr('name', 'submit_form'); $form->add($f); // ------------------------------------------- // process the form if(wire('input')->post('submit_form')) { $form->processInput(wire('input')->post); $pagefiles = $form->get('my_files')->value; foreach($pagefiles as $pagefile) { echo "<p>Your file: $pagefile->url</p>"; } }
  28. 1 point
    Hi, Alex. I think that the following code should work: $found = $pages->find('myrepeater.summary*=hello'); Maybe you should try this: $found = $pages->find('myrepeater.summary*=hello, include=all'); But then it doesnt check access rights and published/unpublished state of your pages. Maybe you should post your code here so others can see it.
×
×
  • Create New...