• Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About zlitrox

  • Rank
  1. I want to clarify the reason i'll modify pwlink instead of using it. Our users/administrators need to be able to click on one button in editor, select the file and write a anchor text and from that input we'll then generate something like this: <span class="row"><a href="/path/to/selected/pdf" class="pdf-link">Anchor text written by user</a></span>
  2. I'm going to copy pwlink and modify to my needs but I'm stuck with the question: Where can i create the routing for my modal (iframe url that loads the form created in ProcessPageEditLink.module, in my case ProcessPageEditPDF.module)? PWlink uses: https://www.domain.tld/processwire/page/link/?id=10&modal=1&modal=1 I want to use: https://www.domain.tld/processwire/page/pdf/?id=10&modal=1&modal=1 How can i achieve that?
  3. Hi @kixe Thanks for your reply (and sorry for my late response)! I'm trying something like "2. CKEditor Plugin", but not with existing pwlink since it needs further customization. A couple of questions: I'm looking at /wire/modules/Inputfield/InputfieldCKEditor/plugins/pwlink/plugin.js but i can't figure out how to create my own modalUri (var modalUri = config.urls.admin + 'page/image/';). I want to create the following path "https://www.domain.tld/processwire/page/pdf/?id=10&modal=1&modal=1" so that i can implement my own modal. Where do i find this? Do i need to create a module in order to get the above link and be able to create a modal with custom input fields?
  4. Hi! I'm relatively new to the world of Processwire, but so far I'm really impressed by this CMS and its ease, power and speed. I've been looking at the different field types and also existing CKEditor modules (pwimage and pwlink). Here's what i want to achieve: I would like to use or create a own module which allows my admin users to upload pdf files inline in a CKEditor field (page content) the same way images are handled. It should be possible to upload a pdf file and specify its name and from the file uploaded and name i want to show an icon or image inline in editor and the output for that upload should be customized based on the module. Lets make it simple and say that i upload datasheet-1.pdf and want it to be named "My product datasheet", i want the output to be: <a href="{ link to uploaded pdf file }">My product datasheet</a> Also the uploaded pdf files should be related to the page the user is editing. Is this doable? Any guidance would be greatly appreciated! Thanks in advance. PS. I'm a PHP programmer so i know it would require some custom code, but the real question is where do i start, what should it take and is it even possible to do?