Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. Maybe you should look at source and not inspect with dev tools cause those show generated source by the browser != code sent from server.
  2. Actually both don't work for me. And apart from that an 28MB PDF here?. What's that good for?
  3. It's a very valid question. It's where it can lead to a module mess much like in every module/plugin based system. The kind of: "I have 20 modules that do validation. Which is better, which really is tested and works? Which works for which PW version..." etc.
  4. Thanks for all the praise and feedback. Unfortunately it's a theme that the client wanted and bought. So we are aware of those problems but are not going to change it as the it was never planned and no budget.
  5. I'm not sure. I'm not seeing that here. I wasn't involved on that project so I can't tell if there's something goofy going on with maybe preloading images and critical CSS.
  6. Some time ago we did a redesign and relaunch of http://www.pipistrello.ch/ using ProcessWire. A Circus for children to participate. The design and html theme is wanted and bought by the client, so we don't take credits for that other than ProcessWire work and some small adjustments as was requested.
  7. Same issue as you got here https://processwire.com/talk/topic/5857-using-pages-in-custom-function/?fromsearch=1 and lostkobrakai explained there too ...
  8. @markoj There's plenty of options to handle opening link in new window. But you shouldn't. http://www.smashingmagazine.com/2008/07/01/should-links-open-in-new-windows/ If you still insist. You can for example use jQuery. $("a[href^='http://']").prop("target", "_blank"); Or a hook with MSN to modify item string: https://github.com/somatonic/MarkupSimpleNavigation#hook-for-custom-item-string-new-in-120 $nav = $modules->get("MarkupSimpleNavigation"); function myItemString(HookEvent $event){ $child = $event->arguments('page'); // current rendered child page // any logic with $child possible here if($child->ext_url){ // set the return value of this hook to a custom string $event->return .= "<a href='$child->ext_url' target='_blank'>$child->title</a>"; } } // setup the hook after on "___getItemString($class, $page)" method $nav->addHookAfter('getItemString', null, 'myItemString'); echo $nav->render();
  9. With MSN you just create a dummy page for the external link and add a text or url field to your template like 'ext_url' and then use {ext_url|url} in your item_tmpl.
  10. https://github.com/ryancramerdesign/ProcessWire/issues/1011 What version are you running? That even we have to ask. PLZ always post Pw and module versions. Thanks.
  11. RT @processwire: New post: ProcessWire core updates 2.5.26 – Content-types for templates, new ProCache, PageList hovers + more https://t.co…

  12. NO need to post 20 post about the same all over the forum. There's misunderstanding that this is not a fieldtype but a technique you can use in custom selector for page select, so it is dependent on the selected value of another page select on currently edited page. This is in PW since a long time and not documented. But once you set it up it's using ajax to populate the selects, so is something that requires backend page editor context. This isn't something you can use on front-end just so, or form-builder (AFAIK).
  13. @gebeer, yeah I said that but also said that another selector would be required and that I didn't know if that would work. But I just tested and it works fine. What you need is this type of selector: "select_page=page.select_country, select_page!=" Setup "select_page" = would be page single page select field on your option pages to select its "reference", like "Zürich" has selected "Schweiz", and so on "select_country" = would be a normal page select on current editing page to select from a parent of countries. Nothing special here. Then use a page select to select cities that are dependent on what country is selected: "select_area" = would be a normal page select on current editing page to select from cities. Here you would use the custom selector option for the input like: "select_page=page.select_country, select_page!=" And so on. You can go further and create a page select that is dependent on the selected city and add a "select_event" that then uses same selector but with using "page.select_city": "select_page=page.select_city, select_page!=" This allows dependent relations using a page select instead of a parent relation. This is only for backend.
  14. Dependent selects is not fieldtype but a technique to use the custom selector for the pagefield inputfield. You can use 'page' or 'page.field' in there to make one select dependent on an other select on the same page when editing. Ie 'parent=page.anotherpageselect'
  15. Ah, thanks for the hint. I see now this is s leftover from a earlier version and forgot to change it there.
  16. You should contact the module author. Nothing wrong with WireDatabasePDO. It seems a problem with ChangeLog https://github.com/teppokoivula/ProcessChangelog/blob/master/ProcessChangelogHooks.module#L417
  17. @bacos where do you see/read this method of setting the theme? It's never mentioned somewhere and it's not the way to do it. That setTheme is protected and not part of public API. Read https://github.com/somatonic/MarkupSocialShareButtons#themes
  18. Soma

    jQuery Not

    That should work fine. But I don't know what the markup is so there could be side effects for other hidden elements?
  19. What about 1.1.1970 then?
  20. The module states that it's not for 2.5. Last update 2012. Thanks for reporting. Maybe file an issue on github asking for update?
  21. It's rather: be careful of using PW dev, it can break your site. You'd never update a live site without testing it in a dev environment first.
  22. Strange is that: - Duplicate entry '41-0' for key 'PRIMARY' - Doesn't look like "pages" db table. Its primary key is "id" and that can't be "41-0". So I'm not sure. There's also indexes for parent_id and page_id maybe it's one of those. But then 41 would be "admin" and not guest. I got lot's of these when doing multilanguage back then when it was relatively new and had some bugs that took a while to get me into. /http404/ and "guest" definately hints at a script or module that is run via a layzcron or real cron, in a template etc. Sure a search for a "->save(" in your site folder might help to narrow it down.
  23. FieldtypeMulti hints to fields like a image, comments or pagetable field. The http404 hints at it's either the 404 page. Or a URL that is called that doesn't exist and that renders the 404 page but I'm not sure if that would result in a /http404/ (but could be). I have had errors shown and searched for hours until I realized it's a $page->render() I use in templates and the path the error logs was the url of the rendered page (partial) and not the viewed page. Or it's a export or import script (cron script) or bootstrap script. I think those also would end in a /http404/ as I had lots of these in the past. It might be a page name "41-0" in "pages" table. But since that not a PRIMARY it might be a language name field like "name1038" where 1038 would be the language id. See if you can find a page with that name maybe it's in any of the fields. Does it happen frequently, how many times, when. What modules have you installed. What fields. All might be a hint at where to look for.
  24. To all those with special cases. Why not just create an Rss manually? Few lines of code really. If after all you have to loop them anyway I don't see why use a module for it.
×
×
  • Create New...