Jump to content

Beate

Members
  • Posts

    22
  • Joined

  • Last visited

Posts posted by Beate

  1. Thanks! Yes, things are very strange: I have domainA running with PW 3.0.172 and it doesn't work, and domainB running with PW 3.0.172 and it works – in the same browser! So perhaps it depents on other things, like php version or web server? I'm still digging.

  2. Hello,

    my customer just told me he couldn't see the CKEditor in safari. I checked it in my 14.0.3, he is right, it is invisible.
    In Firefox everything works, so I have not noticed it. Did anyone had this, too? Perhaps it is something with the new data protection in safari?

     

    empty-ckeditor.thumb.png.20610ed37d1f29ab12de0b55e1c7b0e8.png

  3. I have a problem with templates. In the header of my german/english page is sentence with html tags, as some words are smaller than others. And every page should have another sentence, but some might have the same. And it should be selectable for the user, so putting it directly in the template is no solution. I tried using the select option field, which can also have i18n options, but the html in the options is escaped.. so „A <span>journey</span> to <span>yourself...</span>“ is on the page.

    This is what I inserted in my template:

       
    if ($page->headersatz) echo $page->headersatz->value;

    Any ideas? Or any better idea? Thanks!

     

    pw_header.png

  4. Hello,

    I copied my templates from another project, as it was very similar. But when I want to change the template, there are repeater fields for select, which aren't listed in the fields page:

    repeater.png.8df6596f6d383138aa54ebad7bf4ec22.pngtemplate.png.e38c17b5961ebdf1274c9a28c939c6a0.png

    I tried to delete them in the database (having made a backup first), but then the stadtteilbuerger repeater was broken...

    So, first of all, why are there repeater fields for choosing as a template and how can I get rid of those old repeaters?


    Thanks, Beate

  5. 18 hours ago, Robin S said:

    Try this:

    
    $field = $fields->get('comments'); // assumes your comments field is named 'comments'
    $latest_comments = $field->type->find($field, "limit=5, sort=-created");
    echo $latest_comments->render();

     

    Yeah! That's it :) Thanks to all.

    @Adrian: yes, I wanted all recent comments, not the one from one single entry.

  6. Thanks! Never thought this could work. But: are you sure about the syntax?

    $letzte_kommentare = $fields->find("kommentare,sort=created,limit=5");

    doesn't work,

    Fatal error: Exception: Unknown Selector operator: '' -- was your selector value properly escaped? field='kommentare', value='', selector: 'kommentare,sort=created,limit=5' (in /var/www/vhosts/path_to_pw/wire/core/Selectors.php line 395)

    (the name of the date is created, looked it up in the database.

  7. Thanks! This is indeed cool :-) But not like desired..

    Your code gives

    /filme/kultur/a/
    /filme/kultur/b/
    /filme/menschen/c/
    /filme/menschen/d/
    /filme/natur/e/
    /filme/natur/f/
    /filme/spielfilm/g/
    /filme/spielfilm/h/

    But I'd like to have

    /filme/kultur/a/
    /filme/menschen/c/
    /filme/natur/e/
    /filme/spielfilm/g/
    /filme/kultur/b/
    /filme/menschen/d/
    /filme/natur/f/
    /filme/spielfilm/h/

    and if I repeat the code I might get the same film twice...

  8. Hello,

    my menu is like this:

    /filme/
    /filme/kultur/
    /filme/natur/
    /filme/menschen/
    /filme/spielfilm/

    And on the front page there should be 2 random films from each of this categories. How can I split the founded pages?

    $filme_kultur = $pages->find("template=film, sort=random, parent=/filme/kultur/, limit=2"); 

    This dosn't work:

    $filme = $filme_kultur[0]->add($filme_natur[0])->add($filme_menschen[0])->add($filme_spielfilm[0])->add($filme_kultur[1])->add($filme_natur[1])->add($filme_menschen[1]);

    They should be in this order, and I could't call the find order twice because the random depents on the first call, so that I don't get the same film twice.

    Thanks!

     

  9. I have the same problems with PW 2.6.0 and php 5.3.9, I can't upload images (The upload status bar completes (100%) without error but when the page with the file field is saved the uploaded file name is missing from the refreshed page).

    With console, I got a Javascript error, please see attached....

    post-2091-0-49232400-1432633355_thumb.pn

  10. Hello,
     
    I'm using the API to generete a form. Is it possible to display sth other than the label name in the header (in my case "Newsletter") of a checkbox? This is my code:

    $field = $modules->get("InputfieldCheckbox");
    $field->label = "Ja, ich möchte per E-Mail über Neuheiten informiert werden.";
    $field->attr('title','Newsletter');
    $field->attr('id+name','newsletter');
    $field->required = 0;
    $form->append($field);
    

    I tried title but it didn't work. I also looked in the source, but it seems it is not possible? I can't beleave that I'm the first one with this problem, but a search wasn't succesful :(

    Thanks, beate

    post-2091-0-96082500-1391694822_thumb.pn

×
×
  • Create New...