Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/30/2013 in all areas

  1. Hi guys, Finished this one up in Jan, been meaning to post it. Have a few more that are done but need some final polish, I'll post those up soon. www.contactla.com - Pretty simple site, but client was extremely happy with the setup and how easy it is for them to change content/pricing tables. Can't really express how much I enjoy doing sites in processwire. THANK YOU RYAN !!!!!!
    3 points
  2. This is my first module, and you can see how it started on this conversation http://processwire.c...0302#entry10302 It allows you to add images from an image field to any place of a text area by inserting this tag {fieldname:n}, where "fieldname" is the name of the image field, and "n" is the position of the image in this field. It will output markup on this format: <img src='$image->url' alt='$image->description'> To activate it on a text area field, go to the DETAILS tab on this field EDIT page, and choose it from the Text Formatters options. edit: on version 1.1 you can output all the images from one field at once by giving a 0(zero) index: {fieldname:0} IMPORTANT!: At the same time as I built this module, adamkiss started building a more robust module with the same functionality http://processwire.c...ld-tags-module/. We decided to merge efforts on his module so, possibly I won't work on updating this one anymore. I'll keep the download file in this thread for reference though. EDIT: created a GIT repo for this module. For downloading the module, head to: https://github.com/ocorreiododiogo/PW-ImageTags
    1 point
  3. Hey guys, another green website from the processwire beginners based near munich. This website is our first REAL PW project - and (for us) one of the biggest sites we‘ve ever built. And actually the first one with a CMS/framework that we did totally on our own. So, don‘t be too negative - but don‘t be too positive either. http://www.roha-gmbh.de There are still many things that are not perfect yet, but since we started to design this website in 2011, it really was time to get it "into the wild" now! Many furniture manufacturers still haven‘t sent their best product images, so that is why there are still some lowres images in there. The project chapter needs some work on the photos as well, but that time will come... The site is not responsive yet, because it wasn‘t our main goal in 2011 - so we only wanted to get it working on tablets and phones, but without any special mobile styles. This will come, but that may take a while. The modules we used: - formbuilder - procache - redirects - versioncontrol - sitemapxml I‘m totally glad I found processwire a few months ago, because at first we planned to get that site done with pure static html. Which would not be TOO nice with about 80 html pages and many, many images (about 400). Finally a few "thank you"s to ryan, soma, diogo (for creating processwire and your help in this lovely forum) and to mademyday (for posting this on twitter, which made me read about processwire). Comments are welcome! Of course!
    1 point
  4. Hello Georgson, looks really great, very fast, displays nearly immediately on my asus transformer pad. i also like the professional clean look and the right sidebar with navigation and summary. could you tell us how you did all in processwire? one thing i noticed: the shadow right to the main navigation is too high when the main is too small.
    1 point
  5. Possibly what makes the most sense, is to just pass one variable? The developer can pass an array or a single string, or an object, e.g. for strongly typed view-models if wanted. If you did want to pass an array and have it extracted as local variables, all you'd have to do is call extract($data) in your child-template - it's not a lot of work...
    1 point
  6. Let's see if I understood you right. "1010" does not look like a title, but more like an id, so I'm assuming you've got a structure like this: /cities/ /munich/ /berlin/ /stores/ /store-1/ /store-7/ /store-12/ /store-17/ /store-22/ Every store-nn page is using template "store" which has a Page field called "city", allowing you to choose a city for this store. Now if this was the structure and you were on page /berlin/, you'd like to find two random children of /stores/ where you've chosen "city" to be Berlin. This should do it (not tested though): $children = $pages->find("parent=/stores/, city=$page, location_category=1065, sort=random, limit=2"); foreach($children as $child) { // ... } And if "city" really was a text field but otherwise I got your intentions about right, you only need to change "city=$page" to "city=$page->title" in the selector.Probably this isn't exactly what you're after, but hopefully it helps you to get there.
    1 point
  7. Ryan, I am all for white hat, but I know of sites that never did anything at all with link building, only focused on the best content on their topic, yet on april 24th last year many of those totally white hat sites also got totally floored, after the dust settled and it became clear what to investigate, and figure out the specific april 24 update, we ran backlink profiles on sites that had NO backlinks built to it that were not purely organic, in other words these backlinks just pointed to the site because other people just for whatever reason decided to link to the site. BUT the anchor texts just used one basic term tyoo often to g's liking. The back link profile apparantly incurred an algorithmic penalty. And the traffic went down the drain... And the other example I gave was because a company who built themes, thought it smart to have all these themes come standard with a link pointing back to the makers of it. I have come to grow into the conviction that it is not about white or black hat, there is something else going on here. It is about freedom, and about one big monopolithic party sending out bots sniffing everybody's sites and ripping all that content and throwing it into a database and then manipulating the database to present search results. And they make a living showing clickable ads on top and to the sides. All fine and dandy, play by the book, but the book now shows that if you get too many people linking back to your site with the anchore text processwire, the day may come that big ole g will just refuse to show your site even for our very own name. Don't ask if this will happen; it happened before and it still happens. So Ryan, if you are in for the long haul, and I hope and trust you are, imo you must guard and protect also your long term search results. And if you start asking for attribution links, you do well to realise you could be setting yourself up for consequential damage. And that would not be nice especially if it can be prevented. Now if you would have a module that does this, why would that be anymore white or black hat than asking for a link back to show what drives the site? Here's how I think about it more and more: I love my freedom, freedom to build sites with great content. And I respect g's freedom to sniff my sites and many other sites. And if based on what the g-bot finds it decides to put my site on top, more power to them. Ryan, you asked: "Would you install this on your sites knowing that the purpose of it was to come up with random variations on keywords to boost pagerank for processwire.com? :)" First of all, this is not about page rank, it is about showing up in the search results. Second: here's my reply question to you: do you Ryan, founder and bright mind behind processwire, want to totally hand over your search results future to an outside entity that is driven by bottom lines and will and does use algorythms to do stuff that can easily incur penalties to your bottom line? BTW, fine either way with me, I just wanted to chime in and add my 2 cents seeing you are treading dangerous waters if asking for backlinks, without controlling things that can do damage. Great CMF btw, I am loving it more and more!
    1 point
  8. Matthew is already working on a site directory for us, so he may have some thoughts too (?). I think if someone wants to put time towards making ProcessWire look good, that's always a good thing. One thing is for sure, we definitely need more showcasing of sites built with ProcessWire. If there is more than one showcase, I don't see that as a problem at all. Just more opportunity to reach a broader audience.
    1 point
  9. The minute I read this I thought: "You are gonne love ProcessWire" I've spent a horrible year using ExpressionEngine and my life brightened up when I gave ProcessWire a try. Enjoy.
    1 point
  10. Hi photoman, You do some complicated things not necessary Try this code. I'm adding an active class if $k is zero, which means we are in the first iteration in our loop: <?php $output = ''; $class = 'item'; foreach($page->testimonials as $k => $testimonial) { $active = ($k == 0) ? " active" : ""; $output .= "<div class='{$class}{$active}'> <img class='quotes' src='{$config->urls->templates}assets/img/quotes.png'> <p>{$testimonial->body}</p> <h6>{$testimonial->person_name}</h6> </div>"; } echo $output; ?>
    1 point
  11. Love it Georgson. It looks immediately professional, I love the type and my favourite part, definitely the navigation! Great job
    1 point
  12. EDIT: Sorry, looking at the InputfieldPassword sourcecode it seems the is no pattern support. But if you dont't need "verify password" you can use a simple InputfieldText and give it a attribute password ($field->attr("type","password");) and a pattern like below. ORIGINAL POST: I think you can use field->pattern like this: $field = $modules->get("InputfieldPassword"); $field->label = "Password"; $field->attr("id+name","password"); $field->required = 1; $field->pattern = "^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$"; //the regex pattern will be used for backend validation and in html5 browsers also for frontend validation $form->append($field);
    1 point
  13. I'd like to see something like this too. A subdomain would probably be best to keep it all in the family. Although the builtwith.pw domain is free available - for the moment.
    1 point
  14. Setting it in config.php always works for me but i've never enabled language support. If you enable this you would have to set it in the language pack, as per http://processwire.com/talk/topic/1751-cant-get-pw-to-output-german-month-names/?p=16345
    1 point
×
×
  • Create New...