Jump to content

sambadave

Members
  • Posts

    59
  • Joined

  • Last visited

Everything posted by sambadave

  1. You really are a lovely bunch of folks ProcessWire people. Thanks LostKobrakai, that worked perfectly.
  2. Hi folks I have a parent page which contains a list of sub pages links. Each sub page link has a title and a picture. I'm also trying to make the background colour selectable from a range of options, using a page field. All the sub pages contain a page field called $puff_color. This page field is set up as a select box and pulls values from pages with title only, such as yellow, blue, gray, black etc. I'm trying to create a simple loop through all the child pages, whilst pulling these colours into the markup as a css class. I can't figure out why $puffColor doesn't show anything. I'm not great with php so any help or advice would be appreciated. Thanks <?php foreach($page->children as $article) { $puffColor = $article->$puff_color->title; echo "<section class='box-puff {$puffColor}'> <div>...other content...</div> </section>"; } ?>
  3. Hi guys Apologies for not responding sooner. I didn't receive a notification that you had responded. Thanks very much for all the tips. That gives me a good few options to work through. Terminal isn't my strong point but I'll give it a go and let you know how I get on. Lovely helpful bunch of folks you are indeed ... Oh and I'm using the free version of MAMP.
  4. I'm having a little bit of trouble since swapping from PC (running WAMP) to MAC (running MAMP). I managed to get my site copied across to my MAC local server and everything is running fine... but I've noticed that when I submit a form (originally created using the very awesome formbuilder) that the email doesn't send and I don't get any confirmation email either. Does anyone know where I might be going wrong or where a good starting point would be? I just double checked the form on my windows machine (running WAMP) where both the email and confirmation email sent with no hiccups. Any tips would be appreciated. Thanks
  5. Hi Ryan I downloaded the FormBuilder module yesterday and it is brilliant. Thanks for making this. I'm having a little problem though. When I tick the "Send an email to administrator(s)" checkbox and drop in an email address, that email address doesn't receive a copy of emails submitted through the form. I've tried a few different emails with no luck. Any ideas on how I might fix this? Ideally, I'd like my client to receive an email when someone tries to contact them using the contact form I've created. Thanks
  6. Wow, you guys are brilliant. That worked a charm. This forum has helped me out so many times. Thanks a lot. My next step is to see if I can bring in a grayscale version of an image using the pageImage Manipulator module at http://modules.processwire.com/modules/page-image-manipulator/. I'll try it out and see how far I get using your example above as guidance, before I pester you any further. Thanks again for all the help.
  7. Hey Soma Just tried that and it doesn't seem to work sadly. Can you think of any other ways of doing it?
  8. Thanks for the reply Soma, I'll try this when I get home tonight and let you know. I haven't tried that yet.
  9. Hi folks. First of all, I love this module, thanks Soma! I'm having a little problem though. I have created a page reference field "catColor" which is used by my templates. I've set up a number of reference pages that hold a title such as "green" or "red". Using the page reference field this displays a radio list of pre-defined colors (green, red etc) and my client can select a colour to be used to colour the nav item. I dropped this field catColor into the code like so: 'item_tpl' => '<a class="{catColor}" href="{url}" title="Link to: {title}">{title}</a>', The problem is that catColor pulls through a path such as "/colour/green/" when all I want it to do is pull through the title of the reference page "green". I'm not brilliant with php and have tried things like... 'item_tpl' => '<a class="{catColor->title}" href="{url}" title="Link to: {title}">{title}</a>', ... with no luck. Can anyone give me an example of how I would write it so that it shows the title from the page reference field only (.ie "green")? Many thanks in advance for any help.
  10. Hi guys I had the exact same problem and as a complete novice to MySQL and phpMyAdmin I was struggling to figure out what had gone wrong. Gnuey I followed your steps first as I seemed to understand the process a little easier and you had the same problem as me. It fixed everything, big thanks for the explanation. Arjen, in future would you recommend your way of doing things? It was a bit annoying having to rename my local database settings just to get it to work and this seems like a good way to tackle the issue... only now that I've got mine working I'm too scared to mess with it again and try your suggeston haha!
  11. Hi guys I'm going to be building my first processwire site for a friend. I've found a hosting provider and I just wanted to check that the hosting package has all the requirements I need to run a process wire site. From what i can see it does but I'm not too sure with these things. I'm a designer / front-end guy but I've never put a site live before so any feedback would be very helpful before I purchase. I would be looking at the Business package from this link http://www.uk2.net/web-hosting/#tech-specs Really enjoying processwire so far. Fantastic CMS! Thanks in advance for any help provided.
  12. Hi everyone, I'm in my first week of ProcessWire and loving it! I've next to no php experience but I'm figuring things out thanks to all your help on this forum. It took me about 5 attempts to understand this process but now I get it. What a clever way of doing this. It makes it so simple for the user to edit as well which is great. Thanks folks.
×
×
  • Create New...