-
Posts
6,798 -
Joined
-
Last visited
-
Days Won
158
Everything posted by Soma
-
PageArray->prepend($item) originally was only for one item and import() was only for adding PageArray. This was added to support arrays for all add() prepend() append() etc. Looks like the prepend() has a bug where it counts ++ when prepending multiple items. It works correct if using append() or add(). If you use foreach to add via prepend(item) it works also correct. Maybe file an issue?
-
This isn't real? I just had a vision last night (after having a good smoke ), where I was thinking about having a "Page Builder". Create a page, it will create a empty template. Now add or create fields to the page form and configure them on the fly. After some thinking, this would get though, as also now there's a "modal" option for tabs etc. And it may create problems with some fields etc. Throwed this in the backyard quickly. Maybe on template level this might work little better. I'm thinking about having a template/field builder since 3 years now, it works fine in my head.
-
Hmm nananana... you can always switch the fieldtype and inputfield. As they would be compatible. Now this module gets loaded on every request.
- 67 replies
-
- Inputfield
- UI
-
(and 2 more)
Tagged with:
-
@boundaryfunctions I think this would also happen if used in a front-end form with using form API, which used Inputfield->render(). This would be the same as Formbuilder.
- 67 replies
-
- Inputfield
- UI
-
(and 2 more)
Tagged with:
-
I've helped so many modules and filed issues or proposed a fix, it's getting annoying :/
- 67 replies
-
- Inputfield
- UI
-
(and 2 more)
Tagged with:
-
Aha yes now I see. Ryan explains why and he's correct that a InputfieldTextareaCount would be a good/better way to go. I think a way around it could be a check at line #41 if ($this->process != 'ProcessField') { return; } Edit: There's a bug filed on github long time ago. But as with many modules up here, the problem is, dev's have time to make the module but not maintain it.
- 67 replies
-
- 4
-
- Inputfield
- UI
-
(and 2 more)
Tagged with:
-
Whut? I remember that was about with Textareas Profield not Formbuilder. Huh? You wrote you try to use it with formbuilder.
- 67 replies
-
- Inputfield
- UI
-
(and 2 more)
Tagged with:
-
It's simply that the module isn't made for Formbuilder. This module needs a Field to work with. Formbuilder doesn't use Fields, only Inputfields. It's failing in these here: $value = $this->fields->get($event->object->name)->maxchars; https://github.com/boundaryfunctions/TextareaCounter/blob/master/TextareaCounter.module#L50 That's correct.
- 67 replies
-
- Inputfield
- UI
-
(and 2 more)
Tagged with:
-
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
Soma replied to ryan's topic in Modules/Plugins
Looks like that the oembed url is returning a 403 Forbidden I think it's cause the video isn't allowed to be embeded, cause other videos with 9 digit id work fine. I'm not sure cause I never had much to do with vimeo, but that must be it. -
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
Soma replied to ryan's topic in Modules/Plugins
Just got a client where vimeo video isn't working, turns out that the video ID is 9 digit, that why it isn't working. 8 Didigt or lower work but the video as soon as it has 9 digits refuse to show, just keeps url as text. Anyone an idea why? -
Batch upload images & automatically create one page for each one
Soma replied to lucas's topic in General Support
Or use my Images manager module. -
Who is "Florian" ?
-
Creating a new "english" language and it is english already. No need for translation as core is already english. 1. You can set the url segment if you wish to be whatever on the home (root) page name if LanguagePageNames is installed. Usually it's a good approach to have the default language have no segment. But that's up to you. 2. I don't understand what you're saying really. Default german -> has language files, secondary english -> doesn't need language files. 3. You can have both. But again I don't understand what you're saying or what the problem is you have there.
-
I'm not sure were on the same page, but having translation in one file means on each request it load and translates the files even if not needed. You don't seem to grasp the why it is a overhead and gettext is an approach that has pros and cons, so has other ways of translation approaches. We already know that and it's been discussed already. It's not that we have no idea about all this.
-
We also usually import such data as pages. Easy even with thousands entries of data. Depends a lot on the need and quantity. Usually also a xml of csv on server could be considered. For things like Mr and Mrs we created pages that can be made to radio options using page field. Easy to create an maintain and translate. There's a currency conversion module by Ryan. http://modules.processwire.com/modules/service-currency-conversion/ It's always possible to create a kind of a static fieldtype with stored data in whatever form (db, xml etc). Having pages as metadata has several benefits as you can use API and features already there, and scalability isn't a real issue unless you go into couple millions of data entries, where php mysql is slowly reaching a limit to handle it fast.
-
We faced this also at work and while we need it very rare, it's not easy to have all countries for example in all different languages. After lot of searching I found a repo on github from a guy with all the country iso names in many different languages in different formats (php, json, xml, etc) http://dev.umpirsky.com/list-of-all-countries-in-all-languages-and-all-data-formats/ https://github.com/umpirsky/country-list Would be possible to create a service for this, but haven't yet come to decide what would be best. For something more extensive like postal codes etc, a service like http://www.geonames.org/
-
Go to the guest user and change language to what you wish i.e. Deutsch. Having english as a second language is also easy, you don't need language translation files for english as it's already english, so just keep (core) it empty.
-
Richard are you still there? Haven't seen any activity on this as I filed couple issues on github some time ago. Thanks
-
Its much easier to use in place translation with the gettext method as it is now. Adding an extra file with translation complicates things and add overhead where not needed translations would be loaded.
-
How to find all translatable files (Mac/Linux)
Soma replied to Nico Knoll's topic in Multi-Language Support
There's is now a translation tool in core that will find all translatable files automatically. Just click and add. -
On Install is that a midule is inited or triggered twice. Not sure about details but recognized this long time ago. But otherwise usually not unless theres some thing happening like rendering multiple thing in one request. It can happen.
- 5 replies
-
- development
- module
-
(and 1 more)
Tagged with:
-
RT @processwire: New blog post: ProcessWire 2.5.8 updates – modal tabs in the page editor – https://t.co/TlBulryYMd
-
RT @processwire: New blog post: Making efficient use of fields in ProcessWire (optimizing field usage) – https://t.co/swcvoxN7DP
-
Nope. Obviously your class is inited two times. How do you trigger that example?
- 5 replies
-
- development
- module
-
(and 1 more)
Tagged with:
-
Just committed an update to the FormSaveReminder as it's an essential tool in your bag Changelog 1.0.4 - refactored code a bunch to simplify things - added support for CKeditor, regular and inline mode - made alert message translatable If you find any issues, please post in this thread or better open an issue on github . Next: - Look into PageTable, and why it's not triggering on changes. - if you find anything or want to help improve the module just shout For module developers To make sure your custom Inputfield works with FormSaveReminder, you'd have to make sure the input is triggering a change event. Sometimes this isn't the case if you simply change a value through js. You can after chaning a value use the $(element).trigger("change") to make sure FormSaveReminder will be able to detect a change. Thanks