-
Posts
4,077 -
Joined
-
Last visited
-
Days Won
87
Everything posted by horst
-
How can I change the Children-Tab in PageEditor to directly load the children, and not via Ajax, after clicking the tab label? I have a special need, where I have to remove all other tabs, only leaving the Children Tab visible. Normally, you have Content Tab displayed first, when opening a page in PageEditor. Then, when clicking the Children Tab, the children tree loads via Ajax. I need to change the behavior from within a hook in ready.php. Any hints are much appreciated. ?
-
ProcessWire ApiGen (dynamic + up to date + all branches)
horst replied to kongondo's topic in API & Templates
@netcarver, for me, the latest dev-branch is working, but all other are 404. http://kongondo.github.io/ProcessWireAPIGen/pw3dev/index.html EDIT: Uhm? Why I'm answereing this? - Believe me, before my answer, I couldn't see Adrians and your further posts. Something like a "One Hour Time Delay" with my internet connection? ? ? -
That would be perfect! ??
-
Hi @Alessio Dal Bianco, I saw that the LangPack last was updated in October 2016 in the modules section. Do you also have a newer one, supporting PW 3.0.+ ?
-
I'm too.
-
@ridgedale It is not that problematic if you use one of the modules that support maintenance mode. I would suggest to install a maintenance or page-protection module into all of your sites. And a module for easy cache flushing? (https://github.com/somatonic/ClearCacheAdmin) Then FTP-Upload the new wire folder to something like "wire.new". Backup all your site databases! Login into every site and enable maintenance mode. FTP-Rename wire to wire.old and wire.new to wire. Repeat for every site: a) reload page, b) use the ClearCacheAdmin and c) additionally clear the "modules-cache". See that every thing is running fine and disable maintenance mode. ?
-
@bernhard Using "droplets" seems to be very ugly and may lead into loosing control and render your PS unusable. If you really want to use PS on the serverside, you should use one of the PS scripting interfaces, depending on your platform: apple-script or VB-script, or you go with *.JSX. Oh wait, now after thinking of it a minute more, I think it isn't doable at all, as you ever only can run ONE instance of PS, not multiple. How do you want to handle multiple parallel requests? Waiting Queue? Also, if you opt for server side, I think this can be done with imagick or other CLI image libraries much faster.
-
wireshell - an extendable ProcessWire command line interface
horst replied to marcus's topic in API & Templates
Thanks for the clarification, now I know that I haven't overseen something. ? But wouldn't it be better to have an alias for the lates-dev version, something like: $ wireshell upgrade --latestdev Otherwise I have to look up every time, (sometimes multiple times a week), for the latest dev sha-key and copy paste it into my CLI. For example: As you can see, only one hour later than your post, the sha key to the latest dev has changed to: 637f81579e121af8ab4c4a12e21227b36ae0cd8a -
wireshell - an extendable ProcessWire command line interface
horst replied to marcus's topic in API & Templates
@justb3a or @marcus, maybe a dump question, but when I want to upgrade an existing wire core installation with the latest dev-version, do I need to pass a sha-key to the command? -
How is your multisite organized: One wire folder and multiple site folders? Or multiple wire and multiple site folders? Does every site has its own DB, or do they share one DB? What do you want to update, the sites or the wire folder(s)?
-
Bug or expected behaviour? Template & page same name?
horst replied to simonsays's topic in General Support
The one and only field in PW that is (really) required for every single item is a "name". The name must be unique! This is intended. ? -
Surely you are right. My explanation lacks correctness, as I implied a string conversion, derived from the example pwaddict has given. Thanks for chimimg in and corecct this. ?
-
it depends on the context. If OutputFormatting is off, $page->template returns the object, if OutputFormatting is on, it returns only the name.
-
? Not tested and not 100% sure, but you can remove one function: $files = glob("../dir/*.*"); $files = array_combine($files, array_map("filemtime", $files)); $latest_file = array_pop($files);
-
You don't need the URL, you also can use the filename, as the images are all in your webspace filesystem. $imagedir = $config->paths->templates . "images/"; To grab the latest imagefile, you have to read and compare file timestamps, like last modified. Check PHP functions for that and directory iteration: https://secure.php.net/manual/en/function.filemtime.php https://secure.php.net/manual/en/function.dir.php
-
$file->url returns only path but not filename??
horst replied to Gideon So's topic in API & Templates
single or multiple filefield? try $file->first()->url -
Very cool project and fun to read. ?
-
Hi Robin, the only thing I remember was this: But this was fixed sometime after that thread. Today using the SessionHandlerDB is without this issues.
-
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
horst replied to ryan's topic in Modules/Plugins
I would install the 1.0.9 module in PW 2.5 and then upgrade PW to latest 3.x after that upgrade the module. Just my 2 cents. -
Maybe you try to configure your webbrowser(-profile), that you use for webdeveloping, to completely disable caching?
-
Remote freelance required for static site to processwire conversion
horst replied to saverio.eyra's topic in Jobs
Hi @saverio.eyra, if I understand you correct, you want to use the existing website layout and content, but converted into PW CMS? If yes, means, there are not such things requested like redesign, I'm interested in this small project. ? You can PM me here in the forums or contact me via email <info (AT) nogajski (DOT) de> Horst -
@teppo, This module is ready to use with the current stable and dev versions of PW (3.0.99+). I know that many users (and me too) actively uses it in many sites. It is also simple to use in conjunction with MarkupSourceSet. So, I think I will not add new features to it, but I will maintain the compatibility of it with future PW versions! Some time ago, it becomes compatible with new UIKit-AdminTheme. Here is a screen:
-
Hi @daniels, many thanks for that great module! As a little helper, I added a checkbox to the modules config page that can test the current settings. If you don't mind, I sent you a pull request.
-
I ever use absolute urls, because then I can match them from within different located css files. Normally I store all fonts under /site/templates/styles/fonts/.
-
something like this should work: <?php class Submissions { protected $site = null; // <= add a handle for the site public function __construct($site) { $this->site = $site; // <= assign the site to the class handle } function insert($data) { $this->site->pages->find(....); // <= use the site through the class handle } } <?php require('/home/centralsite/public_html/wire/core/ProcessWire.php'); $site = new \ProcessWire\ProcessWire('/home/centralsite/public_html/site/', 'http://example.com'); include "submissions.class.php"; $submissions = new Submissions($site); // <= here you pass your pw instance ($site) into your class