Jump to content

PawelGIX

Members
  • Posts

    45
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by PawelGIX

  1. I have trouble with Iframe button. Editor saves IFrame placeholder, instead iframe. The final result: <p><img class="cke_iframe" alt="IFrame" title="IFrame" src="/site/modules/InputfieldCKEditor/ckeditor-4.1.0/plugins/fakeobjects/images/spacer.gif?t=D26E" style="width:600px;height:500px;"><br></p>
  2. For me CTRL+Z works fine (chrome on windows) Is there any chance to include custom.css file in inline editor?
  3. I get one error after update from 2.2.9 to 2.3 dev: Fatal error: Cannot redeclare class SessionLoginThrottle in /public_html/wire/modules/Session/SessionLoginThrottle/SessionLoginThrottle.module on line 17 This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged.
  4. Ryan. I like the first option. Soma I'm sorry, I missed your question . Pixlr API api does not allow for something like this. You don't have to register. For me, the full editor works just as well as Express Editor. Maybe try cleaning the browser cache. On what browser you testing? You can enable / disable the selected editor in the Pixlr Editor module settings. The module overwrites an existing image and creates new thumbnails. Probably my module does not affect the images generated by the Thumbnails. I have not tested yet with Thumbnails module. I do not plan to add Aviary Web Widget - at least for now. Maybe in ver. 2.0
  5. I agree that something like drop-down "Actions" menu would be useful. And maybe some new hook, for example, "___actionButtonsRender".
  6. I wonder. Does it make sense to split the code into two modules? Now I have PixlrEditor module, which adds hooks and ProcessPixlrEditor Page module, which processes the image. Maybe it would be better to combine everything in one module ProcessPixlrEditor? Also confirm that the module is working fine on IE9.
  7. Hi I would like to share with you my first module. Module integrates PixlrEditor with a InputfieldImage. You can easily edit your images online. The module provides a link to edit each field type InputfieldImage. Have fun;) Warning: I have not tested yet on localhost. As Ryan pointed out. It does not work on localhost. Pixlr webservice must have the ability to get images from your server. Source: https://github.com/P...GIX/PixlrEditor Screenshots: Changelog 1.0.2Now Support Thumbnails Module - Thanks to joey102030 for the addition.
  8. Thx. Custom fieldtype should be ok. For me, the default value is the value that is saved only when adding a new page. After you save the default value becomes the normal value.
  9. Can I specify default value for certain input field? For example: <h1>Title</h1><h2>subtitle</h2><p>article content</p>. in body InputField. Maybe custom module? Some hints?
  10. Maybe you should put my update to the dev branch. I work on it to make the upgrade painless.
  11. I asked exactly what is mentioned here;) For example: If I wanted to create AnotherImageInputField, which would allow me to set a"Minimum files allowed" in the options. Then in the settings of each template, I could override this setting if it was needed. But really, I can always create a new field for each template. So I actually think it is better not to complicate simple things. I use the PW too short to know whether such a possibility would be useful
  12. This is really useful. I have some suggestion: to add a button to a modal dialog: "Restore Defaults". Are you planning to add the ability to create context aware field. $inputfields = parent::___getConfigInputfields(); $field = $this->modules->get("InputfieldTextarea"); $field->attr ('name', 'name'); $field->useInContext = true; //something like that $field->label = $this->_ ("Label");
  13. I think we should have "Min Image Dimensions" as we have "Max ImageDimensions". You should get a message that the image is too small. I looked at these new features and I do not think it was possible for now. I do not know how to add a field to be visible in chosen context. Maybe Ryan knows how :]. But you can do this right now in this way: thumbnail,200,200,basic-page,home big_thumbnail,500,500,other_template_name medium_thumbnail,300,300,post_template
  14. This is something else. jCrop Documentation jCrop allows you to specify the dimensions of graphics that you cut. You can allow for example 100x200px MIN or 100x500px MAX for images in siebar. This way you can cut the picture of a different height but fixed width 100px.
  15. I wonder about change configuration to the JSON format. In this way, we could provide more options for the site administrator. But the configuration becomes more difficult :/ [ { "name": "my new thumb", "template": [ "basic-page", "home" ], "aspectRatio": 1, "minSize": [100,100], "maxSize": [ 200,200 ] }, { "name": "small thumb", "aspectRatio": null }, { "name": "thumbnail2", "width": 100, "height": 200 } ] What do you think about this?
  16. I made some changes to this module. I moved to CropImage configurations. Own unique configuration for each field. You can have multiple fields in a template with different settings. Limiting scope to the template is still possible. thumb,100,200,basic-page is still possible. Here is fork https://github.com/PawelGIX/Thumbnails
  17. Thanks Ryan. It works great . It would be nice to be able to get $field contex, in each field. At the time when you need it.
  18. I am trying to extend InputfieldImage & FieldtypeImage. I want something like this: $page->image->action('param'); When I call method action() i want read settings saved with my ExtendedInputImageField field. Then i want perform action based on that settings. I have first part. I can save EntendedInputImageField settings when I configure new field. In this way I save the settings: public function ___getConfigInputfields() { $inputfields = parent::___getConfigInputfields(); //[...] $field = $this->modules->get("InputfieldTextarea"); $field->attr('name', 'advSetting'); $field->attr('value', $this->advSetting? (string) $this->advSetting : ''); $field->label = $this->_("Advenced Settings"); $field->description =''; $fieldset->add($field); //[...] $inputfields->add($fieldset); return $inputfields; } <?php Pageimage::action Hook class FieldtypeExtendedImage extends FieldtypeImage { // [...] public function init() { $this->addHook('Pageimage::action', $this, 'action'); } public function action(HookEvent $event) { // How can I read 'advSetting' settings here? } //[...] }
  19. I think that would be better to set up a a thumbnail by the form field. Configuration would be more flexible. I have cases where a template has multiple images in different sizes. In the current approach. I set a thumbnail based on the template. For each field, I get three dimensions. Maybe it would be better in this way: // article_tpl template thumb_100x100,100,100,field_name_img1 thumb_300x300,300,300,field_name_img2 thumb_500x500,500,500,field_name_img3 // and in the news_tpl thumb_150x150,150,150,field_news_img1 thumb_350x350,350,350,field_news_img2,other_field_name_img2 thumb_550x550,550,550,field_news_img3 Or in this way: // article template thumb_100x100,100,100,template_name[field_name_img1] thumb_300x300,300,300,template_name[field_name_img2],template2_name[field_name2_img2] thumb_500x500,500,500,template_name[field_name_img3] It may even be better to move the configuration to the form field settings?
  20. This is my first post so, Hello everyone. Ryan, I want to congratulate a great CMS. I attach my translation for the Polish language. The translation is fairly complete, but it requires some adjustments. Hidden deeper setting are not yet translated. And also the Polish translation for TinyMCE. TinyMCE will not work without it. https://github.com/PawelGIX/ProcessWire-Language-Pack-Polish--pl-PL- EDIT: I added a link to github. ProcessWire-Language-Polish.zip tinymce_language_Polish.zip
×
×
  • Create New...