Jump to content

Soma

Moderators
  • Posts

    6,798
  • Joined

  • Last visited

  • Days Won

    158

Everything posted by Soma

  1. I'm currently prototyping an new website at work, I'm using jquery ajaxy plugin to provide browser forward/back function and make pages bookmarkable and still function without javascript ( for search engines ). I used $config->ajax in templates to exlude header and footer. currently available at: http://zueblin.update.ch.update.nine.ch
  2. Thanks Ryan. Yes, I did it like you suggested with extra fields. I'm ok with this, only I'm thinking about: wouldn't then the "Hidden:.." settings be redundant? Edit: Oh yes, thanks for pointing out the include=hidden, forgot about that, wich solves part of the issue.
  3. Well in my scenario, I have like 5 page templates, and at the end I found out I need a "hide in navigation" and a "searchable" checkbox across all pages. So I thought I try this option...
  4. I can imagine. Do you need any support on this? I think this will be one of the more important module for me/us. If there would be no easy way to handle a multi language site with language SEO urls, it would be a dealbreaker.
  5. Thanks Ryan for the info. I think it can be handy in certain circumstances to create a field across all templates, but then it would be great to be able to select the templates you want to attach the new field and what position, without going to each template and manually attach it. As it is now, you're not felxible and it still would be neccessary to go to each template and move it to the place you want, so no real timesaver... I would be ok with having as advanced feature.
  6. It would be good to have a settings on page to set if page is searchable. Right now there's under "Settings" the option to "Hidden: Excluded from lists and searches" BUT what if I wanted to hide only from searches results, but still be able to use in lists $pages->find() on them if the affected pages are only used as a container. To archive that I need to create two extra checkbox fields to all templates. "Searchable" and "Hide from Menu". What if we would have 2 options instead: x Hidden: Excluded from lists. x Search: Searchable
  7. As far as I know, there's no way to define a default value for a field. What are your thoughts about this option? I think it can be desireable in certain cases.
  8. Question: What does the option "Global" do? "If checked, ALL pages will be required to have this field. It will be automatically added to any fieldgroups/templates that don't already have it. This does not mean that a value is required in the field, only that the editable field will exist in all pages." I created a checkbox and checked "global". But the Field doesn't appear on any page...
  9. I reported an issue 2 days ago that is something similar when creating page manually: https://github.com/ryancramerdesign/P21/issues/41 you could enter more replace functions to your need.
  10. If so, I use to play since years and even run a local Go club. Go, also known as weiqi (china) or baduk (korean), is a ancient asien strategic boardgame using only white and black stones. It's usually played on a wooden board with 19x19 lines, stones are played on intersections. It's around 4000 years old and while there's only a few very basic rules it is highly dynamic, komplex but very elegant. It's about sorounding enemy stones while creating own territory. There's a large community playing live and on online servers all around the world. If interested here you'll find more informations Wiki ie: http://en.wikipedia.org/wiki/Go_(game) Contact me if you need any more infos or help. I would love to get anybody involved or get a game or two.
  11. Recently thought about similar things that could be done with new html5 and the like Now that we have the file api, wouldn't it then be possible to see a preview thumb of a selected file in the page edit before saving the page?
  12. Actually that's a very nice and simple to use plugin I also used (after trying some datatable plugins) in some codeigniter projects, with ajax and themeroller styling, especially like the cookie state save option and sortable, filterable. It was very nice as my apps also uses jquery ui. Would be nice to have such a feature for very large lists. Wasn't this already discussed somewhere?
  13. Here's a new version of the modules section collapse module. Added count and +- Hope it's useful for someone. Edit: updated first post with github repo.
  14. Thanks for the help, but can't get it to work... checked files and tried all different variations.
  15. I changed to addHookBefore('Page::render',.. It still doesn't load the script.
  16. Still, the add error is gone but script isn't added. Any Ideas? <?php public function init() { $this->addHookAfter('Page::render', $this, 'loadJS'); } public function loadJS($event) { if($this->process == 'ProcessModule') $this->config->scripts->add($this->config->urls->ModulesSectionCollapse . "ModulesSectionCollapse.js"); }
  17. Thanks Ryan, that's great. I thought there must be something like this, but couldn't figure it out yet (was too lazy). Now I'm trying this and It doesn't work with addHookAfter Page::render: Fatal error: Call to a member function add() on a non-object in /var/www/domains/zueblin.update.ch/site/modules/ModulesSectionCollapse/ModulesSectionCollapse.module on line 65 This error message was shown because the site is in DEBUG mode. SO I thought the hook must be different but can't get it work. addHookAfter Page::loaded etc... Can you give me a hint? Thanks.
  18. Thanks Pete. Yes, I also thought about this after I've done the TOC. Here's a even more simple module that collapses the sections, and uses the sections titles to toggle the module table. The new ModulesSectionCollapse Module is attached. Edit: updated first post with github repo.
  19. I think it's possible to override tooltips, not sure anymore. I just thought something custom that's delayed ~1 second and use a span or div that can be styled... you're right they can be very annoying. But then I just step back and think, but hey! they already can be displayed by using custom label fields in the template advanced settings... PW is a dream come true.
  20. Hey, my first, just a little module to generate a TOC with links on top of modules page for overview and easing navigation. Not sure if there's already something similar planed already for the Modules page in the core. But none the less, it was fun to try out captain Hook Just cleaned and checked this baby in: https://github.com/somatonic/ModulesSectionCollapse
  21. I just wished the page tree label link would have a tooltip that shows id and path/name when hovering... just figured it has a title attribute that acutally already shows the path. It just seems it takes ages in chrome to display them (2-3 sec). May a tooltip function to progressively enhance to show the html title attr would help for consistency and additional control? Now thinking , I would like to have it display the id aswell. (i know it's in the url of the edit toolbar link, but for the normal unexperienced user it could be handy) And why not have have all important ui links have short hints as to what they might do? Those of course should then be translateable (is that even a word? ) when having multilanguage admin.
  22. Just installed, nice idea! Thanks for sharing. But, wouldn't it be an bit of a issue to redirect visitors to the PW login page? It's not what I would expect, the /processwire/ path that's usually something you want to hide. Nice would be to just not render the page and put the put a message instead (that can be customized), or maybe even define a custom page/path to redirect to. And let the /processwire/ still accessible for those who know.
  23. Very cool module! Thanks a lot Ryan! I'll have a look and try out soon.
×
×
  • Create New...