Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by Philipp

  1. Depending on your server, you can configure the whole /site/assets/files path to be accessible from a subdomain like files.example.com. Then you make sure that the image url you output matches this subdomain. This might be a small performance boost if the subdomain doesn't use a cookie.The AllInOneMinify modules uses such an option for example.

    If you want to move them all to a different server/directory you would need to create our own custom FileHandler. PW doesn't have someting like the FileAbstractionLayer from Typo3.

    • Like 1
  2. You can do Option 1 but use symlinks (I think it's symlinks?) to only ever have one /core/ folder. I'm not sure, but you may even be able to do something with modules that you always want to have available in the /site/ folder too, but it's too early in the morning for my brain to be able to work out the mechanics of it :) Needless to say there will be some way of having their own assets folder but just one copy of everything else.

    The symlink options works fine. You just have to understand and configure your permissions accordingly. This is how lightning.pw works (We have a /wire/ folder for every PW version and a /site/ folder for every customer install). You can put modules in there too.

    • Like 2
  3. It would be possible to add such a function with a custom module. It hooks after the Upload and then hands over the files to the shell. Disregarding any security concerns from the shell_exec which you should be avoided.

    You could try LazyCron (part of ProcessWire) for longer tasks in the background or use normal Cronjob to perform those tasks. There is cron.pw which is super cool to run functions regulary.

    Another idea, avoiding the shell_exec: A module that writes the files into a queue (database or file or directory) and then a Cronjob runs your programm that will search for jobs in this queue.

    EDIT: As we're here in the Wishlist section of the forum: I disagree to put something like this into the core of ProcessWire. Beside security concerns, this can be easily solved with the methods described above.

    • Like 1
  4. What error odes come up? Has the image changed? Server configuration?

    Make sure that the error is not something on the client side (e.g. AdBlock blocking, firewal, Browsercache).

    From the ProcessWire perspective, you might want to manually delete the cache (/site/assets/cache) and remove all variations of this image. To do this, go to the folder of the image (under /site/assets/files/<pageid>/, just look at the URL of the image to get the ID) and then remove all files from this image (e.g. image.jpg, image.100x0.jpg image.940x627.jpg,...).

  5. The length for the field "pass" is 128. You can change this, by going to Setup->Fields, then click on the Filters and activate "Show Built-In fields". Now you should see the field pass. The length of the field can be changed under "Input".

    I agree with you that this limit might be set higher because it makes no sense to limit the password.

    • Like 2
  6. We always store this in some hidden pages and then select a Page field to include them in templates. This worked so far even with hundres of entries to choose from.

    In more detail, I create a template called item only with a title field and then just order them. The Page field then get the right parent as a target.

    If you really have 30k entries, you might want to build a module that uses the DB directly I think.

  7. You could run the Textformatter manually by following somas reply here. Build a normal image string and pass it to the formatter.

    I think it would be a great idea, to make this to a module that would extend the PageImage. Using the same configuration, it could provide an easy way to generate markup. On my own sites, I just have another function in my functions.php taht basically does the same stuff when you pass an image.

  8. Oh I was the north of London last weekend. They had a good laugh about Croydon. But my company is here and they pay for my appartment so I can't complain ;)

    Any good tips on what to do in London beside the tourist stuff?

  9. An not really. My first impression was, that everyone is more polite than in Germany. Now it has normalized but I still like it here.

    Most people are nice but that does not has to speak for the millions that are around here.

    FYI, here in Croydon is a larger tech start-up scene. Every week there is something you can attend. Look for the Croydon TechCity and the CroydonCreativ.es at Matthews Yard . In the city itself are hundres of other interessting things of course.

  10. Ok good to know. How can I improve it? What would you like to see? Less ads? which ones specifically are distracting? Should the in-post ad be removed? What can I work on with twitter? Less repeating and more personalized tweets?

    I'm good with feedback, it's critical

    The most annoying one is the in-post ad. Because it make the lines less readable. I'm fine with the larger ones on the right side.

  11. The text ist comming from the label "login_submit" of the login button.

    I'm not sure how you customized this, so you might either want to remove the label on the template or better, hide it with a custom CSS rule.


    This CSS rule should hide the label:

    .Inputfield_login_submit label {display:none;}
    • Like 2
  12. I meet a nice group of designers and developers yesterday and some of the mentioned a CMS called Perch. Interested, I’ve looked at their page. A nice and small CMS. Really great introduction and nice copy writing but it didn’t convince me to switch away from ProcessWire J

    Meanwhile, I’ve found a table that compares their two versions (“normal” and runway).  I added ProcessWire to this comparions in my break, that’s what I got:


    We can really keep up with most of the features. I  even think ProcessWire has a wider range of possibilities and scales as easy as them. But maybe we can try to improve the areas, where Perch “would have won” like the CDN/S3 Layer and the Draft,Undo etc. features.  I think those features are not something like pre-defined fields and tables but more something that would really improve ProcessWire as a tool for developers and designers.

    Maybe we can have a look at popular features on other systems (beside the large ones like WordPress) and try to find a solution on how to do this in ProcessWire. Not adding it to the core, but maybe provide it as modules and/or guidelines.

    EDIT: Maybe I should mention, that a Dashboard-Widget would be really low-priority ;)

    • Like 5
  13. While it is called t emplate file, I think it can contain some kind of logic. Some people here are using a MVC approach, where the template.php fetches and processes data, then compiles it into a template and renders the view.

    But I kind of like the idea of a instant/live changing of possible input selections rather than pre-filtering them after page load.

    • Like 1
  14. Hanna just converts snippets(Hanna code) inside a textarea into predefined HTML. This allows content editors to use more complex structures without learning/writing the whole code. Output is only stripped if you choose (another) Textformatter to do this ;)

    Where exactly do you want your AdSende code to appear? I'm not sure but as Raymond said, find the right place inside your template file and paste the code.

    If you want to have it inbetween content (e.g. article with a banner inside) you could use the HannaTextformatter to replace a pre-defined tag (e.g. [[ad]]) with the right Google AdSende code for an ad. This is done in the Hanna Settings window where you define your Hanna Code.

    (On a side note, while not all modules are marked for 2.5, they usually work fine. Just install it)

  15. Don't call it pages, call it content type.

    While ProcessWire is using the name or label "Pages", it can be basically everything. A user is a page, the whole admin area consist just of pages and you could create your own content types. What you mentioned is basically there. Use templates for your content types, link them with the Page (PageSelect) field and then you can cross-access values in the tempalte files.

    Quick Example:

    Create a template for product, add the needed fields.

    Create "Products" by creating new pages with that template.

    Now create a field with of the "Page" type and call it product. This allows you to link pages. Set it to "Single item" and add it to your desired "Page"-Template.

    Now you can select your product on the other "Page" and access it via API with $page->product->title

    • Like 7
  16. Shouldn't this be possible with the Page field using a customer selector? Beside choosing a parent, you canenter your own PHP code to select pages that are shown.

    The only problem is, that the fields aren't saved when you might need to make the right selection. In this case you would need something custom that make the decision with a background AJAX call or something.

    I'm not sure how flexible this has to be, but you could also create different fields for each delivery method and only display them (Required-if option...).


    I focus more on the background PW admin, owzim has a solution for the frontend.

    • Like 1
  • Create New...