Marty Walker
Members-
Posts
635 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Marty Walker
-
Got a feeling this is a server issue but I'm getting an error I can't seem to recover from after saving a simple HTML code: Method Sanitizer::entities does not exist or is not callable in this context I can't even load the Hanna Code config screen - even if I try to ununstall/install it again. It hasn't written any files to /site/assets/cache/HannaCode/ either. I'm running PW 2.2.9 on PHP version 5.2.17. Stuck!
-
Hi everyone & Ryan, I have a selfish request to make. If you're not family with Antti's Fredi module (I'm sure you are) it's a neat front-end way for your site users to edit a page without sending them to pick through the admin. But there's a little gap in the functionality that makes it truly useful - for me at least. At the moment it's not possible to reorder images or repeaters through Fredi and have those position changes reflected on the page after a submit. So I would like to request, if possible, the core AjaxSave method get some attention to help get Fredi across the line.
-
There aren't many tools I look forward to using every single day. PW has always been a joy to use and this release makes it even more so. Thanks Ryan and everyone who worked on this release!
-
I've got a mid-2010 model and I think I might have been lucky. I have the odd glitch (almost like scrambling) in the display but nothing I can't live with.
-
I have a 2010 Macbook Pro with 8GB ram hooked up to a Dell 24" screen. I can't stand Apple's mice so I use a Logitech M705. Hanging of the MBP is a 1TB drive just for time machine backups and a 1.5TB 'work' drive. Connected to the Mac Mini is a 1TB LaCie NAS (which has been a pain in the arse). Complicating things I have a synch program that copies directories between al the various drives I have lying about so I have at least three copies of everything.
-
Hello all, I'm using ASMSelect in a Page fieldtype and I'm wondering if I can set a limit to the amount of pages selected?
-
Okay, which should I use next? Bootstrap 3 or Foundation 5
Marty Walker replied to Joss's topic in Pub
Hi Joss, Why not design it from scratch? I understand that BS and Foundation are fast starting points but don't they just complicate things by having to sift through all their code to work out what does what? Not to mentioning loading code you never use. BTW on your Stony site there's a typo in the footer: Site Design ©2012 Stony Webistes -
Hi Antti, Do you know if the core got the updates you needed for repeater reordering? Edit: Looks like it didn't. I still can't (but would really love to) use Fredi and reorder a repeater.
-
If anyone is interested in a (now) free font conversion tool for OS X: http://fontprep.com It works a treat for converting any free TTF or OTF libraries you have.
-
With PW that's almost always the case
-
You just need to add 'mp3' to the Valid Files Extensions (under Details) when you setup your field.
-
I have a suggestion because I tend to re-use templates for other purposes (eg: a news-list template can be used for a blog-list too). Is there a way to exclude a template from the module workings based on a certain page name or page parent?
-
Thank you!
-
Ah right. I'd love to be able to change that limitation. Any ideas how I might do that?
-
Hi all, I've had this site running for a while now but the client has just noticed that when they perform a site search on certain terms they're getting no results. Eg: http://theinfantshome.org.au/search/?q=family+day+care ... which should return results to a number of pages including this one: http://theinfantshome.org.au/our-services/early-education-care/family-day-care/ I'm using the stock standard search template code from the default PW installation (see below), none of the pages I'm searching for are hidden and there's no Access management enabled on the templates. What's even more odd is if I search for 'family day care' in the PW admin I get no results either yet that page title exists. But if I search for 'family' that page gets returned in the results. I'm running the latest (non-dev) build too: 2.3.1 Any help really appreciated. Regards Marty <?php /** * Search template * */ $out = ''; if($q = $sanitizer->selectorValue($input->get->q)) { // Send our sanitized query 'q' variable to the whitelist where it will be // picked up and echoed in the search box by the head.inc file. $input->whitelist('q', $q); // Search the title, body and sidebar fields for our query text. // Limit the results to 50 pages. // Exclude results that use the 'admin' template. $matches = $pages->find("title|body|sidebar~=$q, limit=50"); $count = count($matches); if($count) { $out .= "<h2>There are $count pages matching your query:</h2>" . "<ul>"; foreach($matches as $m) { $out .= "<li><a href='{$m->url}'>{$m->title}</a><br />{$m->summary}</li>"; } $out .= "</ul>"; } else { $out .= "<h2>Sorry, no results were found.</h2>"; } } else { $out .= "<p>Please enter a search term in the search box (upper right corner).</p>"; } // Note that we stored our output in $out before printing it because we wanted to execute // the search before including the header template. This is because the header template // displays the current search query in the search box (via the $input->whitelist) and // we wanted to make sure we had that setup before including the header template. ?> <?php include('header.inc'); ?> <body> <div class="header clearfix"> <?php include('logo.inc'); ?> <?php include('nav.inc'); ?> <h2 class="section"><? echo $page->rootParent->get("section_title_custom|title"); ?></h2> <div class="content-top"><img src="<? echo $config->urls->templates?>images/content-bg.gif" alt="content-bg" width="976" height="11" /></div> <div class="content clearfix"> <? include('breadcrumbs.inc'); ?> <div class="article"> <h1>Search results:</h1> <? echo $out; ?> </div> </div> <? include('footer.inc'); ?>
-
http://thestationhotel.com.au/ ... for the wonderfully talented designer: http://www.jacinabox.com.au/ (ProcessWire site #32) Cheers Marty
-
Hi, Does anyone know if Google have changed anything with their XML feeds. I can't get this to work at all. My code is from the simple example: <?php // get the calendar module $cal = $modules->get("MarkupLoadGCal"); // set the feed URL: may be any google calendar XML feed URL $cal->load('https://www.google.com/calendar/feeds/3q20e8nef1robstuplq5knc394%40group.calendar.google.com/public/basic'); // find all items for December, 2013 $items = $cal->find('from=2013-12-1, to=2013-12-31'); // render items using built-in rendering echo $items->render(); The only error I get is:
-
Nice work Pete! My only niggle is the thumbnails for the gallery are probably bigger in filesize than they need to be.
-
Hi Jonathan, Mary started a similar discussion a while back: http://processwire.com/talk/topic/4349-thousands-of-pages-one-site-with-multiple-pages-or-one-install-with-multiple-sites/ I don't think it touches on user roles but as Craig said some custom code might do the trick.
-
Simplegrid is great. I've used it on a few websites now and wouldn't use anything else.
-
I think Wanze showed me this a while back. <? if ($page->allowedusers->has($user)) { //your stuff } ?>
-
Great work Peter! It's nice to see another Australian ProcessWire bod here.
-
If you guys are after a nice help docs tool that uses markdown and runs without a db: http://daux.io/ You could also setup some docs in PW and use Adrians PageTreeMigrator to copy that tree between sites.
-
Jquery Dialog Pop-Up Message While FOrm Processes
Marty Walker replied to NooseLadder's topic in Dev Talk
Hey NooseLadder, I used this on a site (non-PW) a while back. I think what it does is catch the click on a submit button and display a message. https://github.com/aurels/jquery.alerts <script type="text/javascript"> $(document).ready( function() { $("#alert_button").click( function() { jAlert('Your details are being changed.<br/><br/>(If you are uploading new images this may take some time.)', 'Updating...'); }); }); </script> -
I can submit now but I still can't get images to reorder. http://smdstuff.s3.amazonaws.com/fredi-PW253.mov