-
Posts
2,769 -
Joined
-
Last visited
-
Days Won
31
Everything posted by Martijn Geerts
-
Can't get it to work - $input->urlSegment1
Martijn Geerts replied to bwakad's topic in General Support
Did you read Soma's post ? If www.domain.com/provincie/drenthe/ does exists, $input->urlSegment1 is never triggered. $input->urlSegment1 is the part that should not exist. if you've enabled url segments for the select template type in www.domain.com/provincie/tralala/ (the tralala page should NOT exists) -
Can't get it to work - $input->urlSegment1
Martijn Geerts replied to bwakad's topic in General Support
you get them on the page that do exists. domain.com/im-the-curent-page/tralala/ so if im-the-curent-page is the current page, you have the variable from the URL Segment with the value of tralala on $page if ($input->urlSegment1 == 'tralala' ) { echo "Oei !" } or if ($input->urlSegment1 == 'tralala' ) { $just_a_page = $pages->get("name=tralala, parent=1234"); if($just_a_page->id) { $just_a_page->render(); } } -
Quote: foreach ($select as $page) { // do my thing Rings bells.
-
Thanks Adrian, several use cases I can think of to use this one !
-
@Raymond: If you read this, Can you please apply the patch Horst provided. Shit ! Read your message to late Horst. I successfully installed Imagic. For other users using the same setup as I do (Raymond, Arjen) I confirm that ImageMagick installer for Mac OS X is working. Big thanks to cactuslab! Sorry guys... Some how I thought this was working.. it doesn't..
-
On my machine Imagic Class is not loaded. This is on PHP Version 5.5.8. Darwin Czech-iMac.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64 Error: Class 'Imagick' not found (line 140 of /Users/martijn/Sites/domains/imagick/htdocs/site/modules/ImagickResizer/ImagickResizer.module) I can try to install Imagic as here is a how to do (never done this before) and I hope I will not screw it.
-
Very cool Horst, I'll see if I can find a gap within the next days...
-
Indeed, my function was not outputting, when smaller then the desired length. Sorry for that. // you don't want this line $length = 180; //modify for desired width
-
If you don't get to the root of your problem it will come back to you later on. I do expect the same problems for the back-end and recreation of the cache, so I think ProCache on it's own is not a solution. Nevertheless, those $39.00 spend for ProCache will be the best $39.00 spend this week I think. Sorry I can't help you more then this.
-
Unasked advise: If you don't trust that host, save money for the client and save the irritation you will get. Go run for it and search another hoster.
-
You can see that in the dev tool from chrome.
-
I don't know what is going on, but sometimes the form http://artandbrushpainting.com.au/form-builder/quote/ is generation a 500 64mb of memory is enough so what I can see for your website. ( think it will run on 32mb to if you don't need to scale images in the back-end. ) So I think there must be something else, mis configuration of the server ?
-
It should, It's a recursively explored structure of the object.
-
var_dump($page->template->fields);
-
Client: I can't login to the back-end ! We asked: What browser do you use ? Client: What do you say ? We asked: With which program you go on the internet? Client said: Mozzarella
-
I never used each() in my live
-
It's not totally wrong what you're saying, but their is more then meets the eye. <li>Result: <code><?php echo $page->child;?></code> and <code2><?php echo $page->child->id;?></code2></li> <li>Both will give you the ID of the <em>first child</em> page, starting from the current viewed page.</li> Ryan was so nice to use the 'magic methode' __toString() for the Page object, so excessing the object it self will out put a string with the page id | and output the integer id
-
500 horses is a lot, but consider that the editor know the horse by name and the search in ProcessWire is great. If the whole setup is complete consider a simple ProcessModule that lists not-yet-editted horses. set the "Allow to create a new page" to the page field. (father) It's likely that for the breeding program, some stallions are real lucky they have a lot of offspring, while others (example sport horses) have no offspring.
-
You draw this: -Home -- Stallions ---- Stallion 1 ---- Stallion 2 ... -- Broodmare ---- Broodmare 1 ---- Broodmare 2 ... -- Colt ---- Colt 1 ---- Colt 2 ---- Colt 3 I suggest: Home | +-- Horses ( enable urlSegments ) | +-- Name of the horse (add a Page field, [Stallions, Broodmare, Colt, etc..]) +-- Other horse +-- And another horse +-- etc. domain.de/horses/stallions/ -> stallions is a urlSegment, vallid segments are the ones from the Page field
-
This is one of my first sites build with ProcessWire. I had to conquer, almost the same things you have right now. In that time ProcessWire was not multi language by default. And I would do things different now.
-
Here's a lot of assumptions: I do think, that horses are born , it has a born date. The parent is always at least an x amount of time older that the recent horse. It's good to have a radio option for the gender: radio's (3 options, I think) - Stalion - Mare - Ruin ( castrated ) So fo find a father: It has to be NOT a Mare ( effectively it's a stalion or a ruin in his glory days ) And it has to be X amount of time older then the Current horse
-
You always can make a checkbox to enable a horse. Don't make a link to a horse where that checkbox is not set. And if a horse is accessed by URL, you can throw a 404 if the checkbox is not set. There are more possibilities here
-
Do invisible character mess up your webpage?
-
You'll end up to a parent where you don't know their parent. Evolution is a long long long process.... In the pedigree it would be nice that you can click all horses in that tree. And each horse have it's own pedigree. I do advise you to stop the Pedigree loop till x depth of parents reached.
-
You only need to know the parents to make a tree. As their parents have parent to and so on