Leaderboard
Popular Content
Showing content with the highest reputation on 01/28/2014 in all areas
-
There are two ways First of all, each field has a description and these can be changed on a Template to template basis. Secondly, Soma has put together a very useful module that simply adds a help tab to templates if an associated help files is created. This would just be a file with notes for the template written out as html. Full instructions are with the module. http://modules.processwire.com/modules/template-notes/ I have used this a couple of times now and the clients really like it. Basically, I write the fuller instructions in the help file, including outside references if needed, like to their own company policy or the TinyMCE manual and also any notes about style or SEO considerations and so on. I then only use the description fields as very short reminders, if at all. The resulting forms are much cleaner and yet the client has lots of information at their disposal.4 points
-
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md#php You're welcome.3 points
-
Horst, thanks for that list of timezones–that's what I needed to get this going. Setting the time zone is now in the installer. Manfred62: the translation ability of the admin theme is now ready. It now pulls its translations from /wire/templates-admin/default.php (the old admin theme file) so that's the only file that needs to be translated. Meaning, existing translations should work, for the most part. The old admin theme has also been updated to better support the new jQuery UI version we've got in place. So those wanting to use the old admin theme with the new ProcessWire can continue doing so (like if you need IE8 support or something). The /wire/templates-admin/ directory and files are going to stick around as a place for shared admin theme assets for the purpose of translations and common includes (like debug.inc) or common JS files (like inputfields.js).3 points
-
No need to fake - better to play it straight. And there is no evidence anyone else is faking or not. Just supposition, which is not exactly accurate ERP may just be waiting to do a last minute rush, of course!3 points
-
Hi Tadashi, welcome to the forums! Have you seen this particular part of the documentation?3 points
-
I'm not aware of any issues between ProCache and the latest version of dev (or any version of dev). I'm using that combination on three sites here, though on mostly default ProCache settings. What are your ProCache settings, particularly under Behavior and Bypass? When you upgraded your site, what version was it running before? Did you replace the entire /wire/ directory (removing/renaming the old, rather than replacing into the existing /wire/)? Did you replace the /index.php and /.htaccess files with the new versions when doing the PW upgrade? Are you running any PHP opcode cache like APC or eAccelerator? If so, you may need to clear them. To clear an APC cache, you can call a function from PHP: apc_clear_cache();2 points
-
@Ryan: if you need a list with the names of possible timezones: TimeZoneListen.zip2 points
-
ProcessWire Concatenate Fieldtype Fieldtype that concatenates the values from one or more other fields at runtime. The value can contain additional formatting and/or words as needed, which you define in your Concat field settings. Example Problem: Your system has a first_name and last_name field, and you want to have a separate full_name field composed of first_name and last_name, without redundancy. Solution: You would create a new Concat field, click the details tab, and enter "first_name last_name" (the fields you want to concatenate) in the settings. Other Potential Uses Having a field that combines the value of two or more others, without the redundancy of separately stored data. Defining a custom “label field” for select boxes, like those used with the Page field. Defining a custom label for your Page List that includes your own formatting. Defining an alternate variation of a text field that uses a different text formatter. Considerations The value for this fieldtype is generated at runtime and thus no data is stored in the database. This is good because there is no duplication. However, it also means that you cannot directly query a Concat field from $pages->find(), for example. If you happen to change the name of a field being used in a Concat field, you will have to update the name in your Concat field settings as well. By design, Concat fields do not inherit the text formatters of the fields they concatenate. You define these separately with the Concat field. Because this is a runtime-generated field, there is no Inputfield associated with it. How to Install Install the module by placing FieldtypeConcat.module in /site/modules/. Check for new modules on the Modules screen in the ProcessWire admin. Click Install for the Concat Fieldtype. How to Create a Concat Field Under Setup and Fields create a new field using type Concat. After entering the new field name and label, click Save. Click the Details tab and enter one or more field names. Separate them with whatever spacing and punctuation is appropriate. Optionally choose one or more Text Formatters. If you are not sure which, “HTML Entity Encoder” is a good default to use. Save. Add your new field to one or more Templates. How to access the value of a Concat field This is no different than accessing the value of any other field. If your Concat field has the name “full_name” then you would output its value like this: echo $page->full_name; Download PW Modules Site: http://modules.proce...eldtype-concat/ GitHub: https://github.com/r...FieldtypeConcat1 point
-
Update 09.05.2014: new version of minimize.pw released. I've updated this post and you can read more here. ProcessImageMinimize A service and module to make images lightweight: minimize.pw Our new commercial service for ProcessWire: minimize.pw With minimize.pw, you can shrink your images (JPG and PNG) without noticeable visible differences up to 80%. This makes pages load faster and helps you to work with people not familiar with command line image compression. You can try it for free. Learn more Download the module Github Page Module features Hooks into any Pageimage with ->minimize() (short ->mz() ) Automatic compression with a 1-click-setup (new) Overwrites original files or keeps both versions (new) Image compression with minimize.pw Fail-safe mode so that your visitors won't notice any problems if we're offline or you have no volume left. Usage with templates First, download and install the module. You have to enter a license key. Get a free license key hereTo embed a minimized image into your web page, simply call the method mz() or minimize() on your Pageimage-object. Please note, that is has to be a single Pageimage. We also support apeisa Thumbnails module. $img = $page->image; $img->minimize(); Or put in context $img = $page->image; echo "<img alt='A minimized image' src='{$img->minimize()->url}'>"; You can also use it combined with other Pageimage methods: $image->size(300,400)->mz()->url; Read more at Github Pricing While the module is free, our service is fee-based. We have to pay for servers and traffic With this version we've dropped our year-based pricing structure and introduce a new volume-based pricing. Everyone gets 2000 images for free and you can buy additional volume anytime. Free: 1000 images once 5000 images / 19€ 15000 images / 39€ 50000 images / 89€ Buying more volume will also drop the site limit of three. Questions Feel free to ask any question you might have.1 point
-
Hi Alice, Welcome to PW and the forums! Not a direct answer to your question but can you please confirm you have had a read here? http://processwire.com/api/multi-language-support/1 point
-
Thanks for this Soma. I used it to easily install the Dev version of PW (just pointed it to PW on Github)...Worked like a charm..1 point
-
Once again on a tight schedule here, but first of all, I'd start with making sure what character sets are actually in use. If not UTF-8, you can convert data to it with relative ease, though it needs to be done once for database, then on table-by-table basis for existing tables. This is important to keep in mind, though: (Source of quote: http://dev.mysql.com/doc/refman/5.6/en/alter-table.html.) Hope this helps a bit. I'd be happy to take closer look at this at some point too, now I'll have to run1 point
-
Well you could do that by using render in your template: echo $referencedPage->render();1 point
-
Aaaah...I knew there was a catch...Yes, redirect will take you to another URL... There's various ways to get round that. 1. Use render()....I gotta run...I'll explain this later if someone else doesn't or you don't look it up first ;-) - render the whole page being referenced.. 2. $pages->get() [if only interested in a particular field in the page selected via the page reference... EDIT: In addition to the code example by Adrian below Examples in the wiki: http://wiki.processwire.com/index.php/Including_a_page_in_another_page Good to know: http://processwire.com/talk/topic/4367-using-page-renderoptions-and-template-cache/1 point
-
Hi PeterDK & welcome to the forums. When reading this, a question comes to my mind: Did you know ProcessWires built in Multi-Language-Support? Especially at first, how you can use Multi-Language-Urls and the Multi-Language-Fields? So, it may be you need to use the hirarchy like you have shown in your post, but I first want to ask if it could be a better solution to use the built in Multi-Language-Tools. If you need to go with your structure like shown above, you may use $session->redirect($url); in your home template. To redirect to nl/overzicht/ $session->redirect('/nl/overzicht/'); You can find these and many other at the CheatSheet. (You have to click 'advanced' at the top right to see more methods/properties) ------ EDIT: Generic url with redirect, like Kongondo has shown just a few seconds before my post, is a better solution! BTW: congrats to your 1.000 post Kongondo1 point
-
1 point
-
I have used Wordpress since it first came out, but it was years till I registered with their community. I think the two main places for interaction for many apps these days is Facebook and Twitter rather than their own forums. Really it would be nice to link the three together here so that just by visiting this forum, it also answers any twitter posts or Facebook posts while using the same interface. Likewise, any new post on here, plus answers, are put up as conversations on twitter and/or facebook (albeit in truncated form with links. That way people can choose the interface they want while centralising all the information.1 point
-
Curious, because they have only a total of 211 registered users in their community.1 point
-
Been doing my best to get the word out and get some votes in and managed to get a quite a few votes in today from whoever was willing to vote. But form what I see there doesn't seem to be much other action going on elsewhere. Calculating all the votes i gathered and counting it up, looks like hardly anyone has voted recently. I have to say looking at the votes for Ametys cms. They seem to be coming in like clockwork. Like a vote every 3-5 minutes while the other apps are locked in at around the same number of votes. Looks like they have brought in some secret weapon with their army.1 point
-
Adrian wrote a wonderfull module for that http://modules.processwire.com/modules/process-get-video-thumbs/ Side benefit: you can search pages with video's1 point
-
Working fine on Win7, Chrome. Just installed with the 'Futura' color scheme. This was actually the first time i bothered with changing the default admin theme, but i like it. Biggest shocker though is that the installation screens have also been updated; gone are the 'vintage' screens i've looked at so many times (but it's a good change)1 point
-
Really, really lovely website!! https://minimize.pw/1 point
-
Well if neither my module nor Martijn's are working, it makes me wonder what is going on with your server / configuration. There are lots of ways to do this with a regex. Here is an example from teppo: https://github.com/teppokoivula/TextformatterImageWrapper/blob/master/TextformatterImageWrapper.module that should get you going.1 point
-
No need to apologize. That module wasn't officially released because it hasn't really been tested in different scenarios, but it has been working just fine for me on a few sites, so I am curious why it's not working for you. Perhaps you will do better with Martijn's Image Interceptor. I know it might seem like overkill, but I have also used it and it works great, so long as you are happy using the image ALT field, rather than the images field description field, if that makes sense. Good luck.1 point
-
Oh right now I understand - sorry I didn't read through the posts above properly to see what Ryan's module does and that you were using it. That might well be the issue. I'd be curious if you could disable it for a moment to see if the image caption module works.1 point
-
If you are using my module, remember that it takes the description field from the images field, rather than the one that you get when inserting the image into the RTE, Do you have those descriptions filled out? I just pushed an update to the module. I have been using it on a few sites, but apparently forgot to push some recent fixes. Can you see if these changes make any difference?1 point
-
There are two PW modules (not available in the modules directory) that might be of use. They are both mentioned in this thread: http://processwire.com/talk/topic/1344-captions-for-images-in-tinymce/ One is by yours truly and is a PHP solution and another by teppo which used JS.1 point
-
Another approach is to do it with javascript. I like this method because it's just a progressive enhancement that uses the existing alt attributes (no duplication of text in the request). This is the method I used in the Foundation site profile, which takes the image "alt" attribute and expands it to a caption, like those seen on this page. Here's the JS that does it.1 point
-
And the classic PHP 101 by Vikram Vaswani. It's old, but still a gem...This is written in fun, easy-to-follow tongue-in-cheek style in 15 parts. Some is way advanced for mortals like myself and I'll probably never need to be that advanced. It's the best PHP tutorial I've seen anywhere. BTW: You''ll get 404s for some of the lessons but nothing that Google wasn't able to find...1 point
-
1 point
-
I always just copy the files, dump the DB, and import with phpmyadmin on the new server, then update /site/config.php to point to the server's DB. But if there's some suspicion about an incompatibility with the server, I'll try to install a blank/default-profile copy of ProcessWire just to make sure it works (and I'll delete it afterwards). Sometimes I have to do a recursive update of the permissions of /site/assets to make it writable, but rarely. I need to get this actually built into the TinyMCE module so that people don't even have to think about it. +1 on the todo list.1 point
-
This is the way to create template and fields with API: // new fieldgroup $fg = new Fieldgroup(); $fg->name = 'new-template'; $fg->add($this->fields->get('title')); // needed title field $fg->save(); // new template using the fieldgroup $t = new Template(); $t->name = 'new-template'; $t->fieldgroup = $fg; // add the fieldgroup $t->noChildren = 1; $t->save(); // add one more field, attributes depending on fieldtype $f = new Field(); // create new field object $f->type = $this->modules->get("FieldtypeFloat"); // get a field type $f->name = 'price'; $f->precision = 2; $f->label = 'Price of the product'; $f->save(); // save the field $fg->add($f); // add field to fieldgroup $fg->save(); // save fieldgroup All pretty much standard OO one can figure out looking at core and PW modules. But not someone unexperienced would figure out by themself. I think at some point we need to cover these in a documentation.1 point
-
You can assign fields to templates like this: $template = $templates->get("some_template"); $template->fields->add("newfield"); $template->fields->save(); this code is taken from here http://processwire.c...bles/templates/ So, just make an array with all the templates you want the field to be on, and go for it $ts = array("home", "basic-page", "search"); foreach($ts as $t){ $template = $templates->get($t); $template->fields->add("newfield"); $template->fields->save(); } EDIT: the field will be on the last position of each template1 point