Jump to content

landitus

Members
  • Posts

    181
  • Joined

  • Last visited

Everything posted by landitus

  1. Thanks for the update! Works like a charm!
  2. I was having the same problem! Hope it can be fixed soon!
  3. Thanks!!! this solved the issue. Thanks for the very clear explanation.
  4. Hi all! I didn't know wether to do a new post or not, because it is closely related to the above. I've been using ProcessWire 2.2 boostrapped into Codeigniter quite succesfully, until this. I am using PW as the backend and CI as the router and front end. So PW is inside the /pw/ directory in the root. In this case I am calling some PW code directly inside a CI view. I am requesting some images from an image field and the url returned is incomplete. The rest of the fields return ok. When using image_field->url, I get "/site/assets/files/1110/" without the image name or the extension. Then I prefixed the real base url to get the correct beginning (http://www.sitename.com). After that, I tried to call the image name and ext manually with $banner->image->name and$banner->image->ext but they return nothing. Exploring the $banner variable with var_dump i found the name under "basename" but not the extension. Also, maybe worth noting: I see a lot of "protected" strings inside the var_dump (don't know if that's normal). I know that there's some complexity in what I'm doing but I think there's something weird o I'm doing something wrong. Or maybe I am messing with something, right? This is the full call. Note that $pw_url adds the parent's path to where PW is nested (http://www.sitename.com). $banners_destacados = wire('pages')->get('/home/destacados/')->children('limit=3'); foreach ($banners_destacados as $banner) { echo "<div class='entrada'>". "<h3><a href='{$banner->pastilla_link}'>{$banner->title}</a></h3>". "<a class='img' href='{$banner->url}'><img src='{$banner->pastilla_imagen->url}' alt='{$banner->title}' /></a>". "<p class='description'>{$banner->pastilla_descripcion}</p>". "</div>"; print($banner->pastilla_imagen->name); } What can I do?
  5. Yes! that was it! Now I know that I have to clear the cache when migrating! thanks a lot!
  6. It seems that way. The problem is that the site is blocked by the error (white screen with error message) this is the only module installed (3rd party) is there a way to uninstall the module like this? So then I can install it again.
  7. Antti, thanks for such great module! I've used it a couple of times and it's a great time-saver!! I've just found a strange error and I can't tell what's wrong. I have a laptop and a desktop both running Mac Os and MAMP (for a localhost environment). Recently I've exported my working PW site from the desktop to the laptop (via a mysql dump). Both machines are running the same files (via dropbox) and now have the same data in each of the local databases. In my laptop local site I get the following error (debug on): Fatal error: Exception: Fieldtype 'FieldtypeCropImage' does not exist (in /Users/......./....../....../wire/core/Field.php line 200) #0 The log shows the following: : Unknown User:/?/:ProcessWire Error:Exception: Fieldtype 'FieldtypeCropImage' does not exist (in /Users/..../...../wire/core/Field.php line 200) #0 .... and it goes on The desktop machine keeps running the site just fine. Am I missing something here?
  8. I would like to know if it is possible and easy to extend FieldtypeImageExtra to have a Page field (instead of a common text field). This way, each image would have one or more pages associated with it. It would be like tags but the client can select a Page with the ACM Select component. I guess it's easier to do this with an 'image' template but I loose the sorting manually by looking at the imagee (well, my client does). What do you think?
  9. Yes! I think the idea of a file manager would be useful and has it's uses. It can re-use a file without duplicating it, and some more. I think expression engine has this, btw. I'll stick to a special downloads page and relate to to some other entry to manage available download files. Thanks!
  10. Thanks Ryan! I will try to look into it. I appreciate the example. I'll let you know. Do you think it would be useful to associate a file upload field to a path in assets folder, in future releases? Do you it would be a feature worth considering?
  11. Is it possible to get an image scaled down proportionally, like for example, I need it to fit in a 400px box (no height constraint). And the images might have different heights that would respond to the given constraint? Right now it seems I need to specify the width and height of the image that it placed, but the problem is I have images of different sizes and proportions.
  12. Hi all! I was wondering if it's possible to set up custom destination directories for different templates and/or fields. The example would be the following: I have a custom field named 'pdfs' and everything it uploads goes to /assets/pdfs. And so on? You know what I mean? So the file url would be cleaner and meaningful. This way I would have some url organization for files, like: assets/brochures, or assets/pdfs. Thanks in advance!
  13. Congratulations! I like the new forum design!! And it's all very Ajaxy!
  14. I've just read your message Soma! :-\ I'm going to try your approach ASAP . Did you find any roadblocks so far?
  15. Thanks Ryan! This was very helpful for my latest project. I really want to learn to create custom modules now! The possibilities are endless!
  16. Ryan, it worked perfectly! The key was the getUnformatted date! I ended up placing this i config.php: $config->timezone = 'America/Argentina/Buenos_Aires'; setlocale(LC_ALL, 'es_ES'); Thank you very much!!!
  17. Hi all! As always, a pleasure working with PW! But I'm stuck with the following. I have a blog-type page where each entry has a date time field. I've configured the date output as: "j \d\e F \d\e Y". But the month is shown in English (ex. November) I need to use the date in spanish, but I've read some php docs and they say I should use setlocale with strftime. But the output date I get from PW should be as an Unix timestamp I believe. How would you approach this?
  18. Hey! I think I'm way over my head here, cause I'm getting a "Fatal error: Call to undefined function wire()" error... seems I am not even including the bootstrap right. Isn't it?
  19. I'm using PW 2.1 and CI 2.0.1 Thanks for your help! I hope it's useful to all.
  20. Thanks for the reply! This is the case. I really need to access PW API from CI. So I figured that including PW in the CI index.php file: CI index.php in the root: include('./pw/index.php'); This way, the app runs fine. No errors. But when I add this inside a CI view file: <?php $mypage = wire("pages")->get(1001) ;?> everything breaks... Hope this fills some blanks of what I'm trying to do.
  21. Hi all! Today I am curious about the following. I have a rather large Codeigniter site and suddenly I'm in need of a CMS for 2 o 3 sections of the site. I really like PW and It's so easy to use I wouldn't dare to try and build something in Codeigniter for the little backend / CMS. So I read the bootstrap section and tryied to code the integration but I can't get it to work. I've put PW inside a pw folder in my root directory. When you enter the site, the CI bootstrap index.php file is called. I was able to include the PW index.php file into the CI bootstrap index.php file. But when I try to call a simple PW function from CI, I don't see anything: <?php $mypage = wire("pages")->get("/about/"); ?> It actually breaks the site, but don't see any errors. Just a lot of white space. Debug is "ON" on both systems. Would you recommend my approach? Am I going to regret this? thanks!
  22. Finally, the server provider turned off safe_mode and now everything is working properly. Unfortunately, I couldn't get any feedback to getting it to work with safe_mode on, but at least they changed the setting for me. I wan't to thank everyone for all the help and patience!! I'm very happy everything is working ok!! :)
  23. I've noticed that a folder for the ID (1420) was created under site/assets/files, but it's empty. Maybe it helps. I did transfer all files with an FTP and then manually changed permissions on the assets folder. That's when the error message disappeared. The result now is no errors but no image is saved on the server. It really looks like a server issue, isn't it?
×
×
  • Create New...