Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. No I'm logged in with a editor user. Admin and guest user are excluded yes but others visible. Have you enabled edit access to the user template for editor role? Yes the unpublished users don't have a strikethrough as I think it was missed to add.
  2. Did I already say I love you?!
  3. Ahh, sorry now I get it, forget it unless you want to really create one. The administer user permission of course... I don't know why unpublished users would be invisible, maybe unintended. Just tested also and it seems to work fine.. I see unpublished users and can create and delete, edit users.
  4. What breadcrumb in the world shows the page your already on?
  5. I actually wouldnt take the route to give editor admin rights just for this. It relatively simple to create a dediacted admin page that lists unpublishes users. It much more confident to do this. Let us know if you need example.
  6. PW keeps surprising you for at least 2 years
  7. Using published option is actually worst and most unelegant. You then can't use published anymore... Option 2 is the simplest and most elegant way to go. If you have no template file you can't view them directly. It's there for this reason.
  8. http://processwire.com/talk/topic/745-module-want-related-pages/page-3 Actually you can just do $articles = $pages->find("category=$cat, limit=10"); It will return pages that have $cat sorted by score. $cat can also be a page array. See edit If you want to even go further and sort them also by modified date, take a look at the module I linked on top. Edit: Actually looking at my module code again, this is the way using PW selector query only. But this way you can't sort them by more than 1 field and it's not near as optimized as the direct sql version. foreach($tags as $tag) { $found = wire("pages")->find("categories=$tag, id!=$page->id, limit=$limit"); foreach($found as $r) $rel[$r->id]++; } // build PageArray and add "score" property $pa = new PageArray(); foreach($rel as $key => $score) { $pa->add( wire('pages')->get($key)->set("score",$score) ); } Now $pa hold the pages and can be sorted by "-score"
  9. Yes addHook is to add a new method to whatever you like. addHookProperty is to add a property to the object. addHookAfter/Before is hooking into events like save etc. You could also go with something like $page->image->greyscale(100,100)->url; and just leave out the size() and do it in greyscale. Endless possibilities.
  10. Yeah, you'd have to do the whole procedure like the Pageimage size() does. Depending on what you want to manipulate, maybe you don't need additional image generated... Anyway, If it's about greyscale a image, I would do it like this in CSS: http://jsfiddle.net/KDtAX/487/ , but maybe not a solution in all scenarios, Opera and Safari5 doesn't seem to work. Edit: Also if you want to have it like $image->size(100, 100)->greyscale(); you already resize and get a new image with size() so why generate one again?
  11. Option 1 or better 2. is the most elegant if you don't need to be able to view those anyway. If you don't have links or urls to those data pages, spider will not find them anyway, so nothing to worry about.
  12. I'm trying to create a Multilanguage profile export. I have changed the title to be PageTitleLanguage. Now the export went well, but when I try to install the profile I get this error Unknown column 'data1011' in 'field list' It installs and all works except that the title field is back to a normal title field, and all titles are gone (empty). Which means it doesn't work.
  13. Wanze why, you're already here This is correct. Just the hook function would be like this. public function greyscale(HookEvent $event){ $img = $event->object; $arg1 = $event->arguments[0]; // do things with image // return image object for chaining $event->return = $event->object; } Which would allow you to do things like: echo $im->size(10,0)->greyscale('arg1','arg2')->url;
  14. But it highlights the images field and ask to really change template then deletes entries in db but physical images stay.
  15. When I change template of a page with images (in this case of home in default install) and the new template has no images field, the images resist in the assets folder. Is something on my local server or is this unintended behaviour? Since image are still there and when I change template back with images field, they also aren't reinserted, which means they're not in database. So they're lost in nowhere.
  16. Superuser always has access but it might need to have access check at least thats what the error suggests. Tick guest give view access and try again.
  17. Why didn't you just modify the home template fromt he beginning. I never needed to change it to another template. I think you messed up with the root with access and changing template to a custom with no access yet defined, now you don't have access to modify it again? Not sure at all what happened
  18. Is it possible you didn't see the "language_published" field to define published languages individually? Without this field it will throw 404 not found. It's in the module setting at bottom: "Page field name for defining the languages that are published. Create a field i.e. language_published of type 'Page'. Under Input > Selectable Pages, set the template to the one you use for the proxy pages. Set input field type to checkboxes. Set inputfield type to checkboxes. You also want to include a check in you selectors for navigation or lists to determine if a page in the current language is really published." It's also explained in the readme here https://github.com/mcmorry/PW-language-localized-URL/blob/master/README.md#enabling-specific-pages-for-specific-languages Though if this field is not installed/created to the templates, it will just show default language. I'm also creating a little install profile with this module installed and working.
  19. Just let me know when I can refresh Captain Hook.
  20. Ahh sorry, should've seen it, I was talking about page references themself showing links to the linked pages Your's is the other way round... got it.
  21. What I meant was for accessibility only the app like for mobile is available. Works nice thx for sharing mats
  22. Cool idea but isnt it too disconnected from the page fields? I have somthing similar but inside below the page select.
  23. There was request for a project to do something exactly like yours. It even had to be accessible wac2 aa+. I said its not possible as the mobile version of gmaps is only as app available and not for gmap api. Maye I'm wrong but the budget wasnt there to make everything possible as it even had to be responsive. I also dont have the expertise to do it in a reasonable time.
  24. Those two urls are the two language localized urls generated by the module using the language title for each language on the page. That's what the module is for. It's the same page but different urls. en/about/ => /about/ de/ueber-uns/ => /about/ So the language title is taken of the /about/ and not the name. Since there is only one name field, the module takes for example "Über uns" and runs it through sanitizer->pageName() to generate the url which then becomes "ueber-uns".
  25. You must create only one language_gateway template and create the pages /en/ /de/ with it. It only needs a title field. Also you need to create a empty language_gateway.php file. Enable urlSegments on that template too if you haven't. The module will take the title to use as the urls segment, name isn't used. So urls would be: domain.com/en/about/ domain.com/de/ueber-uns/ if you get a 404 on all those urls event with domain.com/about/, does the site work without language url module? I think it would be good to have a profile with the module enabled and working for those wanting to start.
×
×
  • Create New...