-
Posts
4,077 -
Joined
-
Last visited
-
Days Won
87
Everything posted by horst
-
tested with PW 2.3.14 Default-Install on Win7 FF26: doesn't work with all fields. it works with the title-, headline- and summary-field but doesn't with the body-field (TinyMCE)!
-
@Ryan: if you need a list with the names of possible timezones: TimeZoneListen.zip
-
Possible solution with the built in Multi-Language-Tools: You are able to create a structure like that: set nl as your default language, create one tree with your page structure: root (doesn't have content or a language but redirects to the first child, if no language is set in cookies, browser or else, to default language nl)overzicht page20 Page40 For all other languages (de, fr, en, etc.) you can fill and edit the content on the same pages in the backend with Multi-Language-Fields. You need to put a language switcher onto your page / into your menu and you are done.
-
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 Kongondo
-
Curious, because they have only a total of 211 registered users in their community.
- 191 replies
-
- 1
-
- bitnami
- installation
-
(and 2 more)
Tagged with:
-
On WNYC I have found an interesting podcast archive called "New Sounds" with very different 'none mainstream' music in it. I came across this when research on my own name , - they use a picture that I have shot: O Berimbau --- all podcasts, Rythms of Minimalism, Piano Grooves, The New Latin Tinge, Acoustic World Music, & more podcasts
-
Tested and works superb (Win7 FF26) Only one thing is annoying with images-fields: when it is switched to grid-display for easier sorting in larger lists, it always opens the original image after dropping a thumbnail. But I don't want view the originals, I want to arrange the images. Any chance to avoid opening when in sorting- / grid- mode?
-
Agree with Adrian, Manfred,Teppo, Martijn + really like:
-
Ah, ok. You may also try to create a simple php script somewhere outside of pw with this content: <?php header("location: http://www.your-site.com/page-url-with-mail-script/"); or with this one: <?php file_get_contents("http://www.your-site.com/page-url-with-mail-script/"); and call that with your cronjob.
-
Maybe you can configure your cronjob to fetch the url via wget like: wget --quiet --no-cache -O - http://www.your-site.com/page-url-with-mail-script/ > /dev/null This way you don't need to change any code, only your cronjob. (https://www.google.de/search?q=site:processwire.com/talk+ryan+wget+cron+null)
-
Hi interrobang, I cannot really follow what you are try to do - or I cannot find the specs for that the option can be a template filename: https://github.com/ryancramerdesign/ProcessWire/blob/dev/wire/modules/PageRender.module#L244 http://cheatsheet.processwire.com/ $page->render() also doesn't show anything, but it could be that there is missing newer stuff because ist seems to stick with the 2.3 stable. From where do you get that with the template filename?
-
I actually have build a site that is hosted by Hetzner in Germany and they have the badest setup for shared server that I ever have seen. PHP is only running as fcgi, not as apache module and the MySQL Server is not reachable via localhost but is on a different machine / IP. (so every request to the DB needs to use DNS-System too. I have the same site running for development at http://all-inkl.com - There it is running much much times faster! So, the owner will change to all-inkl now.
-
Your code seem not to make any sense. 1) Please can you explain to me what the variable $image in the first line should hold. (and what it actually holds) 2) and what do you want to do with a loop in the second line? (and where does $images come from?) You should go step by step. FIrst you should inspect the first line of code. If this does what you expect / want, go on with the next step. And really, you should _read_ the doc kongondo has you pointed to, once or twice more.
-
@pwired: if you really cannot use the drag-drop upload in the backend, you may use your own ftp upload, separated from the /site/assets/files/ folders. Something like this: - myImageUpload - site - wire With your uploadfolder you have to create subdirectories with the id of the pages / folders where the images should belong to. After successfull ftp-uploaded some images you can manually run an importerscript that scanns your uploadfolder and import the images via api. Also this script should delete the images (and folders?) in the uploaddirectory after import into PW. This way you will not have any drawbacks or side effects with the DB-(meta)data or sanitizing of the imagefilenames etc.
-
.htaccess Causing a 403 Forbidden Error in Sub/Add-On Domains
horst replied to 4ldesigns's topic in Getting Started
I must say I cannot really follow what you have setup, but If you have to do a redirect for a whole site / domain, I'm pretty sure you cannot do it _after_ all PW-instructions in the htaccess. Instead you need to put it at first and the PW-stuff after it. BTW: to say "This does not work" is less helpfull for people who want try to help. For example: a detailed description of what you get when requesting a URL that should redirected would be much better.- 11 replies
-
As far as I have noticed with my projects there are no problems with that. I store the choosen language in session and at the beginning of a respond in (head.inc or _init.php or something that like) I do a language check. So this is called with all requests, regardless of GET, POST, AJAX or whatever. It is no difference. EDIT: And regardless if you store it with a session or not, the urls you call in your ajax request will point (or should point) to the urls of the actually choosen language variation: if en is default your url could be "/parentpage/subpage/" and if you have a language de it would/should be "/de/parentpage/subpage/". Only the homepage "/" is different, that's why I use session and language checking.
-
.htaccess Causing a 403 Forbidden Error in Sub/Add-On Domains
horst replied to 4ldesigns's topic in Getting Started
have you tried to set it to the top of the htaccess file?- 11 replies
-
Ok, I think you 1) need to build fields for all the properties a object can have, 2) build a template and add all the fields to it and 3) than you create a root-page in the pagetree for the parent that may contain children. The children will be one page for one object. Whereas the first three steps can be done manually, the import of the objects should be done by a importer script. If you also can use a CSV-file, you can find a module for the import: http://mods.pw/j If you cannot, it's also easy to write your own individual importer-script. Please ask if you need further assistance. It would be good if you have a unique property for each object with your import-data.
-
If I understand right, you have created an export-xml from all (content-)objects of a local version of your site?, - now you want to import it with the live-site? Does this export-file comes from a PW-Site or something other?
-
I'm not sure, but maybe this can help? http://processwire.com/talk/topic/58-any-pointers-on-creating-a-mobile-version-of-a-site/
-
Hi Mats, this is a comprehensive and well organized, good looking Site. Good work!
-
Hi, Soma has said in the old thread somewhere that it would be nice to have a sortable table so that everyone can choose his/her fovourite sorting-column. And with the relation, or should it be better called weigthen?, it is a bit like with Pete is Nr 1 (id): I prefer it, so it is the initial used sorting But the jquery-datatables uses cookies to store your last settings. I have set it to 48 hours. And that, (trying out datatables), was the intention to set this up.
-
Hi and a happy new year, I have found some old code from here and have put it together with the jquery datatables. The result is uploaded here: http://ranking.pw.nogajski.de/ Cheers
- 10 replies
-
- 12
-
@ryan: thanks for the support via PM. I haven't done any further work on that because I'm on vacation and only sometimes online via mobile. @ryan: thanks for the support via PM. I haven't done any further work on that because I'm on vacation and only sometimes online via mobile.
-
Hi Ryan, thanks for the reply. PW reads them in by the filesystem and that seams to use the created or lastmodified timestamp. When I start uploading 5 images with names 001.jpg - 005.jpg together per AJAX (or a ZIP with the same 5 images) as the result the sort order is uncontrolled. Some small images first and all together very un-ordered. Both upload variations, AJAX and ZIP, are actually not very customer friendly if she has the need to use the images name as sort order. If the PHP-UNZIP will be implemented that it allows a controlled unzip and pw-import file by file, it would be helpfull for that. Alternative: a (optionally) configurable sortorder (by name or unsorted/by time) for imagefields would be nice.
- 2 replies
-
- 1
-
- zipupload
- imagesfield
-
(and 1 more)
Tagged with: