Jump to content

Orkun

Members
  • Posts

    293
  • Joined

  • Last visited

About Orkun

  • Birthday 10/10/1996

Profile Information

  • Gender
    Male
  • Location
    Switzerland

Recent Profile Visitors

5,381 profile views

Orkun's Achievements

Sr. Member

Sr. Member (5/6)

82

Reputation

7

Community Answers

  1. Nevermind. I solved it by also checking the "language" argument when some is present.
  2. Hi Guys I have made this hook here to "deactivate" the default language with a click of a toggle/checkbox. The thing is my hook here works only when I am on that specific page. How can I make it work inside e.g. inside a foreach loop where I output the language switcher (when the user language isn't english)? KR Orkun
  3. Hi @kongondo Found this thread https://processwire.com/talk/topic/24718-create-field-with-tags-enabled/ And I could fix it by disabling the tags option on the mm fields and then re-enabling them. Looks like the mm version (0.1.2) I had installed on my old installation is not the latest one because it looks like you fixed the issue https://github.com/processwire/processwire-issues/issues/1287 Is there a new version of MM (0.1.3?) available? KR Orkun
  4. Thanks @kongondo I will try that. Now I have encountered another problem with the media manager upload itself. I have installed it on the new system and also did all the access related adjustments. PW Version: 3.0.194 PHP Version: 7.3.33 When I try to upload media it shows that it was successfull in the console (Ajax POST Request). But when I switch to Tab "all" it doesn't show any media. It looks like it creates the media pages but there is no actual media uploaded. When I edit the media pages I get this warning: Did I forgot some setting that is causing this? KR Orkun
  5. Hi @kongondo What is the easiest way to transfer all Media from one processwire installation to another processwire installation where media manager is installed? What I thought about is the following: 1. Create a JSON Feed with all the absolute URLs to the PDF Files (Our customer only needs the PDFs from the old Installation) in the old Installation. 2. Create a little Importer Script which imports the data from the JSON Feed into the Media Manager in the new Installation. For Step 2 is there any appropriate API Methods from MM available which I could use, or do I need to setup a native pw import script where I set parent, template and value for the file myself? Additional Questions Is it possible to fetch the locations (used on the field (CKEditor or MM Field) on this page) where each media has been used? KR Orkun
  6. Hi @Robin S Thank you! It now uses the page which the repeater lives on. Have you ever witnessed this? Perhaps I should add it to https://github.com/processwire/processwire-issues/issues ? KR Orkun
  7. Hi Guys PW-Version: 3.0.183 PHP-Version: 7.4.25 When I try to insert an Image inside a CKEditor Textarea Field (inside Repeater Field), the ProcessPageEditImageSelect View always looks for the images inside the first repeater item page and not on the one I am inserting to. Is this intended behavior or a bug? And Is it possible to tell ProcessPageEditImageSelect (e.g with a hook?) to use the page which the repeater lives on instead of the repeater item page? KR Orkun
  8. I have a PageTable Field called "Inhaltselemente" which is placed twice on a template. Once normally and also inside a FieldtypeFieldsetPage Field called "Sidebar". When I try to create a new Element through the Pagetable inside the FieldtypeFieldsetPage Field it doesn't work. After closing the Modal it will render the current ProcessPageEdit inside the pagetable Field instead of the created Elements. And when I refresh the Page I only see a empty pagetable field. KR Orkun
  9. Hi @Zeka Have you found a solution for this? We also have a hook to Page::path. After the upgrade to PW3 the view links inside the processpageedit page doesn't work anymore or better said the hook doesn't have an effect there. KR Orkun
  10. Hi Guys Is it possible that the pages::publishReady Hook is not triggered for repeater Pages? The pages::unpublishReady Hook works fine on my site for repeater Pages. KR Orkun
  11. Am I right, that when I attempt to change the default value of a Select Options Fieldtype, that it will only change the Field Value (or better said the displaying of the selected Radio on the Page Editor) of Pages that were created back in the days but were never saved afterwards? Every Page that was saved back in the days with the old default value will remain as it is now am I right?
  12. @kongondo I know that the page will be cloned to the right parent. But what I am trying to achieve is, that the cloned item should appear in the pagetable table itself (see screenshot). There is no real connection between the pagetable field and the pagetable item.
  13. @kongondo The Form is rendered by the ProcessPageClone Module, this is natively and I haven't created the form or the logic behind it. It was already there.
  14. @kongondo My idea was to add a Hook to renderTable() where I use str_replace() to replace this part of the return string: <td><a class="InputfieldPageTableDelete" href="#"><i class="fa fa-trash-o"></i></a></td> with: <td><a class="InputfieldPageTableDelete" href="#"><i class="fa fa-trash-o"></i></a></td> <td><a target="_blank" class="InputfieldPageTableCopy" href="/processwire/page/clone/?id=xxxx"><i class="fa fa-clone"></i></a></td> And then also add a little bit of JS to replace the "xxxx" part with the right Item/Page ID by looping through the items. I would get the ID from the parent HTML tag (<tr>) where it is placed as a data attribute: <tr data-id="2133"> <td> <a class="InputfieldPageTableEdit" data-url="/processwire/page/edit/?id=2133&modal=1&context=PageTable" href="#"> <i class="fa fa-edit"></i> </a> </td> <td><a class="InputfieldPageTableEdit" data-url="/processwire/page/edit/?id=2133&modal=1&context=PageTable" href="#">News</a></td> <td>News Teaser</td> <td> <a class="InputfieldPageTableDelete" href="#"><i class="fa fa-trash-o"></i></a> </td> </tr> When I would click on one of these "new" clone urls it would open up a new window with the rendered clone form where you can submit it to clone the corresponding page. But this way the new cloned page won't be added to the pagetable. KR Orkun
  15. Hi @kongondo Sorry but I don't quite understand for what I should need the parent_id when I would clone the items pages with /processwire/page/clone/?id=xxxx Shouldn't the url above already clone the corresponding page in the right place? What I meant is, when I would clone such a page it wont be added to the pagetable table here (see screenshot) and that is what I am trying to achieve. KR Orkun
×
×
  • Create New...