Jump to content

planmacher

Members
  • Posts

    21
  • Joined

  • Last visited

Posts posted by planmacher

  1. Hi,

    first I thought everything works well, but then I recognised, that there ist a problem with image description fields.
    No matter what I write in the description - there ist always some error like: 
    Unknown Selector operator: '[empty]' -- was your selector value properly escaped? field='Unser', value='Igel aus dem Bi', selector: 'Unser Igel aus dem Biotop, sort=sort, parent_id=1016, templates_id=43'

    I even made a test environment and updated the pw version to 3.0.200. Then I tried the core export feature but it throws the same error!

    Am I doing something wrong?
    Anay way to skip the description field?
     

  2. Hi!

    I just installed a new and clean pw 3.0.200 and use the client side image resize for an image field.
    Minimal width has to be 1800px - minimal height 800px.
    image.thumb.png.5b84bb199bda76a3739a3cb18d5560df.png

    Now  - when I upload this image with 1920 x 1282 Pixels ...

    image.png.96b6a89d72e698f4cbfb61267ec4b2fb.png

    processwire tells me, that the image is too small in dimensions.

    image.png.96799a376abe3777822bc2316fd3638f.png

    So the image seems to be resized without any reason.

    Any ideas??? Thanks!

  3. Hello - Thanks for your great module!

    I have a special need for the side, I'm working on right now:  Is there a possibility not to show the "result_summary_field" in the rendered results, but the 'near' content of the search-match in the search field itself - with the match highlited?

    So lets say there is this content in the search_index field: ' Hey - this is just a simple little test for the search engine!'
    I am searching for the phrase 'little'.
    The rendered result now should show me lets say: '... just a simple little  test for the s...'

    To be honest: My php-skills are not that good to understand all the files of your module -  but as far as I can see, I am afraid that it will not be possible in an easy way to change the code for my needs!? 

    Thanks for any reply! 

    • Like 1
  4. Hey!
    I just installed this module on a fresh PW  3.0.123
    Everything works fine - thanks for that!
    Little Issue  when the size of the description field is set to "0": After upload of an image, the input fields of the extrafields also are missing - only the labels are visible.

    After first save everything works correct!

    imageExtra.png

    Hope, this was not discussed before ... - thanks for any help!

     

  5. On 10.8.2017 at 11:35 PM, Robin S said:

    But it may not be such a good idea to open a new repeater item on page load. The issue is that you are actually creating a new repeater item when you do this, so that if the user saves without filling out the repeater fields you will end up with a blank item. And if any of the fields in the repeater are required the user will see error messages.

    Thanks alot and please excuse my late response!!
    You are right - not a good Idea - I realised it by myself, that there is an new repeater Item created by opening the input mask. Nevertheless its good to know, how to do it - will give it a try - and its great to see, that there is such a great community with a lot of help here.
     

  6. Hi! Hope somebody can help me ...

    I don't want the user to have to click on the "add new repeater item link" but would like to open it automaticly when loading the edit page. (Best would be, if this only happens if the new item would be the first item) 

    Tried to do it with triggering the click of the add-new-item-link with javascript. But this does'nt seem to work. My java script knowledge is really poor :-(

    Or do I just missed something in the settings of the repeater-field???

    Thanks for any feedback!

  7. Hello,

    very stupid - sorry!
    I played arround with permissions on system templates - now I cannot login anymore. Always get redirected to 404 Page.

    Even more stupid: Can't really remember what I did last.

    Tried to give a special role access to the roles Page. My thought was, that I would have to give this role access to the system templates (roles/admin/...) , but this did not work. So I set everything back to its default. At that time I did something wrong. 

    Frontend is working fine - backend allways 404 Page

    PW Version 2.7

    As I said: Very stupid. Any suggestions???

    Thanks alot!

    Edit: Helped myself by restoring a database backup ...

  8. Hello,

    I am new to hooks... - so help is very appreciated!

    Found a lot of examples for hooks but not for hooking from the site/templates/admin.php.

    What would be the right syntax - for example i have tried this at the top of admin.php:

    $page->addHookAfter('render', 'testFunction');
    
    function testFunction($event){
    
    		// add a "Hello World" paragraph right before the closing body tag
    		$event->return = str_replace("</body>", "<p>Hello World!</p></body>", $event->return);
    }
    

    But nothing happens.

    Also tried it with wire()->addHookAfter('Page::render', 'testFunction');

    What is wrong??
    Thanks for helping!

  9. Hello and thanks for reply!

    So again...

    Module

    post-4233-0-33218700-1457031104_thumb.jp

    User:

    post-4233-0-89548200-1457031150_thumb.jp

    Hometemplate:

    post-4233-0-12336800-1457030864_thumb.jp

    And the name of the "projekte" page is really "projekte".

    post-4233-0-76570400-1457031092_thumb.jp

    Tried it even with another role and template name. Always the same: The permissions to the user are the same for all the pages.

    Anny ideas??

  10. Hello,

    I can't get this module to work - perhaps you can help me.

    I have a very simple page tree:

    post-4233-0-33645900-1456996767_thumb.jp
    All of the first level pages (under "home" ) have the same template. So it is not possible to restrict a branch via user roles. But AdminRestrictBranch sholud do this... - but how?
     
    Lets say I woluld like to restrict the user "test" to the branch "projekte".
    So in the module under "how to match user t branch" I choose "Role Name:
    post-4233-0-55724700-1456997282_thumb.jp
     
    Then I add a new role "projekte":
    post-4233-0-02315500-1456997288_thumb.jp
    Which boxes do I need to check there?
    Then I add this role to the user "test:
    post-4233-0-96893300-1456997270_thumb.jp
     
    What do I have to set in the template options?
    post-4233-0-85591400-1456997292_thumb.jp
     
    Are there other permissions the user should get in oder to get this module to work?
    Whatever I tried - the result is: The users have same permissions to all the first level pages in the tree. 
     
    Would be great if you can give me some help ...!
     
  11. I believe it only can used with field=value, not with path or parent.

    So, one may define and add a hidden field to that template and hook into page::saveready and populate this field with a true or false value regarding if the current page has that parent or not.

    my_hidden_field=1
    

    If you want to go that road we can show some examples how to achieve that.

    Hello - I am new to ProcessWire and would like to go that way !

    Defining the hidden field is no problem.

    But where to hook into page::saveready ?

    Example would be very appreciated!

×
×
  • Create New...