LAPS

Members
  • Content count

    51
  • Joined

  • Last visited

Community Reputation

6 Neutral

About LAPS

  • Rank
    Full Member

Recent Profile Visitors

141 profile views
  1. Hi @teppo, thank you. It works. However, I had to edit and re-save the page.
  2. 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?
  3. 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.
  4. @BitPoet, now it works but only when using http://127.0.0.1:8888, not http://localhost:8888/.
  5. 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.).
  6. @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.
  7. 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?
  8. 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.
  9. I see it really hard to implement the feature almost from scratch. I added it to the wishlist.
  10. 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?
  11. Thank you, @kongondo. It is a starting point. In the meantime, hoping for other replies, I had a doubt: supposing that a CKEditor plugin exists for querying the server, to which URL/path of the PW installation the AJAX-HTTP requests should be directed to in order to find/return the pages?
  12. Hi, in the "body" inputfield for posting on this forum any user can be "picked" by start typing the '@' char and selecting the user in the showed list e.g. @ryan How can I make that in/for my body CKEditor inputfields? Is there a PW module of which I am not aware?
  13. Hi @elabx, thank you for your reply. I followed the linked instruction for CKEditor settings: I also added the <PW ROOT>/site/modules/InputfieldCKEditor/mystyles.js file but with one style for testing: CKEDITOR.stylesSet.add( 'mystyles', [ { name: 'Inline Code', element: 'code' } ]); However, in the Edit Page view the Styles menu lists items that I didn't set for (e.g. "Small"): What could be the problem?
  14. I am using ProcessWire 3.0.62 and Bootstrap 4. I have a CKEditor input field where, for example, I can add the <blockquote> HTML tag by clicking the related blockquote button of CKEditor. The CKEditor itself generates the following source code: <blockquote> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> </blockquote> In the Admin Edit Page view of a page using the CKEditor input field I can add the <blockquote> and see that it is properly outputted within the input field with pre-defined styling. However, it outputs just the <blockquote> tag, without any CSS. I would like to output the <blockquote> and format it "a là Bootstrap way" (<blockquote class="blockquote">) so that the output should be something as follows: <blockquote class="blockquote"> <p class="mb-0">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> </blockquote> In the Admin Edit Field view of the CKEditor there are lots of options (e.g. Extra Allowed Content, Custom Editor CSS File, Custom Editor JS Styles Set, Custom Config Options, etc.) and I tried to set someones, but without success for outputting the <blockquote class="blockquote"> as above, automatically (i.e. auto-adding the CSS class 'blockquote' when I click the blockquote button of CKEditor). Is it possible to make that by using PW-CKEditor? Is it the right way to proceed?
  15. @kongondo, I tried many ways to state that particular hook separately, including your that does not work. It seems that, even if the 'hookFunction' is called, within the 'hookFunction' the $object is not modified "persistently", maybe because it is not passed by reference. This way, the $object value modified internally to the 'hookFunction' is not modified for use within other, subsequent hooks-functions.