Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. "/site/assets/files/1015/" I guess you have multiple image field which would be an array. How about <img src="<?php echo $page->promote->first->url; ?>" />
  2. Turn off session fingerprint in config.php.
  3. Enter that in Google. "processwire limit character output" You're welcome
  4. I just experience something else. In backend when I have single value select, once I have selected an option I can't go back and select the first bank value to "remove", it just doesn't save it and it's still previous value selected. Why is there a blank value if I can't save it?
  5. For me it works fine even without turning outputformatting off.
  6. get the same error as regesh when "settings" tab is turned off.
  7. Hm, maybe it works like this? $field = $modules->get("InputfieldMapMarker"); $field->label = "Localização"; $field->attr('id+name','map'); $marker = new MapMarker(); $marker->lat = "38.694147"; $marker->lng = "-9.205794"; $field->attr('value', $marker); $field->required = 0; $form->append($field);
  8. It doesn't work on frontend, it requires the Fieldtype. http://modules.processwire.com/modules/fieldtype-map-marker/ read comments. Edit: Maybe it still works. https://processwire.com/talk/topic/10110-cant-get-inputfieldmapmarker-working-on-frontend/
  9. I doesn't work on frontend, it requires the Fieldtype. http://modules.processwire.com/modules/fieldtype-map-marker/ read comments.
  10. Just an note: It's adding the script AFTER the </body>
  11. RT @henningheyne: Awesome how many agencies in Germany switched to #processwire as CMS or Framework. Today I talked with one who knows some…

  12. You can set to not allow editor change templates.
  13. But that's not creating a new page, but changing an already created page. As I remember it was always like this.
  14. I can't reproduce this. When not allowjng to create new page with the template, I can't select it (means it's not there) when adding a new page.
  15. Ah, it's hard/confusing to understand that documentation, even for me. As you can see from my previous post: value would be = title and key = id. So I get now that a custom "value" could be set using "id=value|title", I didn't understand that at first. So setting it that way, it still works fine for me. $anredeField = $fields->options_anrede; $opts = $anredeField->type->getOptions($anredeField); $id = $opts->get("value=m")->id; $page->options_anrede = $id; ... The options config: 1=f|Frau 2=m|Herr So again it's just assign the ID to the $page->youroptionsfield and save.
  16. I'm not sure how that's relevant as he wants to know how to save the selected option, anyway... $options->get("value=myValue")->id; doesn't return a the key for me but $options->get("title=myValue")->id; does Edit: or $options->get("value|title=myValue")->id; so it's a bug?
  17. I'm not sure what that code should do at all
  18. kixie, he's not looking to modify the field options but to save an options selected in his form. It should be simply adding the key (id) to your field: $page->form_type = 1; or using the value (title) $page->form_type = "Yes"; or if it's a multiple options you set an array using id's: $page->form_type = array(1,2); or titles $page->form_type = array("Yes","No");
  19. If you look at the hooking method and you see the arguments it is always clearer. If theres a $page you need to use arguments. But in cases if you hook the class Page you get the page with $event->object.
  20. Yeah it's one of the few things I remember without thinking.
  21. Or better named $pagefile = $event->arguments("pagefile"); $id = $event->arguments("id"); $n = $event->arguments("n");
  22. I'm not sure I understand it correctly. But what if you set 'max_levels' => 3, 'collapsed' => true, collapsed means it only shows the current branches.
  23. Sorry Bernhard haven't noticed your earlier posts. I experienced something like that with the backend admin url, but not sure anymore what it was. I have a project where I use it but that is a even a newer version than the current. So I might have it already fixed there. The other is something I see a problem with current implementation using strpos() on those domains. "site1.dev" is found in "sub1.site1.dev" thats why you have a problem. I'm not sure about a fix yet. I haven't got a testinstall I can play with currently, but will look into it soon. Thx.
×
×
  • Create New...