-
Posts
1,348 -
Joined
-
Last visited
-
Days Won
16
Everything posted by Juergen
-
module Recurme – Processwire Recurring Dates Field & Custom Calendar Module.
Juergen replied to joshuag's topic in Modules/Plugins
You can realize this by creating own templates with the different views and call them via Ajax. There is no out of the box solution for this. -
Can I add information to the images displayed inside the body?
Juergen replied to Xonox's topic in API & Templates
Image interceptor is only a starting point. You need to write your own module that fetches all your Images inside the body field. Maybe you can use a class fe phpquery to get all your Images. After that you can write your prefered image markup. I use it to add a rel=lightbox attribute to images in the body. -
I can confirm this behavior too.
-
module Recurme – Processwire Recurring Dates Field & Custom Calendar Module.
Juergen replied to joshuag's topic in Modules/Plugins
hello @gebeer it is possible to add as much dates as you want to one day (fe. 100 or more if you want). You only have to create one event (page) for each of your events and make them recurring to your needs. So from the module there are no restrictions. It also doesnt matter if the starting and ending time of several events are the same on the same day. On the calendar view only few events are displayed for this day (depending on the space in the calendar row - see next image on the 6th). All others will be overflown. After hovering the calendar cell all events on that day will be displayed. If you are entering fe 100 events on that day (and I am sure you would probably not ) the list will be very long, but technically it would be possible. There are a lot of recurrence possiblilities fe. the first and the last day of a month every second monday every month,.... take look at the documentation. Jürgen -
Great site! Maybe you have to correct (adapt) the breakpoint value for the navigation. The main menu has 2 lines in my case before switching to the mobile view. Best regards Jürgen
-
Thats ok!
-
This little tipp is not especially for PW, its for all usages. There is a little class called php-store-hours which can be used to easily format opening hours. It is also possible to group days with the same hours like in schema.org markup. There are a lot of render functions available to get the markup that you want. Just take a look. Maybe it is something you are looking for. Best regards Jürgen
- 2 replies
-
- 12
-
-
module Recurme – Processwire Recurring Dates Field & Custom Calendar Module.
Juergen replied to joshuag's topic in Modules/Plugins
Here is a little Hook that I use to add the last date of recurring events to the end of publication field. Please copy this piece of code into your ready.php file. //dates = name of your recurring field - please change it to your field name //publish_until = name of your end of publication field - please change it to your field name // hook to add the publish_until date according to the last event date $pages->addHookAfter('saveReady', function($event) { $page = $event->arguments[0]; if ($page->hasField('dates')) { $dates = $page->getDates(); if($dates){ foreach($dates as $key=>$date){ if ($key === key($dates)) $enddateunformatted = $date; } $page->publish_until = $enddateunformatted; $enddateformatted = date('d-m-Y', $date); $this->message($this->_("The end date of the publication was set to {$enddateformatted}.")); } } }); In my case I use the the SchedulePagesModule to unpublish pages after a certain date. In this case the date field for unpublishing pages is called "publish_until". My recurme field in this case is called "dates". You have to add both fields to your template. Now I want to copy the last date of the recurring events to the "publish_until" field, so that the article will be unpublished after the last recurrence. For this purpose you have to add the code above to your ready.php file. If you have named the fields differently than "publish_until" and "dates" you have to replace this by your names. In a first step I check if the template has the recurme field "dates". If yes then I check if there are events generated. The last step is to grab the last occurence and add this date to the end of the publication field ("publish_until") - finished! After pressing the save button the last ocurrence date will be saved in the publish_until field and the article will be unpublished after this date. Best regards -
module Recurme – Processwire Recurring Dates Field & Custom Calendar Module.
Juergen replied to joshuag's topic in Modules/Plugins
Sorry, but I cannot confirm this behavior. Do you have set $config->timezone correctly in your config.php? In my case the dates will be calculated correctly. -
Hello @Robin S the problem is still there in version 0.0.3. Argument 2 passed to ProcessWire\InputfieldWrapper::insertAfter() must be an instance of ProcessWire\Inputfield, null given, called in /home/.sites/24/site1275/web/site/assets/cache/FileCompiler/site/modules/CustomInputfieldDependencies/CustomInputfieldDependencies.module on line 156 and defined Best regards
-
module Recurme – Processwire Recurring Dates Field & Custom Calendar Module.
Juergen replied to joshuag's topic in Modules/Plugins
Only just a thought: It would make more sense to offer only the possibillity to enter just a start date without a time. If there is a start time, there should also be an endtime. So if you remove the time setting from the inputfield for the date it means there is an event on that date which is all day long. If there is a need to restrict an event via a start and end time we can add 2 PW time fields to the template. This is the case if there is fe a course the starts and ends at a certain time. This looks better than using the time field from the module field for the starting time and another time field from another PW field type for the endtime (2 different fieldtypes with different looks). Another case would be that a store is fe closed on that day (inventory or something else). The shop is closed the whole day. So there is no need to enter a start time - it is an all day event. We dont need a start time in this case. Conclusion: I think a date only field without the possibility to add the time would be a better fitting solution in this case. If you want you can add 2 time fields to the template or not (depending on your needs). No mixin of 2 different fields necessary. Best regards -
module Recurme – Processwire Recurring Dates Field & Custom Calendar Module.
Juergen replied to joshuag's topic in Modules/Plugins
Looks really amazing. One question: Is there the possibility to limit an event to a certain endtime or to a certain date? Fe event starts at 6am and ends at 9am or an event goes over midnight (multiple days event) From the images above it seems that it will always be a whole day event. Best regards and respect for this work. -
No, this piece of code doesnt exist in the module file. I have added it at the top after the namespace and now it works. Thanks!!!! If a problem occurs once more I will post it here. Best regards
-
Hello @sunlix I have installed version 1.0.1 but this is where the error occurs.
-
Hello @modifiedcontent, my code above works in PW3 dev. I have modified a if function and this makes the problem. Removing the if statement makes the code working again, so this is an working example. Of course. This is only a temporary storage folder and the image will be deleted after this command: unlink($upload_path . $files[0]);
-
Hello @ all, it is possible to get the parameters of min and max dimensions of an image upload field set in backend via API on the frontend. I use an image upload field on the frontend and I want to show a hint for users that the uploaded image should be at a certain size. For this purpose I want to output the min and max sizes that I have set in the backend. Does anyone know how to get this values via API calls on the frontend? Best regards
-
Hello @bernhard, no it was independent if they were in a repeater or not. Image upload doesnt work at all. But as written above it works again without any interaction from my side.
-
Thanks for your response. I dont know why but today the image upload works as expected without changing everything. Yesterday I have been working on a frontend user template with image upload and afterwards I have tried to upload an image in the backend which didnt work. Maybe there is something strange going on afterwards. Anyway! It works now
-
Hello @ all, today I have discovered that the image upload in backend no longer works after upgrading to the latest dev. It seems that after the progress bar is full the image upload stops and will never get finished Aufnahme #6.mp4 Does anyone has discovered the same issue?
-
In my case I also had the problem that the map was not rendered. I found out that a javascript (in my case fullcalendar) for initialization was responsible for this behavior. So I decided to put it inline only on that page where I needed it and not in an external javascript file which is included in every page load. Another point was that if I turn template cache on the map will not be rendered too, so I disable the cache on the template where the map is included. So if you have problems, please check this 2 points. Maybe this solves your problem.
-
Hello @sunlix I get the following error after activation of the automatic markup of abbreviations. My site is multilingual and I use the lates PW dev version. Maybe a namespace/file compiler problem? Best regards
-
Great site! One recommendation: use an internal anchor after form submission to get back to the contact form if there are errors. At the moment you get to the top of the page and have to scroll down to the contact form to see the errors. Best regards
-
From the marketing point of view there is a strategy called "product bundles" which means you put at least one product which is very well selling into a bundle with lower selling products to increase the sales in general. Maybe thats the idea behind this. But its only a thought. I am also interested in buying just on or two modules, which I am really interested in. I am not ready to buy the whole stuff at the moment.
-
Great design, cool filter functionality and it loads really fast here in Austria. Good work!