Jump to content

Soma

Moderators
  • Posts

    6,798
  • Joined

  • Last visited

  • Days Won

    158

Everything posted by Soma

  1. Don't be afraid of PW and its modules, hooks etc. They're worth learning and not really complicated if you grasp the concept, really. Compared to other systems this is fairly simple. I showed you an example of a property hook in the RSS markup thread remember? Also there's some infos on the forum or other resources that would help you understand (I think teppo's write up here is also good). And of course the HelloWorld.module that comes with default install shows exactly those simple hooks. Play around with it and be in awe!
  2. Just as a sidenote regarding clients uploading tremendous large images: Also wanted to mention that you can set a max image dimension in the image field input settings. This allows to for xample say 1280 x 1280 is max and any image uploaded that exceeds the max with or height gets resized to 1280. This is one of the best settings cause it helps keeping images in a reasonable size when uploaded. If you combine it with the ImageMinSize module you could even have a min size.
  3. Resize it to something that is used at maximum size. Adaptive images would be the next step but there's no best way I'm afraid.
  4. Have hard time understanding your namings and relations and some of the code doesnt make sense to me imediately. I dont know google maps marker module as i never used it yet but looking at the description of the markup module i think you have to specify the fields name in the option array and not a value like you do with $feature->url ... It would have to be the name of the field like 'url'. See https://github.com/ryancramerdesign/FieldtypeMapMarker/blob/master/MarkupGoogleMap.module#L73 you seem to misunderstand this, same as with the rss feed markup module. As you dont give a field name the but a the url of the last item in your foreach loop i can imagine the markup module doesnt find it and gives url of the page. Since i think you dont want the url of the page that you give to the markers via your page array but from one of your relation to another page, you would need a simple property hook to set that url to a new property (=field) for each page, that you can then give the name to the options array. Or since you already loop and add your pages to the markers page array you could set it right there. So bfd_events_places_id_list is now what exactly? A page field? If its a single page field... The id in the name is confusing to me as it would be a Page object actually and not an id. Anyway. If it is a page field you could try using it to add a url to it on the fly. $myentry = $feature->bfd_events_places_id_list; $myentry->markerUrl = $feature->url; // or whatever url $markers->add($myentry); Then use that 'markerUrl' we added to the marker page in the options array... 'markerLinkField' = 'markerUrl'
  5. What is bfd_events_places_id_list exactly? PageArray add doesn't work with ids it would have to be a page or PageArray. Also this && $feature->bfd_day in the if is strange as it would be the last from the previous foreach. So is the $feature->url in the $options...
  6. Pageimages suggests you have a image array and try to call heigth which of course doesnt work. I'm not sure this ever changed and was always like this. So I think you have some code that worked beacuse it was an single image.
  7. You need to first delete the.variation to get a new of the same dimension. removeVariations()
  8. Modules can have configurations where you have the buttons. This is already there if you implement the configurable interface. You add them and check for them via input name. There's many modules that have this already so you should study them. Also a possibility is to create a custom admin page using a process module so you have your own screen to add forms and buttons and do whatever you like with using api. ProcessHello is a example of such a module.
  9. RT @bitnami: @alessio_dev @processwire Nice work! We're looking forward to having @processwire in the Bitnami library.

  10. Ahhhh thanks! Ha, now all together!
  11. I'm so bad at english i hardly understand the lyrics. Im too shy to ask but Is that "Soma.. la la" at the beginning?
  12. RT @bitnami: Reviewing logs we found votes from multiple IPs but sharing same cookie. Both @processwire (274) and @ametys (539).We are remo…

  13. U need to set locale to utf8 like fr_FR.utf8
  14. Or a WireData module usually for autoload hooking modules. Process modules are usually for admin pages. But it would work too.
  15. RT @processwire: Don't forget to click on the Facebook Like and Google+1 icons on this page http://t.co/K9Yxnsq9jG as they apparently count…

  16. I was using XAMPP (mac) for a long time but had to switch to MAMP because it was horribly broken and lots of strange things happening. (Couldn't create new Inputfields)
  17. Not worth the effort. I knew it the moment ametitis appeared.
  18. Hehe if smashingmag retweets that, bitzunami will go down...
  19. I can't even vote on my (old) android phone, cause their website doesn't really work on it. Telling them on twitter gave no answer. I also have dynamic ips but can't vote multiple times, even on other computer or browsers.
  20. And you guys even help them spread their name even in this forum!
×
×
  • Create New...