Jump to content

PhotoWebMax

Members
  • Posts

    246
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by PhotoWebMax

  1. Must try this!!!
  2. Tangential thread direction or not: I still like the idea...
  3. Nice! I just did all this (build SN links) manually with a new site last week... Look forward to checking this module out...
  4. I like the idea of a having a module(s) available for docs. Even though there are so many ways of building sites with PW there must be a solid basis for docs in module form? Maybe have a custom content input Field for site developers and end site editors that would allow them to customize specific site details. In the end I think such a system might be a welcome time saver for busy site developers. Documentation always seems like the unwanted guest at the (open source development) dinner party. Making it easier, more concise and effective is a real plus in my book.
  5. Already interesting...
  6. Like most newbies (I suspect) I am now exploring different Modules. To be honest some of them leave me wondering "how and when would I use this?" I bet most of you have favorites, a few oft deployed modules, that you reach for most of the time. I wonder if the most used modules would be the same for most of you? Anyways, I am interested (maybe others as well) in learning what modules you guys reach for most of the time... Thanks!
  7. Are all your portfolio items the same size? If not, what happens to the column grid system when using different sizes and orientations?
  8. Hmmm, is this the same tiger that is running amuck through the parks in Paris? In this case this site is for a skin/acne clinic. I like it when basic brochure sites for businesses offer something of value to the site visitor. Even if they do not use the business services directly its nice to have the reader come away from the site with some learning/knowledge/tips they did not know previously. Presenting some well written topical articles is a good option here. PS: I love news. I enjoyed a 20-year career as a daily newspaper photographer before my current gig as a freelance commercial/real estate photographer and part time web guy...
  9. I need to take a fresh look at the BBC site. I am a regular visitor to the Guardian site. They just did a major redesign. I have to say I prefer the old design better. The new system features a ton of boxes which adds a lot of extra scrolling on the user...
  10. Joss, I was thinking the same thing about the summary. The way I have it now is a cool automated system. But the thing I don't like about it is that the viewer lands up reading the same intro content twice: once on the parent container page and then on the individual full length post page itself. Creating a separate summary Field means there is an extra step for the editor that is producing these articles but the benefit is that the teaser summary can be anything the editor wants it to be...
  11. So far I am stabbing at adding quotation but I am getting angry red parse errors... Edit: I think I have it working now. More template housework to do though... The Articles container page template now looks like this: <?php include('./_head.php'); // include header markup ?> <div id="content"> <div id="mainColumn"> <?php // output 'headline' if available, otherwise 'title' echo "<h1>" . $page->get('headline|title') . "</h1>"; echo $page->body; // output bodycopy ?> <?php // start the news stories list echo "<ul>"; // get the stories for this page $stories = $page->children("limit=4, sort=-date"); // note if you set the stories to sort by date descending on the /news/ page // in the admin, then you can omit the "sort=-date" above. // cycle through each story and print it in a <li> foreach($stories as $story) { echo " <li><a href='{$story->url}'>{$story->title}</a> <p>date: {$story->date}</p> <p>by: {$story->authorName}</p>"; // make our own summary from the beginning of the body copy // grab the first 255 characters $summary = substr($story->body, 0, 255); // truncate it to the last period if possible if(($pos = strrpos($summary, ".")) !== false) { $summary = substr($summary, 0, $pos); } echo "{$summary}</li>"; echo "<p><a href='{$story->url}'>Continue reading...</a></p>"; } echo "</ul>"; // get values for our placemarker headline $start = $stories->getStart(); $end = $start + count($stories); $total = $stories->getTotal(); $num = $input->pageNum; $lastNum = ceil($total / $stories->getLimit()); // output the placemarker headline echo "<h4>Showing $start - $end of $total Article/s | Page $num of $lastNum</h4>"; // output pagination links echo $stories->renderPager(); ?> </div><!--mainColumn ends--> <div id="sideBar"> <?php include('./_sidebar.php'); // include sideBar markup ?> </div><!--sideBar ends--> </div><!--content ends--> <?php include('./_foot.php'); // include footer markup ?>
  12. If I look at the source code I see that the opening php tag is getting added to the markup. This throws validation errors as well. <?php // make our own summary from the beginning of the body copy // grab the first 255 characters = substr(<p>There are methods to treat dreaded red marks without undergoing drastic treatment. The treatment is different for everyone and depends on the particulars of your skin.</p>
  13. Another roadblock: I am building a new Article/News container page that presents a list of published articles. The format for each article I am hoping for is simple: Title: in an <a> anchor tag Date Author name Summary: first 255 characters from the Body content copy Continue Reading: also in an <a> anchor tag My Article post template (I have created the Date and authorName Fields) looks like this: <h3><?=$page->title?></h3> <div id='articleCopy'> <?=$page->Date?> <?=$page->authorName?> <?=$page->body?> </div> For the parent container Articles page I am using some code from a forum post by Ryan in my template: <?php include('./_head.php'); // include header markup ?> <div id="content"> <div id="mainColumn"> <?php // output 'headline' if available, otherwise 'title' echo "<h1>" . $page->get('headline|title') . "</h1>"; echo $page->body; // output bodycopy ?> <?php // start the news stories list echo "<ul>"; // get the stories for this page $stories = $page->children("limit=4, sort=-date"); // note if you set the stories to sort by date descending on the /news/ page // in the admin, then you can omit the "sort=-date" above. // cycle through each story and print it in a <li> foreach($stories as $story) { echo " <li><a href='{$story->url}'>{$story->title}</a> <p>date: {$story->date}</p> <p>by: {$story->authorName}</p> <?php // make our own summary from the beginning of the body copy // grab the first 255 characters $summary = substr($story->body, 0, 255); // truncate it to the last period if possible if(($pos = strrpos($summary, ".")) !== false) { $summary = substr($summary, 0, $pos); } </li> "; } echo "</ul>"; // get values for our placemarker headline $start = $stories->getStart(); $end = $start + count($stories); $total = $stories->getTotal(); $num = $input->pageNum; $lastNum = ceil($total / $stories->getLimit()); // output the placemarker headline echo "<h4>Showing $start - $end of $total Article/s | Page $num of $lastNum</h4>"; // output pagination links echo $stories->renderPager(); ?> </div><!--mainColumn ends--> <div id="sideBar"> <?php include('./_sidebar.php'); // include sideBar markup ?> </div><!--sideBar ends--> </div><!--content ends--> <?php include('./_foot.php'); // include footer markup ?> At this point the system is working but with two main issues: 1) On the parent container Articles page each article post will output the Summary and the full body copy. I only want the teaser Summary to appear here. The reader should click on the anchor link in the Title name or the "continue reading" link to read the full story. 2) I am getting unwanted output code at the bottom of the Body content that looks like this: , 0, 255); // truncate it to the last period if possible if(( = strrpos(, )) !== false) { = substr(, 0, ); } I have been messing around with this but can't seem to break through these issues. Any pointers here? Thanks!
  14. Mission accomplished... The Hanna Code module is pretty darn cool! I think this will work. I think site editors can handle this, so long as they know the Hanna Code basics. But creating good comments to the custom Field that deploys the Hanna Code module really helps. Its nice to learn one real thing each time I sit down with Processwire. Some days I go for broke and learn two new things... Thanks! EDIT: the end use of Hanna is very similar to the use of MODx chunks...
  15. Cool, thanks Guys. I have been meaning to take a look at the Hanna Code module. Sounds like now is the time...
  16. I am working on a new project for a skin clinic. On some of the main pages we have lists of treatment options and other stuff. I would like to target the specific list <ul> and <li> elements with cool CSS. I also need headlines for each list. For example on the Treatment Page we need the following: <div class="treatmentBox"> <ul class="treatmentList"> <li>Acne Surgery / Comedo Extractions</li> <li>Oral Antibiotics</li> <li>Cyst Injections</li> <li>Topical Antimicrobials</li> <li>Topical Retinoids</li> <li>Sulfur Compounds</li> <li>Birth Control Pills</li> <li>Aldosterone Antagonists</li> <li>Bioidentical Hormones</li> <li>Combination Products</li> <li>Chemical Peels</li> <li>Isotretinoin (Accutane)</li> <li>Treatment of Acne Scars</li> <li>Post-Inflammatory Hyperpigmentation</li> <li>Lasers and Light Therapy</li> </ul> </div> <div class="treatmentBox"> <h4>Natural Acne Treatments</h4> <ul class="treatmentList"> <li>Natural Ingredients</li> <li>Organic Products</li> <li>Diet Recommendations</li> <li>Naturopathy</li> <li>Eastern Medicine</li> </ul> </div> <div class="treatmentBox"> <h4>Over-the-Counter Treatments</h4> <ul class="treatmentList"> <li>Salicylic Acid</li> <li>Benzoyl Peroxide</li> <li>Ceramides</li> <li>Acne Treatment Systems</li> <li>Cleansers</li> </ul> </div> OK, I want this to be easy for the clinic to manage. They might need to change some of the list items. Be nice to have them manage this on their own. I do not want them to have to edit any templates via FTP to do this. What would be a good way to add these lists to a specific page? Just use the CKEditor? But I notice the CKEditor strips out the class name all the time. I can add the parent container in the CSS class name declaration, but that seems clunky? Or should I create a unique page for each list item and use a foreach loop or some other PW repeater to do this? I know this is one of those "there are many options" here, but I am wondering what you PW gurus would do in this case... Thanks!
  17. I guess the "holy grail" here would be a coded system that would take the end user to the "RickRoll" video of Rick Astley anytime they try to copy your photos...
  18. I stumbled across this: http://davidwalsh.name/image-protector-plugin-for-jquery I know there are always ways around protecting images and there are different browsers issues in this quest. But my question: have any of you found a good way to help protect your images on your PW sites? Thanks...
  19. I like the concept overall. Processwire is so suited to developers who do their own thing. Part of being flexible is having more than way to save time. Larger sites with multiple Templates and many Fields might benefit from these "lazy" ideas. Is there a way one could build a personal library of commonly used Fields (with titles, comments, etc) and then import them into other Processwire installations?
  20. Thanks All, The vintage camera is an old Box Brownie, once owned by my grandfather who I never met. Its the only thing of his I have. The shutter is sort of stuck; that and the two round viewport lenses sort of resemble a smiling face, or maybe a dwelling? I don't know. I like it. I do plan on adding some SEO to the site. I have meta Fields added to my templates. I still need to add that content. When I set about registering the domain I was amazed that seattle-real-esate-photography was not taken. I now get pretty good first page search results based on the URL itself. But there is more I can do. Thanks for the link. I have not done any marketing to promote this site. One of my tasks now is to contact local agents in my area. There are a lot of them. This is mainly a seasonal business. Its a part time thing for me but I really enjoy visiting houses. In order to make this pay you have to work very quickly though. The worst part is travel time and traffic hassles...
  21. I have been learning and experimenting with Processwire for a few months now. I have about five sites under development and its going pretty well for the most part. I wear several hats professionally. Doing some real estate photography is one of my sideline businesses. Here is my site: http://seattlerealestatephotography.com/ I received a lot of help figuring out foreach statements, some of the PW API, building a gallery system and getting html fragments to behave. I simply could not have done any of this without some really great help from this forum. Thanks! PS: there are still some more refinements I need to finish but most of the site is ready to go (I hope...)
  22. In this case I am not sure there is a point to this effect? But I am guilty of using navbar effects myself... Hmmm
  23. I have pretty solid connection speed in the house. What I notice is that on my Mac there is a nice smooth transition movement from one image to the next. That is missing on the iPad. On the iPad it looks like one image is switched plainly, without the little eye candy that I get on the desktop. This is by now means a real deal breaker. Just wondering if there is some specific iPad viewport code that goes into the head of my template, etc...
  24. Just finishing up my first PW site. I am using a basic jQuery script for my top navigation and the Fancybox slideshow system for the gallery. Everything works but I really notice that the script is not as smooth on the iPad as it is on a desktop system. Is there any code that can "help" increase iPad smoothness here? Thanks!
  25. Well, one of the main things that attracted me to Processwire in the first place was how to sell the backend admin to clients. I have explored several CMS platforms over the years but I have always focused on how smooth and workable the system would be for the end site owners. PW delivers in this regard...
×
×
  • Create New...