Jump to content

Peter Knight

Members
  • Posts

    1,375
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Peter Knight

  1. Cheers Ryan I revisited the requirements page for the dev branch and noticed: PHP version 5.3.8 or newer.Once I upgraded the hosts PHP version to 5.5, it worked. My oversight but thanks for chipping in.
  2. Should I be able to add Authors in the Blog>Settings>Author page? Currently links to my author are throwing a 404 and I was sure that previouly, this was the correct space to add authors. PW 2.4.0 Also, none of my General Settings ar ebeing saved. When I open the General settings page, all the fields are blank. Populating anything and saving throws an error of: Can't save page 0: : Pages of type NullPage are not saveable
  3. Hi guys Just tried an upgrade from 2.4.0 to todays Dev branch and now have an error message. Whats the best way to diagnose? I can restore the old files but wondered if this was fixable?
  4. Hey dupalski Just out of interest, what kind of features on your site do you think might need either Modules or Extras? I'm a long time MODX user who has just started using ProcessWire so I understand your question. To be fair to both systems, they're both terrific and you really can't go wrong by choosing either. Particularly with a site as small as you mention. You're not going to make a bad decision so just get stuck in. The only thing I would say is to eventually give each CMS a proper go. I know time restrictions mean you have to choose between either CMS right now and roll with it, but I've found each CMS works a little differently and has different strengths. Knowing both can only make you grow as a designer/developer and it makes no sense to me how some people choose *a* CMS and stick with it at the exclusion of everything else. I haven't replaced MODX as my CMS but am simply broadening my toolset. What I will say about PW is that since "joining", I've found the community to be incredibly helpful. MODX community is very helpful too. But what I particularly like about PW is how communicative Ryan (main developer) is about roadmap, features, the upcoming release etc etc. Good luck with the site.
  5. So if we update to 1.2.2 will we loose any changes we've made in the interim?
  6. Agree. I'm coming from that CMS and I really like the ability to not have to rely on includes so much.
  7. Thanks Soma. Happy days @mr-fan Re. RTFM you're right. I need to familiarise myself with selectors more and how to use them. hazards of choosing a new CMS on a tight deadline.
  8. Can it be done with Soma's SimpleMarkupNavigation? It seems to have more control over setting the options but I can only seem to work it by starting at the root and not the parent <?php $treeMenu = $modules->get("MarkupSimpleNavigation"); // load the module $options = array( 'parent_class' => 'parent', 'current_class' => 'current', 'has_children_class' => 'has_children', 'levels' => true, 'levels_prefix' => 'level-', 'max_levels' => 1, 'firstlast' => false, 'collapsed' => true, 'show_root' => true, 'selector' => '', 'selector_field' => 'nav_selector', 'outer_tpl' => '<ul>||</ul>', 'inner_tpl' => '<ul>||</ul>', 'list_tpl' => '<li%s>||</li>', 'list_field_class' => '', 'item_tpl' => '<a href="{url}">{title}</a>', 'item_current_tpl' => '<a href="{url}">{title}</a>', 'xtemplates' => '', 'xitem_tpl' => '<a href="{url}">{title}</a>', 'xitem_current_tpl' => '<span>{title}</span>', 'date_format' => 'Y/m/d', 'code_formatting' => false, 'debug' => false ); echo $treeMenu->render($options); // render default menu ?>
  9. In MODX there's a snippet call Ultimate Parent. I use it for building sub-menus on the left navigation of my pages. IE Whereas my top nav would list all level 1 pages, UltimateParent would only list sub-pages of the current Page. Is there a PW module for this or would it be simply a case of using some PHP with the API?
  10. That would normally be my own setup. In this instance, it doesn't work. Well, it works for the homepage but any sub-pages dont work. I suspect my issue is one to do with my shared hosting environment Because the domain name has yet to be setup, I am working on on a "domain reference" where my hosting company names a folder on a server after the name of my site IE I have my rewrite based set to RewriteBase /mysite.com/ But my working homepage (until domain is working) is http://217.199.187.73/mysite.com/
  11. I'm having some problems with css, include and image paths and wondered what the advice was for the location of following assets (folder in root) - scripts - images - css Currently I have it in the root but perhaps it should be located in the default site/assets/ directory which comes with PW? Reason I ask is because I have a templates folder with a homepage and basic-page template located at site/templates. Both files are located in exactly the same level but both require different paths for the CSS Homepage only works with <link rel="stylesheet" href="assets/scripts/foundation/css/normalize.css"> <link rel="stylesheet" href="assets/scripts/foundation/css/foundation.css"> <link rel="stylesheet" href="assets/scripts/foundation/css/foundation-custom.css"> <link rel="stylesheet" href="assets/css/styles.css"> Basic page only works if I add "../" before above <link rel="stylesheet" href="../assets/scripts/foundation/css/normalize.css"> <link rel="stylesheet" href="../assets/scripts/foundation/css/foundation.css"> <link rel="stylesheet" href="../assets/scripts/foundation/css/foundation-custom.css"> <link rel="stylesheet" href="../assets/css/styles.css"> I should probably make the above into a single include but I'd rather solve this mystery first.
  12. Ooohhhh, what is fieldsettabs and where is the documentation?
  13. I was looking for a way to group fields within the admin today and came across this wiki entry which does just that http://wiki.processwire.com/index.php/Template_Tabs IE have fields nested under certain categories when editing a page such as General Content (heading/category) Summary (nested field) Body (nested field) Featured Content (heading/category) Homepage images (nested field) Homepage summary (nested field) I was wondering if there were plans to make this a little more straightforward and perhaps use Categories or Tags. We already use Tags to group fields on the main fields (admin >setup >fields) and could this be extended slightly?
  14. Thanks for keeping this open. Just had same question and found this thread
  15. Horst - finally got this to work. Updated the original thread here https://processwire.com/talk/topic/7270-3-cols-of-featured-content-best-practice/
  16. Hey uprightbass360 I was literally about to post an update when your latest post apepared. After days of getting nowhere and a looming deadline, I wondered if perhaps my issues were a result of a local environment so I reinstalled PW on my www hosting, setup all the same fields, templates, pages etc (zzzz) and the same code worked beautifully. The only changes I actually made were to set a max of 1 image on the image field. I think there was something locally preventing me from using CropImage properly on my local install. I can tell now because when I crop an image on my remote site, the image in the "featured_image" field reflects the cropped image. On my local install, the image was allegdely cropped but always displayed the fullsize image with the image field. Whew! Anyway, I'm finally moving forward again and building my clients site. Thanks everyone for the help.
  17. Cheers Horst. I'll get a chance to try again tomorrow. Appreciate the help.
  18. Hi Horst My field called Featured_Image is an image field as link below. It has field type seto to CropImage http://modules.processwire.com/modules/fieldtype-crop-image/ Currently it just has a single image within it,
  19. Can someone sanity check this for me? I have a field called "Featured_Image" and a crop setting called "thumbnail". To outout this thumbnail image, I am trying the following code: <img src={$featured->Featured_Image->first()->getThumb('thumbnail')} /> Currently it's throwing an error and I'm not sure if it means either My module isn't installed properly I'm calling the image incorrectly etc Error: Call to a member function getThumb() on a non-object (line 9 of /Users/mymac/Sites/SiteDev/site/templates/includes/get-featured.inc)
  20. I am getting an eror of: I think everything is set up correctly. I created an image field with the appropriate "CoprImage" type assigned it to the 3 pages I am calling content from setup a crop called "featuredimage" and set the settings to thumbnail,100,100 featuredimage,330,158 cropped the images manually via the popup crop interface and hit save So based on my pervious working code which displays fullsize images, this <div class="layer layer-is-featured"> <div class="row"> <?php foreach ($pages->get(1)->Featured_Content->find('limit=3') as $featured){echo " <div class='small-12 medium-4 columns'> <img src={$featured->images->first()->url} /> <h3 class='feature-heading'>{$featured->title}</h3> {$featured->summary} <div class='divider'></div> <a href='#'>Read more</a> </div> ";} ?> </div> </div> should change to this <div class="layer layer-is-featured"> <div class="row"> <?php foreach ($pages->get(1)->Featured_Content->find('limit=3') as $featured){echo " <div class='small-12 medium-4 columns'> <img src={$featured->images->first()->getThumb('featuredimage')} /> <h3 class='feature-heading'>{$featured->title}</h3> {$featured->summary} <div class='divider'></div> <a href='#'>Read more</a> </div> ";} ?> </div> </div> What does this actually mean? Call to a member function getThumb() on a non-object
  21. Small typo on the Modules page. Should be You can change the settings for each field in the Setup->Fields->CropImageField Input tab:
  22. By "the thumbnail generator", you mean the module I linked to above by apesia? Looks very cool. Thanks for the recommendation.
  23. Wonderful. Thank you so much. I'll try this on Monday.
×
×
  • Create New...