-
Posts
23 -
Joined
-
Last visited
-
Days Won
1
Everything posted by lindquist
-
@Beluga: Dunno. Sorry but I don't have time to dig into this a lot. I would verify that the event page as received by fullcalendar looks right. Also you haven't shown your actual call to show fullcalendar.
-
@Beluga: aren't you just missing an echo ? echo executeAjax();
-
Thanks for the comments so far apesia, I did test tplaner/When, but the code is completely uncommented, and it has an issue that you have to make sure the start date (when expanding) matches the first occurrence. I ultimately failed to make it expand correctly. I tested simshaun/recurr as well, but TBH I don't recall what the problem was :-/ In the end I ended up using Sabre because it actually did the job correctly, but I agree it's quite large for this limited purpose. However, it does open up the possibility to provide iCal import/export etc later on if someone was interested in that. About the RRULE field, yes it's way too technical. Right now I have given my client a small document with the patterns she needs, that she can copy-paste from. But it would be great with a GUI to hide it away from the user
-
Hi I've been working on a site that needed a calendar. Specifically it needed a calendar with support for some rather iffy recurrence patterns. This is all still pretty rough but I have written two modules. Calendar : Implementes basic event recurrence expansion using four fields: calendar_start calendar_end calendar_rrule calendar_exdate these fields are created on install (but not removed!) and are added to the template: calendar-event which is created on install (but again not removed on uninstall!). the calendar-event template is intended to be expanded to represent the needed calendar event structure. The ProcessCalendarAdmin provides a calendar admin gui. the modules and a slightly more detailed readme can be found on github https://github.com/lindquist/processwire-calendar I'm not sure how much more time I can/will spend on this, so here it is in case anyone finds it useful
- 26 replies
-
- 23
-
That does not make a difference
-
Hi, it's essentially these few lines in my template $settings = $pages->get('/site-indstillinger/'); $menu_pages = $settings->main_menu_pages; foreach ($menu_pages as $p) { // echo page links }
-
Just to make it 100% clear. This is my page field The page IDs are as follows: And the database is as expected: So far so good. Now I rearrange the pages, say I move "Kalender" to the top. Then save. In the admin, it looks like it didn't work, when the saved page is loaded again, the pages are ordered exactly as in the first image. With "Kalender" in the bottom, it does not help to reload the page. However, the database IS updated: But ... the frontend still receives the pages in the same order as in the admin. Effectively making me unable to sort. I'm not sure what to look at now, I've looked a bit at the FieldtypePage module, but it's a bit heavy for my PHP experience :-/
-
The database looks to be updated correctly when I rearrange the pages and save, but it seems this order is not reflected when the field is loaded, both in admin, and in the frontend when I render the navigation.
-
I've not seen any errors :-/ Locally, I'm running "Uniform server" UniServer XI 11.7.2, php 5.4.39, mysql 5.5.42 My host is running 5.5.40-MariaDB-cll-lve , PHP 5.4.35
-
Sorry, I guess I was not clear. I have a field 'main_menu_pages', which is a Page fieldtype with the asmselect for input field type. I use this field in a "settings" page to specify the pages and order of entries in the main site navigation. the problem is that the order of the pages is not saved, but reverts when I save the "settings" page. now I've realised this, it works on my local "uniform server" where I develop. but it does not after I have uploaded to my testing host (for confirmation by the client before I replace her site). the selected pages are saved correctly, but the order is not. unfortunately I cannot log in to the hosting cpanel right now so I can't post versions etc from there. But I'm not sure how to go about debugging this. I can provide access if someone is interested in looking at it.
-
Hi, I'm using a pagefield to hold a list of pages, and asmselect for input. The field holds the pages to show in the main navigation. however, the order of the pages is not saved, always reverting to the same order when I save. I can add and remove pages, it's the order that gets messed up :-/ any ideas? I'm using 2.5.24 and it's the same with PageListSelectMultiple .. best, tomas
-
Hmm. I installed this module, set it up like this: when I attempt to make a query I just get this every time: is this module working with 2.5.21 dev ? idea?
-
Hi, I'm working on a calendar module for a site. I have a Process module that provides an admin page, which using fullcalendar, wraps up the creating of event pages a bit so it's doable for the client. Right now, I have the logic to provide a JSON feed of events in the Process module, and essentially the same logic in the templates to generate the event listing. I'm not interested in using fullcalender in the frontend for this site, so while the event are obviously the same, the Process module needs to generate a JSON event list, while the frontend template just needs to iterate the events and render them as it pleases. I'd like to generalize my code a bit, so that both the Process module and the frontend template can use the same code to generate the events, then just output them differently. That includes stuff like expanding recurrences - which right now is pretty much duplicated. I'm thinking it would be nice to have a $calendar variable in the templates, and I guess that would/could end up as a $this->wire('calendar') in the Process module, but I'm quite new to ProcessWire development (I've done a few sites where only clicking around in Admin and writing templates was necessary), so a few pointer on how to go about this and/or where to look would be greatly appreciated. I hope it makes sense Thanks in advance
-
Creating the field should be quite doable Thanks
-
I just tried a reinstall of the multi-language profile, when adding the new language (I name it "da"), the blank page is presented as I said, with this in /site/assets/logs/errors.txt 2015-03-03 23:32:51 admin http://127.0.0.1/projects/pw2/processwire/setup/languages/ Error: Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_title.data1020' in 'field list' (in C:\easyphp\data\localweb\projects\pw2\wire\core\DatabaseQuery.php line 106) #0 C:\easyphp\data\localweb\projects\pw2\wire\core\Pages.php(517): DatabaseQuery->execute() #1 C:\easyphp\data\localweb\projects\pw2\wire\modules\Fieldtype\FieldtypePage.module(170): Pages->getById(Array, NULL) #2 [internal function]: FieldtypePage->___wakeupValue(Object(User), Object(Field), Array) #3 C:\easyphp\data\localweb\projects\pw2\wire\core\Wire.php(365): call_user_func_array(Array, Array) #4 C:\easyphp\data\localweb\projects\pw2\wire\core\Wire.php(320): Wire->runHooks('wakeupValue', Array) #5 C:\easyphp\data\localweb\projects\pw2\wire\core\Page.php(831): Wire->__call('wakeupValue', Array) #6 C:\easyphp\data\localweb\projects\pw2\wire\core\Page.php(831): FieldtypePage->wakeupValue(Object(User), Object(Field), Array) #7 C:\easyphp\data\localweb\projects\pw2\wire\core\User.php(332): Page->getFieldValue('language') #8 C: not sure if this is helpful at all, let me know if there is something I should do. Thanks
-
Hi thanks for the reply. I didn't notice the multi-language forum, and I guess I must have searched only this one then ... I'm on MySQL 5.6.15 PHP 5.5.8 Looks like it's the exact same issue
-
I just tried with a Blank profile. After installing the language support module and language fields module, I added a language successfully. But I'm a bit afraid that I will suddenly break the site ... Should I just pretend this never happened? Should I use the stable version instead?
-
I'm running a EasyPHP installation on my Windows 7 box. I'm installing Processwire 2.5.21 , which works fine. Install succeeds (after upping the xdebug nesting level to 300), and I play around a bit. No problem. I install the multi-language profile. As soon as I go to "Add new language" and do that, when I click the Submit button, I'm presented with a blank page. Any attemt afterwards to view the site or admin panel is futile, and always just gives me a load of errors. Error: Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pages.name1020' in 'where clause' (in C:\easyphp\data\localweb\projects\hellehewau.com2\wire\core\PageFinder.php line 292) #0 [internal function]: PageFinder->___find(Object(Selectors), Array) #1 C:\easyphp\data\localweb\projects\hellehewau.com2\wire\core\Wire.php(365): call_user_func_array(Array, Array) #2 C:\easyphp\data\localweb\projects\hellehewau.com2\wire\core\Wire.php(320): Wire->runHooks('find', Array) #3 C:\easyphp\data\localweb\projects\hellehewau.com2\wire\core\Pages.php(199): Wire->__call('find', Array) #4 C:\easyphp\data\localweb\projects\hellehewau.com2\wire\core\Pages.php(199): PageFinder->find(Object(Selectors), Array) #5 [internal function]: Pages->___find('path=/backstage...', Array) #6 C:\easyphp\data\localweb\projects\hellehewau.com2\wire\core\Wire.php(365): call_user_func_array(Array, Array) #7 C:\easyphp\data\localweb\projects\hellehewau.com2\wire\core\Wire.php(320): Wire->runHooks('find', Array) #8 C:\easyphp\data\local This error message was shown because you are logged in as a Superuser. Error has been logged. Really not sure how to go about this. Any ideas? I'm interested in upgrading an existing to Processwire, but this is a pretty early showstopper so far :-( Thanks
-
Hi Soma and Martijn, It seems you're both suggesting pretty similar solutions. I guess it's a decent way to go about it. The only "downside" I can think of is that the client does not see which "banner" is selected visually until previewing the page (ie. has to remember which banner are which pages). It's really minor. Also this approac is very similar to what I'm already doing in a few other places, so I think I'll just go along with it. Thanks for the input!
-
Thank you for the suggestions. After giving this a bit more thought, basically what I'd like is: A field type "SharedImages" which 1) has a "global" or "shared" list of images between each instance of the field and 2) allows each instantiation to make a selection of images from that shared list. So two pages having a "SharedImages" field will show the same list of images, and have their own checkboxes or something to select which images they want to use. Am I asking too much? :-P I guess I should take a look at how the images field is implemented...
-
Hi. I've decided to use ProcessWire for the site I'm currently working on. I really like it so far! My client needs a fairly standard informational site and a "blog" (really more like a news feature). So far things have come together nicely. The designer I'm working with has provided me with a lot if graphics and I'm taking care of the coding side of things. Now, each page can have a "banner", basically a photo in the top, and some pages might share this banner. Right now I'm simply using an Image field, and picking a random image from that for the banner. It works. However, I'm thinking how to best make sure the same image resource gets used in the case that two (potentially unrelated) pages share the same banner... Right now I'm simply uploading the same banner image. Could it be possible to somehow have a shared list of images, and then have a field "pointing" to a selection of these? I'm sure it can be done, but I'm not sure what the best course of action will be. I'm quite experienced as a developer, but I'm new with PW, so I guess I'm mainly looking for some fairly specific pointers Hope it makes sense, I'm sure I will have more questions in time Thanks in advance - Lindquist