LAPS

Members
  • Content count

    57
  • Joined

  • Last visited

Community Reputation

7 Neutral

About LAPS

  • Rank
    Full Member

Recent Profile Visitors

183 profile views
  1. Thanks for the replies. @BitPoet your code works. It'd be correct if the check_access=0 handles/supports access to files too. What do you think about? Could it be an inbuilt PW feature? @ryan
  2. How can I make that (even though I think it's not the best solution since the check_access=0 should work also for accessing files )?
  3. @Tom. certainly! Here it is when rendering one image: somewords<br> <img src="/site/assets/files/1258/image.jpg" alt="img description"> The problem is that the image is not accessible probably because it is protected by PW even if I use check_access=0. Note: I edited the original post adding the check_access=0 in the selector for finding protected pages.
  4. @Tom. it works the same by using and not using '{' and '}' in the img tag. As you guessed, the problem still remains. Thanks anyway.
  5. I've set the template protected-pages so that only certain, non-guest user roles have access to view pages. I've also set $config->pagefileSecure = true in the config.php file so to prevents http access to file assets of access protected pages. In the protected-pages template file I use the following sample code (note use of check_access=0): $protected_pages = $pages->find("template=protected-pages, check_access=0, title~=somewords"); foreach($protected_pages as $protected_page) { echo $protected_page->title . "<br>"; echo "<img src='$protected_page->image->url' alt='$protected_page->image->description' />"; } The above code shows to guests the page title (as expected) but not the image. I would like to allow guests to access not only page titles but also image files of protected pages, and just for this occasion. Is it possible (maybe just switching pagefileSecure settings on/off at runtime)? If so, how can I make that?
  6. Hi @teppo, thank you. It works. However, I had to edit and re-save the page.
  7. Hi, I have a page for which I manage access so that guest users can not view it. This page has attached an image. Of course, the basic page access settings works as expected for guests by denying them to view the page. However, when I, as a guest user, access directly the attached image via its URL then I can view the image! How can I deny access also to the image?
  8. LAPS

    HI @adrian, I would like to try your PageProtector module but I have to know whether I can set the login (username-password pair) per page? If I understand it correctly, the username-password pair can be set globally and not for every single page.
  9. @BitPoet, now it works but only when using http://127.0.0.1:8888, not http://localhost:8888/.
  10. I am using ProcessWire 3.0.62 and I do not have languages active. I installed the latest version of ProcessMention, but I continue to get the '301 Moved Permanently' from http://localhost:8888/ADMIN-PATH/mention. However, if I use http://127.0.0.1:8888/ADMIN-PATH/mention, it seems to work a little more: I get a 200 OK response but the "list of mentions" is not populated because the response code is an entire HTML page (including css, js, etc.).
  11. @BitPoet, thank you for your effort. I tried your ProcessMention module, and it does not work (see below). However, ... ... I could suggest: In the README.md file > Installation, you can add the step "Copy ProcessMention.css and ProcessMention.module from the module folder to the site/modules/InputfieldCKEditor directory. ... I have to say: Rather than querying the server every time via Ajax to get mentions, you could cache the mentions client-side (in a hidden HTML element, local storage or JS config) - credit Of course, the output (e.g. fix positioning of selection list in plugin.js) is important. Regarding my issue with the ProcessMention module, when I type the e.g. @Sca text then the Ajax-HTTP request is fired but I get the following Network Headers: Note: In the image, the gray-covered areas are the path to access the admin of my PW installation. P.S.: I read the code and I would help someway, but I have to learn a little more about github and the languages.
  12. The browser cache was the problem. After clearing the cache, in the Edit Page view the Styles menu lists items that I set for it: CKEDITOR.stylesSet.add( 'mystyles', [ { name: 'Inline Code', element: 'code' }, { name: 'Inline Quotation', element: 'q' }, { name: 'Blockquote', element: 'blockquote', attributes: { 'class': 'blockquote' } }, { name: 'Small', element: 'small' }, { name: 'Deleted Text', element: 'del' }, { name: 'Cited Work', element: 'cite' } ] ); However, in order to make the <blockquote> to have the class="blockquote" I have to make more actions that it could be needed: Click the "Block Quote" button in the CKEditor menu. Focus on the "block quoted" text and select the "Object Styles > Blockquote" item from the Styles menu. Is there a way to add <blockquote class="blockquote"> within the CKEditor content avoiding the second action?
  13. My main purpose is to make it smarter for users to finding and linking pages inline while typing, and also make the linked text not modifiable. For example, a user should be able to "mention"/"suggest" a page by title and the exact title should be added to the CKEditor content, just as made in this forum for @users. It should be clear for users that it is not just linked text but something more than that. In the next future, I am also looking for retrieving some more page information on event "mouse over" the linked text.
  14. I see it really hard to implement the feature almost from scratch. I added it to the wishlist.
  15. It would be great if a PW module or tutorial for CKEditor autocomplete/mentions/suggestions will be available in the future. That is, something as what works in the "body" inputfield for posting on this forum by typing the '@' char and selecting the user in the showed list e.g. @ryan. At the moment nothing is available, even if one want to pay for it. Are there any plans to add such a feature?