arjen
Members-
Posts
1,222 -
Joined
-
Last visited
-
Days Won
8
Everything posted by arjen
-
Switching fields to Language fields produces fatal errors
arjen replied to arjen's topic in Multi-Language Support
I did some more research. With PHP 5.5.3 and MySQL 5.5.33 (MAMP) the switching between PageTitle and PageTitleLanguage works fine with a clean install. But when importing the files from the other version it won't work resulting in the same errors. -
Switching fields like PageTitle to PageTitleLanguage gives errors like: Error: Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_title.data1011' in 'field list' (in /Users/xxx/Sites/xxx/www/wire/core/DatabaseQuery.php line 86) Both admin and frond-end gives this error. Installed (core) modules: Languages Support (1.0.1) Languages Support - Fields (1.0.0) Languages Support - Page Names (0.0.8) Languages Support - Tabs (1.0.8) ProcessWire: 2.3.9 (clean install with the latest dev branch - 0bb84e0d9fdd973376e5bbaaa1e1e4cf4fcc8c5c) PHP version: 5.4.17 MySQL version: 5.6.14 When I try the same files on another MySQL version 5.1.54 the changing works fine. Does anyone knows if this is MySQL related and how to fix this? Thanks!
-
What ID are you getting when you echo $pages->get($cityid)? You might want to wrap into quotes like $pages->get("$cityid").
-
You guys hooked up? Like a ProcessWire marriage? I must have missed that one. Good luck on the new business! Great work on the website. Looks really, really good.
-
No, I just use it nowadays for a simple sign up form and as a tool to sync user with mailchimp. This module is pretty basic and can't send e-mails or someting. You might want to take another approach and set up a simple PHP mailing system with PHPMailer or use something like Mandrill if you want to see statistics.
-
Yesterday your feed was empty, today it's there. Must been a Digg issue. I just tried your other url too and this times it worked instantly.
-
Absolutely love your technical drawing skills.
-
Will check it out. Seems well worth the 30$.
-
Digg Reader didn't seem to pick it up. Added it manually and it seems not to pick up any posts. Strange, but Digg is sometimes strange. Still looking for a Google Reader alternative.
-
Hi Teppo, any change you could add a rss feed? Just made a folder in my reader app with some ProcessWire blogs (since soma started one) but I can't seem to add your blog/website.
-
He did it. Just subscribed and looking forward to your posts.
-
Modifying $page->rootParent for multisite setup
arjen replied to Neil_Haskins's topic in Getting Started
There are similarities, but most seem pretty different too. I don't really know if I should do this if the sites are really different on front-end side. If I could manage to design a (design) template-like structure with different colourschemes I might do it. -
@pwired, kind of you to help, but OllieMackJames posted the thread in the jobs board
-
Modifying $page->rootParent for multisite setup
arjen replied to Neil_Haskins's topic in Getting Started
It's not a stability issue. We've been using the multisite on several sites and it's working fine. The issue could be that if the sites all have different fields and templates you create a sort of frankenstein. On the sites we've used it on, the subsites are pretty simple and straightforwand basicly only using a basic-page template. I understand where you are coming from. We never did a project like that, but I would use ProcessWire to setup something like the thing you are describing. If you can provide the sites you are describing we can take a look and give a more detailed advice. -
<img src="logo-<?php echo $user->language->name; ?>.png" alt="" /> This will give you the name of the language. So you either make sure you change the language name or the filename of the images to make sure they match.
-
Hi Sinmok, I don't think there is another option but namespaces, but this isn't supported yet (read the whole topic it has a bit more information).
-
Everyone learns different. I tend to think I'm like you Martijn. First read as much as you can then explore the code. Some others dive straight into the deep. @Chris: you can use Google to search the forum. I.e. the query "site:processwire.com wire function" would have given you loads of information.
-
Getting started with User Profiles and related Tables/Fields
arjen replied to i3i2uno's topic in API & Templates
You're welcome. It takes some time to get used to the 'simple' way of thinking, but after a while you see the greatness of the simplicity and you build all kinds of this stuff. Do not hesitate to ask more questions.- 5 replies
-
- 1
-
- Users
- related tables
-
(and 2 more)
Tagged with:
-
Modifying $page->rootParent for multisite setup
arjen replied to Neil_Haskins's topic in Getting Started
The strategy you are describing is somewhat similar to the Multisite module by Apeisa. Read the thread for more info and you'll find that Soma rewrote the module. I don't know how wise it would be to create that many sites using this strategy since you'll end up with a lot of templates and fields if the sites are all different in their approach or needs. -
Getting started with User Profiles and related Tables/Fields
arjen replied to i3i2uno's topic in API & Templates
There are a couple of ways to accomplish this from creating your own inputfield to using templates. This is how I would do this. You create a template called 'donations' (/donations/) and a template called 'donation' (/donations/donation). You create a called 'donations'. You add the donations fieldtype to the user template - be sure to enable "Show system templates" in the filter option above the templates in the admin. Now you can create a donation through the API: // Create a new donation page $donation = new Page(); $donation->parent = $pages->get("/donations/"); $donation->title = "Some random title"; $donation->amount = 10; // Or any number $donation->save(); // Assuming the right user is logged in $user->donations->add($donation); $user->save(); And it is saved in the Page fieldtype with the users. As a reference see the excellent cheatsheet by Soma and Ryan. You sure need some code for a user to login, to process the donation itself, bit this gives a basic example of how to save through the API. Note: this is all written in the browser so it might generate some error.- 5 replies
-
- 2
-
- Users
- related tables
-
(and 2 more)
Tagged with:
-
You do know you can make tabs and close a field as well?
-
Integrating a member / visitor login form
arjen replied to thetuningspoon's topic in General Support
Offcourse you are right Soma. I was just pointing out as a reference since it's in the directory. Quality coding should be taking serious. That's why most of my modules aren't there (yet) -
Couldn't you create a date field which saves the date/time when a page is getting trashed using a hook? Then you should have a reference to make a selection.