-
Posts
2,233 -
Joined
-
Last visited
-
Days Won
47
Everything posted by netcarver
-
Does the page you are viewing using the home template actually have a value for the map field saved in it? Scrub that, it sounds like it does.
-
@fliwatuet Sounds like $map is undefined in the home.php file. Please try this. In _main.php... <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title><?php echo $title; ?></title> <meta name="description" content="<?php echo $page->summary; ?>" /> <link href='//fonts.googleapis.com/css?family=Lusitana:400,700|Quattrocento:400,700' rel='stylesheet' type='text/css' /> <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>styles/main.css" /> <?php $map = wire('modules')->get('MarkupLeafletMap'); echo $map->getLeafletMapHeaderLines(); ?> </head> in home.php... <?php $map = wire('modules')->get('MarkupLeafletMap'); echo $map->render($page, 'map'); ?> Also, are you sure your field is actually called 'map'?
-
@fliwatuet could you post the content of the head section of your _main.php please. It's fine to redact anything you feel is private if you need to. Also, I use this module on a PHP7 installation and seem to have no problems with it.
-
Is it possible to add custom template to Forgot Password email?
netcarver replied to Rudy's topic in API & Templates
@Rudy Have a look at the WireMailBranding module by @Martijn Geerts. It allows custom html templates in outgoing email - but I've never used it in your situation so I can't say if it will do the job or not. Please have a try, and let us know how it goes.- 1 reply
-
- 3
-
@s3nior If you want to split the content of the field up by lines, you can use the PHP explode() function with "\n" (probably) as the $delimiter; something like this... $lines = explode("\n", $image->description); // $lines is now an array of strings, indexing starts at zero $second_line = $lines[1]; echo "Second line is: $second_line"; Hope that helps.
-
@jean-luc Nice. Any chance of issuing your updates as a pull request to the original repo?
-
Just pushed some updates to this ancient module. The new version (v1.2.0) uses wireMail and should work with PW 3.
-
@Macrura That's quite nice, could make a useful textformatter.
-
Is there a pressing reason to mix this level of layout into your content? Would separating the columns into individual textareas and moving the layout details into your templates work better?
-
Should the if statement at the top of your hook should use a logical OR (||) rather than an AND (&&)?
- 5 replies
-
- processpageedit
- render
-
(and 2 more)
Tagged with:
-
Just updating this thread in case anyone thinks I've ignored @cstevensjr - I haven't; we are communicating via PM, trying to sort out a problem.
-
@Zahari Majini It was originally written as part of a scheduling system for a local Trampoline Club.
-
I just pushed fixes for the issue identified by @Zahari Majini Please update to v0.2.0 or later if you want to use this field in repeaters.
-
@Zahari Majini Ok, that's unexpected. My local install (3.0.36) has it working in normal contexts as well as repeater-matrix contexts. Did you overwrite the InputfieldTime.module file with the new one? Any chance you can PM me login details to allow me to try and trace what is happening on your installation? Regards, Steve
-
@Zahari Majini Could you give the code from the new dev branch a try, please. Just replace the existing files in your installation directory and include the new file: InputfieldTime.trigger.js Thanks!
-
@Zahari Majini I've partially solved this on my local machine - but not 100% there yet. Will update the module once I have it working.
-
@Zahari Majini It appears to be the same issue as reported here. For now, you can work around it by changing the settings for your repeater matrix to the following... Not the most satisfactory of results. Note, doesn't work well enough if you simply switch the Ajax option to off as the picker appears on all the fields as soon as you open the owning entry.
-
@Zahari Majini Could you let me know... which time format you are using for your input? (From the details tab of your time field.) if you have the picker inhibited? (Look on the input tab of your time field.) Thank you!
-
Tuan? Saya? Terimah Kasih, tetapi "Steve" cukup baik. </offtopic>
-
@Zahari Majini Apa khabar, Zahari? I guess that the JS and/or the CSS file from InputfieldTime isn't getting loaded in that context, I don't know why yet. Steve
-
You have a message, Sérgio.
-
I'd like to see an officially supported way to do this, too. Now that PW3 is integrated with composer, there is probably an indirect way to do this via composer's ability to link into private repositories via the composer.json file. You could probably use this plus composer's update command to pull the latest versions of modules from the private repos. The module repositories would need to be setup to be compatible with composer for this to work. I've used this feature of composer before and it does work - but I've never tried it with PW.
-
Creating a fast "pages->sum()" function
netcarver replied to ESRCH's topic in Module/Plugin Development
I've had the go-ahead from @ESRCH and have now pushed this to the module repository. Repository Link- 6 replies
-
- 12
-
@hheyne @Wanze I'm hitting the same problem with this module. PW3.0.36 and PHP7. Even though they are only notices, this seems to stop the PDF file from being correctly generated (at least, for me.) Is the mPdf project still being maintained? I wonder if a patch is in the works for this?
-
@tpr That seems to work very nicely. Thank you!