-
Posts
3,008 -
Joined
-
Last visited
-
Days Won
20
Everything posted by szabesz
-
I see, thanks! Any plans on updating it? (PW3 & the above mentioned...)
-
@LostKobrakai Hi, is this module 3.x compatible? I'm asking this 'cos it is not stated here: https://modules.processwire.com/modules/process-access-overview/ Checking out Ryan's blog post on access control/permissions I gather that nothing has changed since ProcessWire 2.7 in this regard, so the module should be ok with PW 3 I guess, but to make sure I thought I'd ask...
-
@elabx Hi, FYI, Adrian is still away for more than a month, see:
-
I'd rather have it updated as soon as the version changes. "Manual update can be automated as well". I mean some sort of easy way to update it manually would be a better solution.
-
Ah, I always install it by default. Thanks for reminding me. I often trip over these naming inconsistencies. Also, regarding modules, I still find it confusing that the word "installing" is used for both getting the files of a module and also for running the actual installation process.
-
No, I meant pages of the ajax paginator. However, it was a false alarm as I forgot to update to the latest version, now it works, sorry for this! And thanks as always
-
Wow, things have changed! Now I get the thumbs on page 2 and they disappeared from page 1. Hmmm...
-
Hi @tpr AOS does not seem to support PageListThumbs on Tree pages higher than 1. Would it be problematic to support it on additional pages? Edit: see my next post.
-
Actually it is Modules > Core > Selector ...but yeah...
-
@adrian is away for another one and a half months, see:
-
@ryan Hello, Regarding UIkit 3 data- attributes without the actual data- prefix is regarded as invalid HTML by validators (eg.: validator.w3.org). Would it be possible that the "final" version of _uikit.php uses data- instead of leaving it out?
-
Maybe "This refreshes once every 24 hours." as per:
-
Hi, Here is an example with UIkit: somewhat similar module, but probably not exactly what you need, but might be good to learn from its code: http://modules.processwire.com/modules/textformatter-image-interceptor/ So such a feature can be achieved with a Textformatter.
-
Good to know, thanks for the info. However, probably it is best to update the code, I guess.
-
Not anymore, see: https://github.com/processwire/processwire-issues/issues/238#issuecomment-292906205 quote: The class attributes of the type you mentioned aren't staying, as it seemed like everyone preferred attribute support instead. Here's how you can use that: <img pw-append='sidebar' src='<?=$page->image->url?>'> The pw-append attribute can also be data-pw-append if you prefer it. Finalized Markup Regions: https://processwire.com/blog/posts/processwire-3.0.62-and-more-on-markup-regions/
-
Yes they do, however 3) with output buffering resulted in: scf_enquirytype: 1 scf_name: Szabesz Date: 2017-05-14 09:18:47 and I did not get my message. However, simple include works for me as expected. Here it is for reference if anyone is interested in getting the title of a selected Select Options Fieldtype: <?php namespace ProcessWire; // as per https://processwire.com/api/modules/select-options-fieldtype/#manipulating-options-on-a-page-from-the-api // scf_enquirytype is a Select Options Fieldtype $field = $fields->get('scf_enquirytype'); $all_options = $field->type->getOptions($field); // $enquirytype stores the ID of the option selected $enquirytype = $input->post->scf_enquirytype * 1; $emailMessage = $enquirytype . "\n\n"; // WireArray is 0 indexed, while Select Options Fieldtype starts at 1, we account for this: $emailMessage .= $all_options->eq($enquirytype - 1)->title . "\n"; BTW, thanks for the file_get_contents explanation, I've never used it instead on include, today I've learnt a few things again
-
Thank you! I'm testing them, and 1) obviously works, let's see the other two. I'll be back
-
I do not use twig, just plain php. In my message.php file if I have this for example: <?php namespace ProcessWire; echo "You have received a new contact form message"; That is what is sent, not just: You have received a new contact form message Actually this is what I expect, since file_get_contents simply reads the file, so I have the string, that's okay, but how is it going to be interpreted?
-
I tried this, but I must be missing something here as the content of message.php is not interpreted by PHP but it is sent as a string literal, so I cannot get it to work What am I doing wrong?
-
Thank you very much for the quick reply! #1 Ok, I'll do that. #2 'action' => './#anchor' does work indeed, I should have thought of this. BTW, I've just noticed a typo in the success message: "Your contact request has been send successfully!" => sent Thanks for the great module! Maybe it should be renamed to Highly Customizable Contact Form
-
@justb3a Hi, could you or anyone please help me out? I have two issues to solve: #1 I have a Select Options Filedtype in the form called scf_enquirytype. By using %scf_enquirytype% in the Email Message settings, I get the ID of the filed not the Title. Is there any way to get the Title instead? #2 After successfully posting the form, the page is reloaded but my form – consequently the success message too – is at the bottom of the page, and the reloaded page starts at the top, so the message cannot be seen without scrolling manually to it. Is there any way to solve this? Eg. by jumping to an anchor placed before the success message? Maybe with the AJAX option I could solve it, but I do not really need the AJAX option this time. Thanks in advance,
-
PW3 - Separate Header Footer & Sidebar Files
szabesz replied to ridgedale's topic in General Support
more info: https://processwire.com/blog/posts/processwire-3.0.39-core-updates/#new-functions-api Side note: to make page() etc. (functions API) available you need $config->useFunctionsAPI = true; in /site/config.php as described in Ryan's article. -
Wow, does it work? Learning something new every day