Jump to content

adrian

PW-Moderators
  • Posts

    11,176
  • Joined

  • Last visited

  • Days Won

    371

Everything posted by adrian

  1. Fair enough. Just in case you don't know, that module does easily support manual creation of the link. Based on it's default configuration you could do something like: http://www.ourdomain.com/r/aprilevent2014/ but you can change the "r" to something else if you wish. Regardless, maybe the redirects module is cleaner for your needs.
  2. It really is a great looking color scheme. I love that you've built a modern site that is still so functional. I have to admit to being more than a little frustrated by some of the current interfaces being developed these days. Great job!
  3. Ipa, Have you seen this module: http://modules.processwire.com/modules/link-shortener/ I think this would be a perfect use case for it.
  4. Noticed an issue with the dropdowns and user permissions. I gave an non-superuser permission to administer users. The Access menu then appears, but nothing drops down from it, other than a small square - just a few pixels in size. The same thing actually happens when I add a "Tools" main menu item using diogo's Custom Admin Pages module. Again, the dropdown won't work unless the user is a superuser. On an unrelated note, I think the new site link should open in a new tab by default so no-one will lose any unsaved edits.
  5. Just wanted to confirm that I am seeing the same issue as Macrura. If you need a quick fix for a live site, you can grab the templates-admin folder from the last PW version before Ryan introduced the module theme technique and this module will look as expected again.
  6. Here is apparently a working solution for Infinite Scroll in PW: http://processwire.com/talk/topic/5189-pagination-markup-question/?p=50019
  7. Yep, you can definitely customize the fields from the events example. That module, although useful in its own right, was meant as an example to be modified to your needs. Let us know if you have more questions once you dive in!
  8. Glad to help. Just one thing - from what you describe, it sounds like you are editing the core ProcessPageAdd module. You don't want to do this, because you'll have to make these changes again every time you upgrade PW. Instead you should create your own simple module using that code. Read here for a tutorial on creating your own module: http://wiki.processwire.com/index.php/Module_Creation
  9. Gotcha - I had seen that code of Pete's sometime ago, but had forgotten about it.
  10. Hey Marty - looks great. Only comment I have is that it would be great to have a cleaner looking version of the hotel logo. It looks like there is no antialiasing on the text. I know how hard it can be to get good quality logos from businesses sometimes though
  11. As with any custom import you will need to get your hands dirty. The array in that php export will certainly make the import possible. I would suggest setting up all the required fields and templates in PW initiallyy. Once you have that ready you'll need to write a script that loops through the $GLOBALS['immotool_objects']['01-21'] array, grabbing each piece of information and adding it to the appropriate fields in PW. I see that the array has a "de" field, so you'll want to make sure you have PW multi-language setup and configured before you start. This really is only a rough start, but hopefully it will help get things moving for you. Actually this probably isn't even a rough start - there is a lot to accomplish, and I don't really have the time right now to put together a working example. I am pretty sure none of this code will work as is, but hopefully it gives you an idea of an approach that might work for you. $p = new Page(); $p->parent = $pages->get("id of parent page"); $p->template = $templates->get("property_details"); //or whatever you want to call the template foreach($GLOBALS['immotool_objects']['01-21'] as $f => $v){ if(is_array($f){ foreach($f as $l => $v){ $p->{$l_deutsch} = $v; } } else{ $p->$f = $v; } } $p->save(); There will be a few special cases: images - you'll need to convert the name of the image from the array to a full url to the image so you can add it using the PW API. fields such as distance_to_city_centre that have additional components - ie not just the default 'value' and 'de' components. Some things you should read: http://processwire.com/api/multi-language-support/multi-language-fields/ http://processwire.com/api/fieldtypes/images/ As for regularly doing these imports, you'll need to check that the property doesn't already exist in the PW before importing - maybe a check on the title field in the array. Again, sorry this is so rough, but what you are wanting to do is definitely possible, but you'll need to take it one step at a time and ask questions here when you come across a stumbling block.
  12. Depending on your data structure, you might also consider this approach: http://processwire.com/talk/topic/5040-events-fieldtype-inputfield-how-to-make-a-table-fieldtypeinputfield/ This example module shows you how to build a custom PW fieldtype that allows you to have the power of PW API while still storing the data in a more traditional way - multiple fields per DB row. Again, the best option depends on lots of different things, but kongondo has outlined these very well already.
  13. Martijn, I completely agree - square is definitely what we should be aiming for. EDIT: Here are some experiments Ryan has been playing with: http://processwire.com/talk/topic/1920-processwire-logos-download/?p=26899
  14. Nice work Macrura, Are you building something that fulfills leoric's needs: http://processwire.com/talk/topic/5320-how-to-set-the-latest-id-as-a-new-page-name/ I am definitely keen to see the second part of your described functionality - ie creating name from various fields.
  15. The PW "logo" on the contest page makes me realize how badly PW needs an actual logo.
  16. Why not add an additional date field to the template and set that using the code Soma provided: $rss->itemDateField = 'my-special-date-field'; You could set this date of this field manually when creating the pages. Does that make sense?
  17. Hi Jonathanp and welcome to PW! I have only played with that module once so far, although I will be using it in an upcoming project fairly shortly. You should be able to build the URL yourself using the page id and image name, both from the json data? Something like this - of course you'll need to define the $page_id and $image_name variables from the json data. echo $config->urls->files . $page_id . $image_name; Hope that helps. If you haven't already seen it, take a look at the cheatsheet: http://cheatsheet.processwire.com/ That will explain the $config->urls->files. All uploads in PW are stored in this directory, with subdirectories named with the page ID.
  18. You certainly don't want to go modifying the module code. I don't actually understand why the pubdate is not being included in the feed in the first place since every PW page has a created timestamp and the module includes this as the default. Are you doing something custom with the output?
  19. This should be fairly easy to do with a simple module. These two posts should get you going: There are several different possible methods detailed in here: http://processwire.com/talk/topic/1908-automatically-generating-new-page-names/ This post is less relevant since it is for pages created with the API, but might be worth a read still: http://processwire.com/talk/topic/4571-id-based-slug-instead-of-title/
  20. Joss' Foundation 5 template: http://processwire.com/talk/topic/5293-zurb-foundation-5-profiles/
  21. If I understand what what you're looking for exactly, you will probably want to make use of GROUP_CONCAT. I think something like this should work: SELECT CONCAT_WS(' ', g.lastname, g.firstname) AS Customer, g.id_customer AS customerID, GROUP_CONCAT(CONCAT_WS(' ', ad.address1, ad.address2, 'City:', ad.postcode, ad.city, ad.other, 'Phone:', ad.phone, 'Mobile:', ad.phone_mobile)) AS Addresses, gl.name AS group_name, g.email FROM ps_customer g LEFT JOIN ps_address ad ON (g.id_customer = ad.id_customer) LEFT JOIN ps_group_lang gl ON (g.id_default_group = gl.id_group) AND gl.name LIKE 'piiri%' GROUP BY g.id_customer
  22. It sounds like the PubDate might be the issue: http://kb.mailchimp.com/article/ive-posted-new-information-to-my-rss-feed-but-no-campaigns-have-been-sent This might also be useful: http://blog.mailchimp.com/rss-to-email-tutorial/ It suggests that it can validate the feed without you needing to wait for it to send, which should help speed up your debug cycle considerably!
  23. Whenever I edit a module in the modules directory and submit the changes it instantly grabs the new version number and code from Github. Of course you could even change the version number when editing, but it shouldn't be necessary
  24. Related thread: http://processwire.com/talk/topic/4553-how-do-i-get-a-list-of-online-users/
  25. Also wondering if it would be worth cleaning up the html a bit before it gets into the feed. All those tables and spans look kinda messy
×
×
  • Create New...