Jump to content

operat

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by operat

  1. @Robin S Setting the header in the vanilla JS XMLHttpRequest solved the actual problem. $config->ajax works as expected, now. Thank you! @Zeka A quite useful hint, which helped to improve the code. Thanks!
  2. I have a "Data" page, whose template file does not contain any HTML markup, as it only collects several data, prepares it as JSON and returns it like this: return json_encode($data); It generally works, which is fine obviously. However, when I access the page address in the browser, I can see the JSON text – which is the expected, but not the wanted behaviour. Is there a way to return the JSON only, when the page is requested with AJAX and redirect it, when accessed directly? I'm aware of $config->ajax. For some reason, however, it's never 'true', hence doesn't have any helpful effect here. Any thoughts or advice? Thank you!
  3. That's awesome. Thank you very much!
  4. Hi, I had bought a Pro Fields license last year and the license has expired just now. I wonder whether I have to buy a renewal NOW, to keep the renewal conditions alive, or whether I can do it LATER, at any point in time, whenever I feel like I need updates and support. Thanks for your help.
  5. A great helper tool, awesome work! Should really be included in the modules directory!
  6. I also had the "Unknown error, please try again later" problem, when trying to access the pagelist. For me, it came in combination with the "Warning: touch(): Utime failed: Operation not permitted in /var/www/html/wire/core/FileCompiler.php" error on practically all pages in the admin area. Both problems could be solved with deleting the /site/assets/cache/FileCompiler/ folder. An explination could be this: https://processwire.com/talk/topic/14825-error-on-new-server-warning-touch-utime-failed/?do=findComment&comment=133045
  7. When logging in to a new ProcessWire instance that was freshly installed with a site profile exported from another instance (contains modules, settings etc.), all the imported modules are not active. The modules are there, but not recognised by PW. You have to manually refresh PW via Modules > Refresh. I find this rather uncomfortable. It would be very useful, if you wouldn't have to think of additional steps after a "successful" installation; if you could simply install PW, throw a site profile at it and would be ready to go. Is there a way to achieve an automatic modules refresh after installation or after initial login? Thanks for your help!
  8. I'm still unsure, so I'd like to ask again: I added styling for the image with the help of the Admin Custom Files module (http://modules.processwire.com/modules/admin-custom-files/). Is there another/better/recommended way to go?
  9. Sorry, didn't mention I was using Reno. Now it works. Thank you very much! I added styling for the image with the help of the Admin Custom Files module (http://modules.processwire.com/modules/admin-custom-files/). Is there another/better/recommended way to go?
  10. @BitPoet thanks for your quick reply! The genaral approach works, which is great! However, this hook adds the <img> as the first element in the #masthead. What I would like to achieve is, adding something like <li><img src="path/to/your/logo.png"></li> as the last element in #topnav. What needs to be changed?
  11. I wonder whether it is possible to customise the admin navigation in a way that makes it easier to distinguish one ProcessWire instance from another. What I have in mind, is a small image/icon somewhere in the top navigation bar, which visually identifies the current project (see attachment). That would help a lot! Is it possible?
  12. @LostKobrakai @adrian – thanks for the quick replies! I had a brief look at the Repeater Matrix field. It looks pretty good and might be just what I was looking for.
  13. Hello everybody! What I'm trying to achieve, is a flexible input field, where content editors can choose between predefined layouts. Let's say I want these three layouts: 1) "layout-text-columns" with three Textareas, 2) "layout-text-image" with one textarea and an image upload form, and 3) "layout-quote" with a textarea and a textfield for a name. They should be optional, repeatedly selectable, and rearrangeable. They should be just very flexible. I understand, that in ProcessWire the PageTable field can do exactly that, in terms of functionality. So far, so good. What confuses me with PageTable, is the visual representation in admin. It's rather strange to see the field entries displayed in a static table. I find it a little odd, that I have to choose which table fields to display, when probably the only field all the layouts have in common is the title. That's not very pretty, and not very handy! I'va had a view at PageTableExtended module – but I don't want rendering of table row layouts. What I want, is a proper flexible content view in the admin, where I can see at first sight, what layouts are arranged in what order and what they contain (just like Flexible Content ACF Pro does in WordPress). Is there a field type I don't know about or another way, to achieve this? Thanks for your help!
×
×
  • Create New...