Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by kongondo

  1. <aside>ProcessWire 3.0!!. Yeah! Has a nice ring to it..</aside>
  2. Bill, Just to clarify what Adrian is saying...If you have a multiple image field (i.e. set to a number <1>), that image field will return an array (0 = unlimited, btw). Hence, you would need to loop through the array using a foreach if you want the multiple images, or can select a particular image in the array, using either "first", which grabs the first image, or eq($n) which is retrieval using an index...where $n is the index
  3. You are right. There are no international standards. I would go for formats that can be parsed by smartphones (iphone ex.), Skype (click to call), etc. as defaults and have the override/custom format as an option. Good job Adrian! FYI http://www.countrycallingcodes.com/iso-country-codes/ http://countrycode.org/ http://www.nationsonline.org/oneworld/countrycodes.htm
  4. Hi Bill, Welcome to PW. Everything (almost) you need is here in the docs http://processwire.com/api/fieldtypes/images/ and in the cheat sheet http://cheatsheet.processwire.com Others are: $image->name; should also work..etc...
  5. Peter, What Antti means is that you can create a Module that Autoloads (i.e. loaded automatically with PW). There is no "the" module called Autoload ...If you already know this, my apologies http://processwire.com/api/modules/ http://wiki.processwire.com/index.php/Module_Creation
  6. Nice!!! Thx! btw..did you forget to bump dev version to 2.3.4? Still reads 2.3.3. in my install
  7. From that message, it seems MySQL is not happy. Google throws up all sorts of reasons/solutions for that MySQL message: 1. Spaces in filenames 2. Attempt to insert a duplicate value in a column set to be unique 3. Emptying cache.. etc..
  8. Yeah, maybe as a footnote I suppose? I was never in doubt about your love for ProcessWire
  9. @Peter, Isn't that what selectors are about? Including and excluding things? If I am getting results that include things I don't want, I have various options to exclude them. PW provides various means to exclude them by very finely tuned selectors - name, parent, child, etc...I would add the trash check; it's simple and effective and will give me the peace of mind that trashed pages will not be returned ...then again, this is just my 2 cts.
  10. Mine reads 2.3.3...Not sure whether you need to clear some cache, etc? Try this on a template file: echo "<h3>The installed PW Version is: <strong>{$config->version}</strong></h3><hr>"; //system version That will tell you the PW version installed.
  11. Ahem...this is what I said in my post above ; (#50)
  12. OK...going by your explanation, are you suggesting two separate dependencies here? One for required fields (as per Ryan's post) and the other for Access? Isn't the latter somewhat related to Ryan's module Page Edit Field Permission?
  13. Good idea. I think on Captain Hook Soma managed to do this. Lines should point to the Stable Release, hence won't change until the next Stable version...
  14. @Pete, I think that's a great suggestion. So, I guess that would mean an override of some sort or &&? if a field is required and the user !== editor, then show field. Now that would take this to another level certainly...So would it still be called a required field? Yeah, maybe...required but only for certain roles...hmm...just thinking out loud (and sleepily )
  15. Mary, I suppose you've read this in the docs? http://processwire.com/api/modules/multi-site-support/ Your Alternative 2: would mean potentially 1000 databases... ? *shudder* Unless you mean multiple sites from the same database?
  16. PWired...I think you misunderstand...This is not about limits to how many pages PW can handle...this is about pagination. Big difference It's right there in the post Arjen linked to...scroll down to Teppo's post...or see the code below: https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Process/ProcessPageView.module#L32 https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Process/ProcessPageView.module#L264 Btw, Wanze has built a PW site with about 100K+ pages... Edited for clarity...
  17. Det kan man säga, på nåt sätt...jag bodde i Stockholm ett tag sen... translation [English forum, ahem)....I lived in Stockholm a while back....
  18. Thanks Soma for reminding us. This is right here in the docs but I always forget!
  19. Hej NoDice, Gratulerar! Nice one! The difference between the old and the new is really amazing!
  20. In that case then, let's follow's Diogo's example. What we want to grab is the object (Page) for this child page "tv". With that, we have access to everything about it - all fields, etc. so: $test = $pages->get("/tv/");// echo "<p>The title of the child page with the images below is <a href='$test->url'>{$test->title}</a></p>"; foreach ($test->images as $image) { echo "<img src='$image->url' alt=''/>"; } As you can see, $test is giving us access to the attributes of "tv". If you have more than one child page of home that you want to grab images from, no need to repeat the above code. In that case, follow Diogo's example above..
  21. Whoa, easy matey, almighty? Naah... Is this a question?
  22. echo $myimage->name; will give you the image name There are other options: see here, e.g. $image->basename (same as name), $image->filename and $image->description;
  23. Andrei, 1. There was an error in my code above which I corrected...the path to the page "tv" is: $pages->get("/tv/") 2. No need to create four image fields in the same page. If you want multiple images, use a multiple image field. Throw in the four images there. If you want to output all of them, see Diogo's code above...or below example..(this assumes you will only have four images) $myimages = $pages->get("/tv/")->images; foreach ($myimages as $myimage) { echo "<img src='{$myimage->url}'>"; } That will output the four images...Place the code in your "home" template file...
  24. http://processwire.com/api/variables/page/
×
×
  • Create New...