Jump to content

asbjorn

Members
  • Posts

    182
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by asbjorn

  1. I am trying Markup Regions for the first time on a site these days. And I have read Markup Regions Front-End Docs at ProcessWire.com. There is says that "pw-" and "data-pw-" is doing the same thing. Although I get different output when I try both in the same situation. E.g. when I am trying to append a <script>-tag, I need to add data-pw-append=footer. With just pw-append, it will output the script above <doctype> and <html>. Also, I need to use data-pw-append inside a php function, with pw-append the same as above happens. Other places, I cannot recall exactly where, the opposite happens. Where I have to use pw-append instead of data-pw-append. (Or pw-id instead of data-pw-id). Is this normal behavior? Is there any more documentation on usage I have missed perhaps?
  2. I solved this with a work around. I checked if a page was modified in the last hour. If it was modified, I did not run the function. If it was not modified in the last hour, I run the function. That way, I could set the LazyCron to fire "every30Seconds".
  3. I'd like to set up a LazyCron function that fires every hour on each page that has a template named "post". So far I have gotten the function running. But when it has fired once on "Page with Title A", it takes and hour before it is fired again on any other pages. It makes sense, hooking the function with wire()->addHook(). What I want to do, is to get the function to be fired with LazyCron individually for each page. So that "Page with Title A" fires every hour (if it has pageviews), and "Page with Title B" is fired individually and possibly during the same timeline, if it has pageviews. Is this possible? Or might there be another way to utilize a sort of LazyCron on individual pages?
  4. I am exited about the search module that will be added to ProDevTools. Do you have an estimated time for when that will be released? @ryan
  5. A rather large update today for this language pack. Including a lot of new modules, some new Pro modules. And core translations for the 3.0.133 dev version. As usual, the translations is not complete. And some typos might exist.
  6. Something similar to this WordPress plugin is what I wonder if someone has seen / been working with? For ProcessWire.
  7. I am running on a PRO ISP (Norwegian) server with cPanel, Imunify 360, ModSecurity turned on and have recently (after 2 years without trouble) gotten some trouble with ProcessWire and the PageField AutoComplete showing a 403 notification in the ProcessWire Dashboard. The scenario is the following: I have a import script that collects data and creates ProcessWire pages and references in a four different PageFields. The data is collected from a JSON. The import might fire "too many" edits at the same time, and therefore the Imunify 360 security module in cPanel will try to prevent it. Afterwards, after the import (which works well) have been done, I want to edit a few of the PageFields manually, but when I type in the AutoComplete input field for the PageFields, the notification in ProcessWire only returns a "403.shtml" error. I turned off ModSecurity temporarily and managed to edit the field. Any one have an idea how I can whitelist ProcessWire with my import? (I can provide more details if necessary).
  8. @Craig A Rodway: Is this module compatible with ProcessWire 3.0+?
  9. I have been searching a while for pre-made UIkit 3 themes that I can download in some form and use. But I have not found much. I work with variables and compile most times, but sometimes I would prefer working with a "finished" theme as a starting point I have found the following resources: https://github.com/zzseba78/Kick-Off https://github.com/uikit/awesome-uikit Do anyone else know of UIkit 3 themes that you could list?
  10. Perhaps it is ACF and / or HTML Purifier. They are both turned on. I tried adding this, with no luck: ol[reversed]
  11. I am trying to get the following to work in CKEditor (inline editor): <ol reversed> With no luck. Other options, like the one below seems to work. But the reversed is stripped from the text. <ol start="50"> Anyone tried reversed, and got some pointers?
  12. As a follow up question to the first paragraphy solutions provided. Is there a way to get "the rest of the text" output? A way to exclude the first paragraph? The result I am looking for is to output the first paragraph from a body text field, then an image from an image field, and then the rest of the text from the body text field. So there might be other solutions?
  13. Has anyone worked with ProcessWire and Google My Business API on getting (blog) posts published to a business Knowledge Panel? I wonder if there is an "easy" way to set this up in a ProcessWire page template. Source: https://developers.google.com/my-business/content/posts-data
  14. I have previously been using uppercase URL in $page->image->URL for browser cache busting query string purpose. Is this compatible with MarkupSrcSet? My current image url is $page->image->srcset('860x0,/2,/3').
  15. I got the following error in my error logs, and am trying to find the source of error. Has anyone experienced this error before? guest /http404/ Error: Exception: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '41-0' for key 'PRIMARY' (in /home/vidnokts/public_html/wire/core/FieldtypeMulti.php line 295)
  16. VID (https://www.vid.no/) is searching for a Norwegian-speaking developer for development of all kinds: Updates, tweaks, possible major updates, as an adviser, and more. There are no concrete plans for new big projects as of this moment, but we're always taking our website a step further. So development of any size could and will arise. It is therefore important that you are open for development of all kinds. Some facts: We use GitHub. We stay updated with latest version of core and modules. We are fans of UIkit. We are interested in new ideas, more effective ways to work and think details are important. Send a message if you are interested. Got some projects you are proud of? Send us a link in your message as well!
  17. I'd like to see HTML5 attributes for hyperlinks, such as download, media and ping, when editing links in ProcessWire (with CKEditor) . Download is the one I'm using myself, but I'm mentioning the other ones as well. More information at New HTML5 Attributes for Hyperlinks: download, media, and ping.
  18. This will be a one-way sync (as I mentioned in my second post in this thread). The data will only be updated in the Directus database. No editing on these data will be done in ProcessWire. Also said, but in other words: When the data is imported (to ProcessWire) and kept updated/synced, I will be able to use the ProcessWire API to handle the data as per today. Meaning no extensive recoding of templates and so.
  19. I still have the need for ProcessWire to create a page for each item in Directus database. And be able to update the title if the item changes. And also I would prefer to keep working with the ProcessWire API, because of the way the end point for this import («person pages») is integrated with the rest of the website.
  20. The one-off task was rather easy, and I have managed this using the php sdk as you mention. But I'm not sure about how to go further, setting up a continuous synchronization. One-way, from Directus to ProcessWire. I'm new to this way of thinking (working with APIs). Should I use «cron jobs» of some sort? Or rely on Directus «pushing» when something is updated? Any good ideas are welcomed. Maybe this post could also be a heads up to others who are new to this …
  21. Has anyone integrated Directus with ProcessWire? I have a database in Directus that I want to sync with ProcessWire (create/update/delete pages). But I don't not know where to start. It might be possible with ProcessWire's API in some way?
  22. I've only ever seen ?s=1 back-end when saving before, not front-end when clicking Save + View.
  23. When clicking on Save + View , the system adds ?s=1&c=0 on the end of the URL. Is that related to some changes in 3.0.60?
  24. Thank you, @abdus, your solution worked. So it buys me some time to figure out what happened with my initial setup.
×
×
  • Create New...