-
Posts
2,086 -
Joined
-
Last visited
-
Days Won
51
Everything posted by wbmnfktr
-
how to change the default language in processwire cms
wbmnfktr replied to wish-fulfillment's topic in Getting Started
Maybe I don't really understand your problem here. The default language itself is english but as soon as you install a language pack to/into the default language it's (in your case) russian. Or french. Or finnish. From then on it's business as usual. Have you ever used ProcessWire before? What's the main issue you are facing right now? The overall functionality of ProcessWire maybe? My PWBRecipes profile has english as default, too. That won't help you. -
how to change the default language in processwire cms
wbmnfktr replied to wish-fulfillment's topic in Getting Started
I don't know any video you could watch which explains that ProcessWire setup in that detail. But as you are working on a fresh installation you don't have to anything. Almost. You can just add pages, add content in russian language and you are done. There might be some parts in the frontend which need translation and those can either be changed in the template itself or within the language (default language: /yourProcessWireAdmin/setup/languages/edit/?id=1010). Depending on how much experience you have with ProcessWire and what kind of page you want to build you SHOULD read what I linked to above. You may even want to read the tutorials on how to work with the whole setup. -
how to change the default language in processwire cms
wbmnfktr replied to wish-fulfillment's topic in Getting Started
Well... change the content in your pages, edit the template files (/site/templates/) if necessary and you are ready to go. You might want to take a closer look at this: https://processwire.com/docs/multi-language-support/ There you will find every detail you need and probably want to know. The most relevant parts are in your template files in the content pages itself. There is not much necessary here. Did you a fresh ProcessWire installation or are you updating an existing one? -
how to change the default language in processwire cms
wbmnfktr replied to wish-fulfillment's topic in Getting Started
At this point it's quite easy. First of all import the language pack. As you have already done I guess. Second to that change labels/titles. As you have done already as well. Third and last part log out and log in again. That performs kind of a reset in your session and cache. The ProcessWire interface should be in russian then. -
And... please don't get me wrong here. I'm the last one who is against a cool and exciting fun project. I just don't think this will really work out that well.
-
Like this PW Marketplace? I get the idea of a marketplace, like the ones from Envato and similar, but to be honest: No. There are already really nice community projects out there: PW Recipes, weekly.pw, modules.pw, isit.pw, PW Review and at least another I know about which isn't public yet. Most commercial modules have their place in the modules directory, themes marketplaces came and are gone now. My advice... just start and try. Fingers crossed! Btw. Patreon isn't the best option for things like that. Even PayPal has better conditions. ?
-
Ok, thought it's something a module shows you or something like that. As @dragan already said your site is actually quite fast. There could be done something with image-loading but that's it.
-
What is generation time?
-
Never really thought about that detail but in terms of naming... Clone = I'd expect the same created/modified dates Copy = I wouldn't be shocked if those dates would be different An option in the module settings to change the behaviour could be nice - at least in your case. I can't really remember a situation in which I used those date. I almost always rely on additional date fields.
-
CKEditor custom styles work in frontend editor not backend
wbmnfktr replied to JayGee's topic in General Support
Had this happen quite often in previous versions of ProcessWire. With 3.0.123 (I guess - maybe even earlier) it worked right from the start. In those prior versions I worked out a trick somehow. Therefore I created another textarea field, added it to the template, changed the field's settings to use the same myStyles.js and all of a sudden it worked. In some cases using another browser or private window, resetting the whole cache and cookies worked as well. And sometimes I just tinkered within the wrong fields, didn't save my files or was on a wrong instance. -
Best way of converting file paths to relative urls?
wbmnfktr replied to bernhard's topic in General Support
Sounded good at first but ok... you worked it out in another way- -
Best way of converting file paths to relative urls?
wbmnfktr replied to bernhard's topic in General Support
Can't test right now but does that help? returnRelative (bool) Make returned array have filenames relative to given start $path? (default=false) https://processwire.com/api/ref/wire-file-tools/find/ -
Best way of converting file paths to relative urls?
wbmnfktr replied to bernhard's topic in General Support
Ok... never dealt with that actually. -
Best way of converting file paths to relative urls?
wbmnfktr replied to bernhard's topic in General Support
In terms of frontend stuff I always use /site/templates/styles/myCSSfile.css or as I use ProCache most of the time mySCSSfile.scss. Never had the need to make it dynamic as the folder is always the at the same place. In modules it might be different but as my modules are more or less quite basic and without CSS never had to deal with it there. -
Is this even a viable way to go about this?
wbmnfktr replied to louisstephens's topic in API & Templates
I challenged myself for something similar in the past but ended that due to my lack of knowledge in JS/AJAX handling. The thing I mentioned before was done with Angular JS - and a third-party developer involved to do that magic - and I re-created the JSON he needed in PW-page/queries. If it's ok I will dig through to my archives the following weekend and look for the templates/JSON I created for that project. It will not be perfect for your things but maybe it gives you an idea somehow. -
Ok... I get it. Well... sessions are sometimes a thing on its own. In some settings my sessions live forever and sometimes they expire right away.
-
Is this even a viable way to go about this?
wbmnfktr replied to louisstephens's topic in API & Templates
Same here... I just did my own thing then and created a template for that where I did what I wanted to create. I build the whole JSON based on the things I needed and it worked out quite well. It was easy to cache as well which was a benefit back at that time. I neither worked with sub-pages, nor AJAX but with a repeater field that contained a page reference (Occupation - in your case) and a text field (for more details about that if needed). Therefore I had everything in my object (a product in my case) and could iterate over every item (product) I defined by an URL. It looked similar to this: domain.tld/api/{object}/{identifier} or domain.tld/api/product/9876 Maybe I have still access to some of the files and post some snippets here. Just in case... what will be the result of this whole setup. Just to get in the right context. -
What did you do in/with your hooks to mess with ProcessWire sessions?
-
Wow... that's way more text than you see on most Squarespace pages. ?
-
There is an example in the _main.php of the Multilanguage Site Profile. You can see it here: https://github.com/processwire/processwire/blob/master/site-languages/templates/_main.php#L65
-
That could become a problem then. You should add it as a requirement to the module nonetheless. ? Not needed when everything was set up correctly with this things in mind. You know about that and do the necessary things. I'm relatively new to this setup and had to work through this. Now I know too. It is. Actually it could make other things easier when debugging. As I see some weird strings instead of domain(.tld) now I don't falsely think of domain names and such things. I know right away it's something different and where it comes from.
-
An additional sitenote here: Changing the root name to something different than the domain is not enough. If that page name appears anywhere else at the end of an URL the hiccup is back. root = abelt Problematic page URL = /about-abelt/ Problematic page URL = /about/abelt/ Working page URL = /about-abelt-whatever/ As to make sure I don't run into any issues with this I changed my root page names to something a cat would write while walking over the keyboard. An additional sitenote here: Changing the root name to something different than the domain is not enough. If that page name appears anywhere else at the end of an URL the hiccup is back. root = abelt Problematic page URL = /about-abelt/ Problematic page URL = /about/abelt/ Working page URL = /about-abelt-whatever/ As to make sure I don't run into any issues with this I changed my root page names to something a cat would write while walking over the keyboard.
-
Keep an eye on that file. It will save you lots of time knowing about it. Believe me. ?
-
That did the trick perfectly! Changing root and the page names fixed it. Didn't really get that the page's name doesn't have to be the domain actually.
-
It works aside from that redirect issue so... I guess I will survive. ? PW 3.0.130, Multisite Module from Github (says 0.1.2), 3 domains, 2 languages on Linux (Ubuntu), Apache 2.4, PHP 7.2 Page tree: config.php $config->MultisiteDomains = array( "abelt.test" => array( // domain name is used to map to root page "root" => "abelt.test", // page name for the root page "http404" => 1031 ), "alexander-abelt.test" => array( // funktioniert nicht mit /en/ auf Home "root" => "alexander-abelt.test", "http404" => 1029 ), "kettenburg14.test" => array( "root" => "kettenburg14.test", "http404" => 1030 ) ); $config->httpHosts = array('abelt.test', 'alexander-abelt.test', 'kettenburg14.test'); // $config->httpHosts = array_keys($config->MultisiteDomains);