titanium
Members-
Posts
161 -
Joined
-
Last visited
Everything posted by titanium
-
I once was a fan of slick too, but I do remember I had some problems with it - I wanted to build a fade transition and the images didn't cleanly cross-fade from a certain build on anymore (I think it was > version 1.5). I switched to Swiper (http://idangero.us/swiper/) since then.
-
Possible to install module from private repository URL?
titanium replied to Robin S's topic in General Support
Since GitLab doesn't support simple basic auth, you're out of luck with "username:password@" in front of the url. But you can set the "private_token" parameter like this: https://mygitlabserver.com/myrepo/repository/master/archive.zip?private_token=2CEgvKCfrABgshElokZ3 The private token can be generated within the GitLab personal user settings. This should get you going: https://mygitlabserver.com/profile/personal_access_tokens - replace "mygitlabserver.com" with the url of your GitLab server. -
I'm very interested why foremost it's age is a good reason to turn away from jQuery. It's no new cool kid on the block, but it is matured, very well documented and wide spread. It was no "dead end" like some of the other "cool" JS frameworks have been. It feels like a good ol' companion. It's not the right tool for every job nor a holy grail, but in pretty much use cases it works well and affordable in a sense that there is no steep learning curve.
-
Looks fine so far. What exactly does not work? Are there no projects in the output? Possibly the projects are hidden, in this case the selector looks like this: $pages->find("template=projects,include=hidden")
-
Hi @mauricemoss, there's already a PR for this issue here: https://github.com/justb3a/processwire-imageextra/pull/30 I hope @justb3a takes it into account for her next release.
-
As said before, I don't know Twig that much, but with PHP it's not that much uglier. PHP is a template language in itself, imho. Here's the equivalent (well, it should work ;-): <?php foreach ($page->exhibition_artist as $artist): ?> <?=$artist->title;?> <!-- Show works that are related to current exhibition and belong to a given artist --> <?php foreach ($pages->find("template=work, work_exhibition=$page->path, work_artist=$artist") as $work): ?> <?=$work->title;?> <?php endforeach;?> <?php endforeach;?>
-
I'm no Twig expert at all, but I think the foreach loop should look like this: {% set ARTISTS = page.exhibition_artist %} {% for artist in artists %} Maybe it would be easier for you if you do it with plain PHP, without Twig - for me it is
-
Hi, thanks for this really nice module. I'm trying to initiate this module from within another module and have no luck so far. This is my config: $colors[] = [ 'name' => 'color', 'type' => 'color', // 'inputType' => 3, 'outputFormat' => 3, 'showInput' => true, 'defaultValue' => '#ff0080ff', 'collapsed' => 0, 'alpha' => 0, 'spectrum' => "showInput: true\nallowEmpty:true\nshowAlpha: true\nshowInitial: true\nchooseText: \"Alright\",\ncancelText: \"No way\"\npreferredFormat: \"hex3\"", 'class' => 'FieldtypeColor', 'label' => $this->_($key), 'description' => $this->_(''), 'required' => false, 'value' => '#ff3300', 'columnWidth' => 25, 'notes' => $this->_('Initial value: ' . $value), ]; If I comment in "inputType => 3", ProcessWire returns "The process returned no content." when saving my modules config. Ok, as a workaround, I could live without Spectrum. When is commented out, it saves and returns the modules config page correctly. But the field "color" doesn't show the value of #ff0000. It returns in JS console: "The specified value "#00000" does not conform to the required format." That's weird: where has my Value of "#ff3300" gone? Alright, it seems to return the FieldtypeColor's default of "#000000". But wait, there is a "0" missing in JS error log's message... Obviously I'm doing something wrong here. I hope someone has an idea how to call this module from within my other custom module correctly. Thanks in advance.
-
I think the new admin theme is a big step ahead! I really like it. I'm now starting to play with it and found a small inconsistency in regard to translations: In the upper nav bar, "Seiten" (does mean "Pages" in English) is translated by german language pack. "Pages" below this, however, is the page title of the "Pages" page (Page ID 3) inside of "Admin" (Page ID 2). I figured out that "Pages" can be translated as well by editing the "Pages" title, but this page has to be unlocked first in order to edit the title. I'm not sure if everyone who uses this theme knows how to follow these steps to get a fully translated theme. I think this should be handled somewhat more consistent - either the Page title or the translation file should be used in both cases. To be honest, I wonder if it has any unforeseen side impacts if the titles of "Pages", "Setup", "Modules" and "Access" pages inside of "Admin" are changed? ...and, for my personal taste, the upper (darker) bar (masthead?) has a little bit of too much height
-
Hi justb3a, the module is amazing! I think I found a small glitch: if one tries to enter more than one field name in "Create and add fields" (comma separated), ProcessWire throws an error: ProcessWire: ProcessModule: Field name 'scf__contact_lastname' may not have double underscores because this usage is reserved by the core Field names I tried with are like this: contact_title, contact_firstname, contact_lastname... If this field names are entered in one by one, all is well. PW version 3.0.76
-
Adrian, let me first say "thank you so much" for this great module - it's incredibly helpful. I think I have found a small bug. When one or more quotes are used in the title of the page, the "edit" section breaks, see attached screenshot. I have now seen this across different installations, so I think it hasn't to do with my setup. Batch Child Editor is latest version 1.6.7, ProcessWire is 3.0.65
-
Normal behaviour is: "Clone this item?" popup gets closed after clicking one of the two buttons. It works fine for me that way.
-
No, this is not needed, because the method redirect() calls "exit(0);" at the end. See class: https://github.com/processwire/processwire/blob/master/wire/core/Session.php Docs: https://processwire.com/api/ref/session/redirect/
- 1 reply
-
- 11
-
Great Adrian, thanks for the great and responsive support, it's much appreciated Tested it out... maybe it's just me... The setting dialogs of the module edit screen are translated now (see screenshot below) - great! But I think the translation is not reflected yet on the normal content pages where the module does it's magic - there it still shows up like in my screeshot above.
-
Hi folks, short question: is it possible to rename/translate the mode names (see screenshot)? I used the german translation from Manfred62, but wasn't able to find these strings... #-)
-
Hi, I would like to build a module which executes some functions when it's config dialog is saved. That's what I have so far: <?php class Patch extends WireData implements Module { public function init() { $this->addHookAfter('Modules::saveConfig', $this, 'runPatch'); } public function runPatch(HookEvent $event) { $this->message('runPatch has been executed'); } } This works so far, but it works for any module which is saved, which is not what I want - I just want to run the method "runPatch" when this particular module has been saved. How can I achieve that?
-
There's certainly nothing wrong with that approach and for sure it's quite common, but I think it is somewhat limited: the customer/editor has to leave his known environment (ProcessWire backend in this case) and has to use FTP/SSH whatever the referenced image is not available for image manipulations, for example: automatic creation a favicons in different solutions
-
I'm sorry, but I'm facing exactly the same problem. I'm no expert at all, but I guess the module has to create a new file/image field, a new template with that field assigned and finally a new page based on that template. Then this page could be used to store the image. Somehow. Maybe.
-
Great module, pmarki Any chance to provide a file/image field for storing site-wide logos etc.?
-
Process Module: Uploading an Image
titanium replied to Orlando Hamsho's topic in Module/Plugin Development
Sorry for rising this topic from the dead, but I'm facing the same problem currently. I would like to add a custom option to a module, which allows to upload an image. Since a module is not a page, you simply can't bind an image to a module, I guess. Is that assumption right? -
The field is added to the template called _foot, which is included to the page's template. You have to add the field to the page's template itself (to check, try "echo $page->template->name;" - this reveals the "real" page template.
-
ProcessBatcher is not compatible with 3.0 devns at the moment, as far as I know. But why not try some custom code? It's just four lines actually. <?php $pagesToDelete = $pages->find('id>1000,template=mytemplate'); foreach ($pagesToDelete as $p) { $pages->delete($p, true); }
-
Horst did a nice job building this module. One thing I'm missing though: Is there a method to embed an image? (cid-method). I've searched through the documentation of Manuel Lemos classes and found the following: Seems the classes support embedding, but I guess the module does not yet?
-
Very nice enhancement! One thing though: if the image has much more height than width size (imagine a skyscraper), then it takes too much place, which is annoying. Is the maximum displayable height configurable somehow?