Jump to content

fenton

Members
  • Posts

    98
  • Joined

  • Last visited

Posts posted by fenton

  1. Hi there,

    I got a section on a site (9 pages) which uses a PageTable field to enter a datagrid for each page.

    my first approach was to create a  template with a specific PageTable field for each of the 9 pages, so that I can select a hidden Parent page ...this worked, but got kinda messy.

    Now I reverted back to only one template, one PageTable field and the children listed below each item. Looking at it now I think it will totally confuse the editor, since every other child page to edit for him is a "real" page, ...so I'm trying to find a way to hide these children or create them in a hidden folder, but render them according to the corresponding page where it was created from

    does anyone know how to tackle this or has an alternative way to do it? (it's a multi language site, so I can't use the table field)

    thanks a lot, cheers, j

  2. Isn't that the same with the PageTable Field? I mean, entries are saved as subpages
     

    Overhead means that repeaters are actually pages, which are stored somewhere in the admin section. But it's not the pages per se, but it should be something about the handling of them as I remember Ryan stating that pagetables are better in that regard.

  3. Hi there,

    like the title says:

    my PageTable Field entries stay unpublished until I manually untick the "unpublished" checkox. Clicking on Publish won't do it.

    04lVZ8M.jpg

    nDX1EgH.jpg

    does anyone experience the same or does anyone know how to solve it? (btw. the Child Pages are in a folder within the Admin area of the site)

    .... another question: is there a way to hide the Title Field? The Title is generated automatically, so it might be confusing for the editor

    thanks a lot, cheers, j

  4. Hi tpr,

    thanks

    that's what I was assuming, but at the moment I have no idea how to alter the generated form markup

    more important actually for me atm is how to make the send button multi lang

    as I see it, the Submit button is added here (FormTemplateProcessor.module):

            // the inputfields don't already have a submit button, so we'll add one.
            $submit = $this->modules->get("InputfieldSubmit");
    
            // set a random name to the submit button so that this form doesn't process
            // any submissions without first receiving a rendered form. This isn't
            // necessary, but it may help to reduce automated spam to the form.
            $submit->name = "submit";
            $submit->value = 'Submit';
    
            // add the submit button the the form
            $form->add($submit);
  5. ... me again :)

    using Adrian's Module now https://processwire.com/talk/topic/59-module-want-form-builder/page-5#entry41431 and it works great

    just wondering how the Form Markup is generated? I assume that's an internal PW Function right, since it's based on jQuery UI & uses FontAwesome

    any ideas how to make the Send Button text or Tooltip notification translateable for a multi language page set-up? ...or how to alter the generated Markup, so that it's not a Tooltip but displayed like an error message like for an empty field instead?

    jZHDPNw.jpg

    thanks a lot, cheers, j

    btw. where's the JS Tooltip coming from anyways? haven't included jQuery UI in the frontend

  6. Hi LostKobrakai,

    thanks a lot

    sorry, I know ...this "Profield: Table thread" got hijacked a few pages back :)

    in my case, I can't use the "Profield: Table" option, because it doesn't have multi language support. will see if changing the parent will be sufficient for my setup for now.

    cheers, j

  7. 1. how can I display Multi Language Strings e.g. __("Your Name") in the rendered form?

    okay, found a solution for this, just assigned __("Your Name") to a variable like $name = __("Your Name") and placed the variable in the form markup

    ... now trying to find a solution for the Umlaut problem

  8. Hi there,

    I got two questions regarding Ryan's Form: https://processwire.com/talk/topic/59-module-want-form-builder/page-3#entry8457

    1. how can I display Multi Language Strings e.g. __("Your Name") in the rendered form?

    // output the form
                echo <<< _OUT
    
                $error
                <form action="./" method="post">
                <label for="fullname">__("Your Name")</label><br />
    
                ....
    </form>
    _OUT;

    2. I'd like to send Umlauts, right now they don't get sent properly "ÃÀÌ" etc. I see someone had a similar problem (https://processwire.com/talk/topic/59-module-want-form-builder/page-5#entry59150) but checking Ryan's code it should work already properly:

    // encode values for placement in markup
                foreach($form as $key => $value) {
                    $form[$key] = htmlentities($value, ENT_QUOTES, "UTF-8");
                }

    thanks a lot, cheers, j

  9. Hi there,

    anyone got this module working with PW 2.6.0?

    everytime I create a new page with the template "article" under "News", my "News" container (and any other published page on the first level) will be deleted and replaced with the new container "2015"?

    anyone experience something similar or know how to fix it ...maybe even a similar, up-to-date module for the same task?

    XcUW6fC.jpghgxRAHp.jpg

    TTqhXPp.jpg

×
×
  • Create New...