Peter Knight
Members-
Posts
1,379 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Peter Knight
-
Working now. Nice job. How is he finding the editing experience etc or is it early days?
- 3 replies
-
- sustainable
- homes
-
(and 2 more)
Tagged with:
-
- 3 replies
-
- sustainable
- homes
-
(and 2 more)
Tagged with:
-
Is it a CSS bug? Happy to try and help if the current version is available somewhere?
-
I have template for Chocolates. I have a template for Boxes. Ok, not really, but it's way more interesting to explain it this way than my real template names and purposes. Anyway, my client has been creating Chocolates and building up a database of many different Chocs. After creating a bunch of chocolates, she then creates a page called Boxes. A PageSelect field is used o select the Chocolates to be included in each Box. It works great and you've probably done the same for staff and companies etc. That's been the process for a while. Create chocolates first. Then create Boxes and select chocolates to be added. Now my client has come back with a curve ball and said she wants to create a Chocolate and from this page, send it to a Box. She then wants to edit a Box and see which chocolates have been assigned to it. It's kinda like a reverse of what we have but more importantly, there's a 2 way relationship going on where each template has a PageSelect field which is syncronised across both. This is all in the admin BTW, we're not talking about selectors or front-end display. Having looked around the forums, there's a few requests and a few DIY modules but they're all quite old. Are there any plans to make official support for this or what's people experiences with the existing Modules?
-
You can turn on debug mode via the config file at /site/config.php $config->debug = true; of if you wont want bug messages showing in the front end, you can check /site/assets/logs/ for any messages relating to your problem. BTW there's also a Module called Config (or something similar) which allows you to toggle debug on/off from the admin instead of having to FTP your config.php file.
-
Thanks guys - that was indeed the issue.
-
I have errors turned on. It basically outputs nothing. This works and confirms that my field 'first-name' exists and is posting <?php echo $_POST['first-name']; ?> It outputs Peter Looking at the input docs, the following PW API call will confirm wether the field exists and has data <?php if($input->post->first-name === null) echo "First name doesn't exist"; else if(!$input->post->first-name) echo "First name exists, but is blank"; ?> This returns First name exists, but is blank even though it returns a value in the first code example Is there something I'm missing regarding the PW API of $value = $input->post->first-name; and how to use it?
-
Regarding pulling post variables on the confirmation page, why would this work <?php if(!empty($_POST['Case_Study'])){ // Loop to store and display values of individual checked checkbox. foreach($_POST['Case_Study'] as $selected){ echo $selected."<a href='#'>{$selected->title}</a></br>"; } } ?> and the more "traditional" PW syntax doesn't <?php if(!empty($_POST['Case_Study'])){ // Loop to store and display values of individual checked checkbox. foreach($_POST['Case_Study'] as $selected){ echo"<a href='{$selected->url}'>{$selected->title}</a></br>"; } } ?> The first example is from a PHP tutorial where I simply update variable names. The second is what thought would be more correct and in line with what I had been using for more regular selector echoes.
-
I hadn't manually set any. Would it be a manual redirect specified somewhere in the admin or a module or more likely a NGINX directive?
-
Finally figured this out after finding this post I needed a trailing slash at the end of my action URL <form method="post" action="../download-confirmation/" target="_parent"> The form still worked and directed to the correct page so that didn't help.
-
Users - pausing and user overview
Peter Knight replied to Peter Knight's topic in Wishlist & Roadmap
Personally, I like that idea Client wouldn't like this as a solution but as a short term fix it'll work for some of my more personal projects. -
They shift things around wayyyy too much. Makes it hard too, to rely on their APIs which they are ruthless too about shutting down or forcing everyone to upgrade.
-
Might be of interest to some. Article about Googles version of GitHub
-
There's no way to temporarily pause a users login access. You can uncheck their roles and hit save. If you have many roles, you have to remember what they had access to if you need to re-admit them. Would it be useful to have a "pause access" checkbox for a user ? Also, on the User Overview a new column titled "Status" could be nice. Gives an overview of wether someone is paused, activated etc Edit - I think I can configure Lister to display a users status
-
Yep it's a form created by Form Builder (the PW module). Starts with <form id="FormBuilder_document-download" class=" FormBuilderFrameworkFoundation InputfieldFormWidths InputfieldFormNoHeights InputfieldForm" name="document-download" method="post" action="./" data-colspacing="0"> Ends with a closing form tag too.
-
Around the receiving Php? I didn't realise I needed one but hadn't done this before. Will try that, thanks.
-
Just a typo in my example. The code I'm using is accurate
-
I get it. Once I have a page ID, I can make a connection between and selected PDF and it's page. So if I have a form (using FormBuilder) and a PageSelect field outputting an array of checboxes called "select_your_case_studies[]" <div class="InputfieldContent "> <div class="InputfieldCheckboxes"> <ul class="InputfieldCheckboxesStacked"> <li><label><input type="checkbox" name="select_you_case_studies[]" id="Inputfield_select_you_case_studies_1412" value="1412"><span class="pw-no-select">Condé Nast</span></label></li> <li><label><input type="checkbox" name="select_you_case_studies[]" id="Inputfield_select_you_case_studies_1413" value="1413"><span class="pw-no-select">Charles Stanley</span></label></li> <li><label><input type="checkbox" name="select_you_case_studies[]" id="Inputfield_select_you_case_studies_1414" value="1414"><span class="pw-no-select">Global Logistics Firm</span></label></li> </ul><input type="hidden" class="findPagesSelector" data-label="title" value="template=a-document, Document_Type=Case Study"> </div></div> Would I use the following to echo the selected check boxes? $value = $input->post['select_your_case_studies']; I'm unsure as to why nothing is outputting on my confirmation page.
-
max image dimensions - "not a recognized image" [bug?]
Peter Knight replied to bernhard's topic in General Support
I actually had this error a few times and seemed to solve it by renaming the file. I used underscores instead of dashes and that seemed to work. Are you sure it's an image size issue rather than a naming convention? -
What I'd like to do is dynamically display them. IE Although I have a dedicated page listing all available PDFs with links to them, I'd like to display just the PDFs which had checkboxes ticked. Possibly I can pass a CSS class to the PDFs not selected to hide those on the page etc
-
Hi guys Probably more a general Dev question so I'm posting it here. I have a Document Request form form. Apart from basic fields for name, email, phone etc, I also list 10 PDF titles and a checkbox for each. The form itself is created using an online form service. I'd like to display a download link on the confirmation page corresponding to each checkbox ticked. AM I correct in thinking this is the realm of URL parameters and combined with some PW selector? If it's any help, each PDF is actually a page in PW with a template called "document-detail". Just looking for broad tips right now while at planning stage.
-
ProcessWire "issues" labeled as "enhancement" on Github
Peter Knight replied to ceberlin's topic in Dev Talk
A native PW system would be great and a great showcase too. Having used Trello in the past for MODX I wasn't convinced it brought any value. Actually - I just tried to login to the MODX Trello account and it's been closed. -
Hey @rot Module sounds interesting. Any further progress?
-
Possibly not but I've found there are less mistakes. The extra 0000.5 seconds it takes are worth it. Less mistakes and less support calls.
-
Hi Nurkka I found this quite difficult initially too. Primarily because I was expecting PW to behave like another CMS I use. If the parent pages doesn't have any restrictions set in the Access/Family tabs then I find it's much easier to go to Settings and the Parent options. Some might argue that it's slightly more work but I've found it's also more accurate. Would that work for you?