Jump to content

DaveP

Members
  • Posts

    868
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by DaveP

  1. DaveP

    The Future?

    http://www.intercaloninterstates.org/
  2. Having written site search implementations in the past, it's easy to see the limitations in using the current selector-based search. Just daydreaming, but one can envisage a site search module with configurable stopwords and such, extensible to include soundex and mySQL sounds_like, as well as fulltext search with query expansion, and maybe a bit of levenshtein distance thrown in, all of which can help create a powerful site search. ...just daydreaming, though...
  3. I don't know if you could use Twitter Bootstrap's scrollspy script http://twitter.github.com/bootstrap/javascript.html#scrollspy
  4. Just a note to anyone relying on w3schools tutorials, take a look at http://w3fools.com/ first.
  5. It's probably that your php settings don't include short_open_tag, so <?=$page->body?> won't work. <?php echo $page->body; ?> is exactly equivalent, and if (as is the default) your body field is coming from a tinymce input, it will already include <p> and </p>, so you don't really need to output them again. <edit>Damn, Matthew beat me to it.</edit>
  6. Coming to this theme a bit late (due to a natural aversion to anything remotely Win8 related), but I have to say it is my new favourite. Just a note for anyone with 'busy' templates (lots of fields), this theme seems to work better than most at displaying fields set to narrow widths.
  7. I have a vague recollection that this is related to Xdebug. Try deactivating that (in php.ini, I think) and see what happens.
  8. $location_cat = $pages->find('template=location_category'); ...and then your foreach.
  9. If I understand your question correctly, I tend not to include code in the page fields, but do it at a template level. Say you have the usual kind of template file, such as you'll see in the default PW profile - <?php include('./head.inc'); echo $page->body; include('./foot.inc'); and foot.inc reads something like this <script type="text/javascript" src="<?php echo $config->urls->templates; ?>scripts/plugins/jquery.min.js"></script> </body> </html> I'll add an extra bit to foot.inc thus <script type="text/javascript" src="<?php echo $config->urls->templates; ?>scripts/plugins/jquery.min.js"></script> <?php echo $extrajs; ?> </body> </html> Then wherever it is needed in the template (say on home.php because you need an image carousel) I'd put the carousel code and create the <script> tag for the footer in $extrajs $extrajs = "<script type='text/javascript' src='{$config->urls->templates}scripts/carousel.js'></script>"; So that when that is echoed in foot.inc, it shows correctly.
  10. apeisa & Soma have it right. The setting just doesn't save. Select 'Number (HTML5)' radio button and save the field and it reverts to 'Text'.
  11. I have an integer field and wanted to take advantage of the HTML5 'number' input type, but the type refuses to save in the backend. (On version 2.2.9 and have tried a couple of admin themes including default.)
  12. Not exactly what you're looking for but may be some help - http://maplacejs.com/
  13. @apeisa Could you not write a bit of logging code that hooks in before pageNotFound, like your redirect module?
  14. gofreddy.com ? (Although to Joss and I that sounds more cricket related...)
  15. As with everything in PW there are many ways of doing anything. One that I think would work (untested, written in browser) would be something like $child = $page->child; // 1st child of page // some html here echo $child->headline; // more html echo $child->teasertext; // more html $child = $child->next; // next child // some html here echo $child->headline; // more html echo $child->teasertext; // more html // and so on <edit>Wanze beat me to it, so take your pick </edit>
  16. Well, yeah, 5.1 was only released 24 Nov 2005, so it's hardly out of beta. (http://php.net/releases/index.php)
  17. I'm with Pete here - there comes a time to review old url structures and change them, otherwise you'll be trying to support them for ever. Antti's redirect module is your best friend in this case.
  18. We all show up in that search if you scroll down far enough.
  19. Although you might not want to, all the local files could go on one PW page, as could all the external links. The 'file' fieldtype can hold an arbitrary number of files, and you could use a repeater to hold a similar number of urls.
  20. DaveP

    .pw domains

    One of these would be ideal for a PW-specific url shortener.
  21. http://www.last.fm/music/The+Third+Degree/_/Mercy
  22. @Joss, forgive me if this has occurred to you already, but when converting eg from Joomla to PW, open the Joomla template files in your editor and cut & paste, rather than copy & paste, then you know what ground you have covered and what is still to be done.
  23. @diogo Way outside my comfort zone, but this looks interesting - http://twitter.github.com/flight/
  24. @arjen I think that would be because the include() was being treated by php as a boolean and returning 1 for true, as in php saying 'yes, you could include that file'.
  25. DaveP

    Newsletter

    ...I didn't know it existed until I saw Ryan mention it on FB.
×
×
  • Create New...