Jump to content

adrian

PW-Moderators
  • Posts

    11,263
  • Joined

  • Last visited

  • Days Won

    374

Everything posted by adrian

  1. Thanks again! I just spent some time revisiting this a bit. It's a bit more complicated that just removing trailing, commas, spaces, tabs etc because it is possible that these might be intentional if someone wants an empty value for the last field on the row. I have implemented a bunch of extra checks to make sure fields/pages etc can't be created without a name, so you shouldn't ever get the unnamed field issue anymore. I have also tried to make sure that the first row has no leading or trailing misc stuff so that the fields get properly created. But with the subsequent rows I allow trailing commas with nothing afterwards in case it is meant to be blank. I just tested with this mess and it looks to be fine: , ,Title, Number of Beds>Integer, Number of People>Integer, Kitchen Facilities>Text ,Single, 1, 1, Fridge Only, Double, 2, 2, Fridge Only Suite, 3, 6, Full Kitchen , Would you mind trying again at your end to see if I have still missed something? Thanks Adrian
  2. Ryan is working on a very comprehensive changelog for 2.5 which will be published on the blog hopefully sometime next week when 2.5 becomes official. The current soft release of 2.5 will be superseded by 2.5.2 as the official stable version.
  3. Hi seedle, Firstly, 2.5 is the current stable version so you should grab that instead. As for page/pages: http://processwire.com/api/variables/page/ http://processwire.com/api/variables/pages/ I am not really sure what information you need, but to clarify, wire('page') is effectively the same as $page, but due to PHP variable scope $page is not available inside your own functions, inside PW modules, or on a script that is bootstrapped to PW. That is when you need to use wire('page'). Same goes for all the PW variables: wire('input'), wire('sanitizer'), wire('user') etc. If you are wondering what $page and $pages are actually for. Basically, $page gives you access to all the fields on the currently viewed page on your site, eg: $page->body $pages gives you access to all pages on your site - you can query the pages you want using selectors, which are Processwire's version of database queries. It sounds like you might benefit from reading through some of the new tutorials: http://processwire.com/docs/tutorials/ and of course the cheatsheet: http://cheatsheet.processwire.com/ Hope that helps!
  4. Thanks again Steve - great 2¢ suggestion I have set it up using your second option and I think it works great. I have also added a fix for the blank fields / extra commas issue. Please let me know if you find any problems with it.
  5. After you have, convinced everyone that PW > WP (presumably that will be the outcome ), what about adding one more video showing how easy it can be to migrate WP content to PW using MigratorWordpress? Maybe Nico or I could help with that?
  6. Yeah, that would be the problem I'll sort out a fix for that sometime later today when I get a spare minute. Thanks for discovering the issue. As you use it more, also please feel free to send through any other suggestions for improvements. I have to admit I am really enjoying the changes to suggested - it does make things cleaner!
  7. Hey Steve, Sorry about that - I am assuming you are using Option 2 to create the selectable child pages. I am guessing there is a problem with my parsing of the comma separated field names / line breaks. I went for a very rudimentary approach instead of str_getcsv Can you send me the text you are using to create your pages so I can try to duplicate?
  8. This sounds like a great idea - I am very intrigued by the enhancements you have added and would enjoy having them, but I honestly don't think I would ever install it because I like having access to the latest improvements to the core modules, rather than waiting for these to propagate to third party modules. I would love to see a way to extend themes, rather than needing full replacements. Maybe we need to propose something along those lines to Ryan? From what I understand Reno is an extension of the default theme, because you can't use Reno without default also installed, but maybe the process can be refined to make it easy to extend with some minimal code.
  9. Take a look at Martijn's extended version: http://modules.processwire.com/modules/markup-rssenhanced/ I think that does what you are looking for.
  10. Do you want to generate an RSS feed, or parse an external one and render it on your site? I think maybe you want the latter, in which case, take a look at this module: http://modules.processwire.com/modules/rss-feed-loader/
  11. Hey Martijn, A little typo for you. The module shows up as: Fieldtype Json https://github.com/Da-Fecto/FieldtypeJson/blob/master/FieldtypeJson.module#L28
  12. What version of PW are you running? There were some changes made to fix a bug with 5.6 just before PW 2.5 was released, so if you are running PW 2.4, you should upgrade. Otherwise, let us know and we'll look further. EDIT: Sorry - Missed that you mentioned you were using PW 2.5 already!
  13. I would probably go with JSON, but CSV could probably work too. HannaCode has an export/import function that you could take a look at. Another suggestion - you could have the ability to add new element declarations - most simply maybe just one per line in a textarea field like so: #element1ID : #990000; margin-top:30px; #element2ID : #009900; padding-left:10px;
  14. I can't seem to reproduce here trying from the Children tab - sorry! But I figured out the publish problem - I was testing on an install with a not configured field. Publish works fine once that field is properly sorted.
  15. I love this - I have been wanting easy skinning (rather than theming) for PW for a long time. One thing missing is the ability to color the entire title bar in AdminThemeReno - the menu icon and search box is a different class. Also I don't think it is currently possible to edit the sidebar colors? Only other thing is a typo - you have breadcrumbs spelled wrong. And, there are two entries for 6. Color Set 2 Awesome!!! PS You need to add a way to export/import settings so we can easily share
  16. Interesting - I am not seeing that behavior, although I did see something like it with the API, but was fixed here: https://github.com/ryancramerdesign/ProcessWire/issues/425 What I am seeing is that I can't Publish the page when using the Name Format for Children option. Doesn't matter how many times I save it, unless I uncheck "UnPublished" - then it will publish. Unless someone else chimes in shortly with any hints, I would recommend a Github issue for Ryan and point him to this thread.
  17. Sure, you can do something like this in your selector for date/time, which would return all results after the current time. find("your_date_time_field>".time()); For repeaters you want something like: find("title|my_repeater.my_field~=$q"); Hope the helps get you going.
  18. Not really sure if this helps or not, but it seems like you have a field that doesn't have a fulltext index defined (stating the obvious I know), but if you can separate your search into two parts - one for fields that are working using ~= or *= and then problem field using %= and then appending the results of one search to the other, you might be ok. I think to start it would be good to figure out which is the problem field. Can you try listing the fields manually and work that out?
  19. Check out PageTableExtended - works great for sortable content blocks.
  20. Try this in your php.ini xdebug.max_nesting_level = 200 That should take care of the nesting error. The forged request should go away with a browser reload.
  21. @Rob - going back to your original request - this is pretty much exactly the reason I built Batch Child Editor. It might suit your purposes better than a generic modal edit button.
  22. Have you checked the permission on the templates that are allowed as children of the template assigned to the page that you are expecting a new button on? So the parent template must have Add Children and the child template must have Edit Pages and Create Pages for the author role.
  23. Hey Ivan, Just testing here to confirm and the url segments are not being included in $page->url for me. Not very helpful I know - maybe someone else will have an idea why you are getting different behavior.
  24. I handle this exact scenario with a combination a PageTableExtended for block content control and make one of those blocks have a FieldtypeJson field. This may not be for the average user since it initially requires pasting in CSV data, but once in, it is a nicely editable table and really easy for you to output formatted table exactly how you want. If your users are already trained up with Markdown then it may not be too much of a stretch.
  25. Fixed in dev: https://github.com/ryancramerdesign/ProcessWire/commit/63692bdda65090032d4d5a0c29475263ea707bf7
×
×
  • Create New...