Jump to content

bitmatix

Members
  • Posts

    16
  • Joined

  • Last visited

Posts posted by bitmatix

  1. Hey Ryan,

    thank you for your reply!

    I've tried to perform the ini_set() in /site/config.php and left the index.php as it is (no modifications) but it doesn't work. I don't want to modify the index.php because it seems like this file get also updated if I use the "AutoUpgrade" module, and then all my changes made in index.php are gone.

    • Like 1
  2. Why does it have no effect. I can set it here in config.php.

    If I set this:

    $config->paths->sessions = 'tcp://localhost:11211';

    in my config.php

    it get this:

    /var/www/tcp://localhost:11211

    (debugged with die($config->paths->sessions); in index.php)

    Any ideas how to fix this?

  3. look here:

    http://processwire.com/talk/topic/3627-memcache-error-during-installation-process/#entry35527

    you have to modify this line to suite your needs :-)

    I don't like this solution, because in my case it requires an if/else (because I don't use memcache on my dev machine) which I already have in my config file, to handle db configurations for dev and live system :(

    I think it would be better, if it where configurable in config file. 

  4. bitmax, not sure what you mean :huh: Could you explain in more detail?

    I want to do the following:

    // get the collection of inputs that can populate this page's fields
    $inputfields = $this->page->getInputfields();
    foreach ($inputfields as $inputfield) {
     $inputfield->setAttribute('class', 'span4');
     $form->add($inputfield);
    }
    

    It seems like this only works for text inputfields, but not for "InputfieldPage" fields.

  5. Quick look at intall.php it turns out it parses the phpinfo() table and search for json support. It may fail because the phpinfo returned is different in php5.4. Are you still able to install it anyway?

    Thank you for your fast replay Soma.

    Yes, I was abled to install PW anyway and everything seems to work fine. I was just wondering about the "check" message.

  6. bitmatix, have a look at your Page field's Input tab and two options on it:

    Custom selector to find selectable pages

    Custom PHP code to find selectable pages

    Cheers.

    Thanks a lot slkwrm, that's what I was looking for :-)

    Now I have the problem, that I can't set the "class" attribute of the generated "select" tag. It only works for normal textfields. Any idea?

  7. Hi guys,

    I'm trying to build an "advanved search" form depending on the idea of the "FormTemplateProcessor" and i also have some trouble with "InputfieldPage", because I need to modify the options, that appear in the select field. Is there any chance to "filter" the pages, which goes into the "InputfieldPage" before the field gets rendered?

    Thanks!!!

  8. Hi,

    I have a page with a template this template has a "repeater" field. Now I want to add entries to the repeater field via API. Could anyone explain me how to do that?

    page = 'vehicle'

    template = 'vehicleTemplate';

    repeater_field = 'vehicleFeature';

    $page = $pages->get("template=vehicleTemplate");
    $features = array('feature1', 'feature2', 'feature3');
    foreach($features as $feature) {
    ??
    }
    
  9. Thank you guys, for your fast replies.

    What I'm trying to do is the following:

    I'm getting some data from an external webservice and I'm trying to "convert" it to a WireArray (maybe something else), to have the ability to search in this data, without storing the data/items as pages.

    What I want to have, is the ability to search in the data of the webservice as described in the "Arrays" section of the API documentation.

×
×
  • Create New...