Jump to content

Search the Community

Showing results for tags 'Solved'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hi ProcessWire'ers, I'm a total newb, reading through the docs to try and get up to speed with PW. I read here that: But if I visit Admin > setup > templates then Edit > Advanced, I see no reference to URL Segments. Any comments on why would be most appreciated, cheers, -Alan
  2. Hi, I am trying to find the url of some pages, I have the page ID so I figured that something like this should work. $linkurl = wire('pages')->get(1187)->url ... do something ... $linkurl = wire('pages')->get(1186)->url ... do something ... $linkurl = wire('pages')->get(1093)->url ... do something ... $linkurl = wire('pages')->get(1097)->url ... do something ... But whatever I try I get the root url as $linkurl. I even tried it with ->title, just to see what happened. Every time I got the title of the homepage. Am I doing something wrong or is wire('pages')->get(id) not working? I use the latest commit. //Jasper
  3. When a new field created, if hit save without selecting a fieldtype it throws an white page error. Fatal error: Call to a member function attr() on a non-object in /Applications/XAMPP/xamppfiles/htdocs/pw-dev/wire/modules/Process/ProcessField/ProcessField.module on line 636 This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged.
  4. I have created a new user role, that role is not able to create thumbnail crops using the thumbnails module. When clicking 'Thumnails' it just opens a window with the home admin page. It works fine for the main superuser role. I tried allowing all permissions for the new role but no luck. Using processwire 2.1 - Alex
  5. Once again, I got a problem with a hosting where I can't upload images/files. It just uploads to 100% then the bar disappears and it's like before. In the post I see this message: error: false message: "Page not saved (no changes)" Filepermission seems ok. Install went normal. Any ideas what to look for? I can provide phpinfo if needed. PHP version is: PHP/5.2.4-2ubuntu5.23
  6. What is the best way to add an image to one of my navigation links? I would like to add an image tag right before my homepage link, within the anchor tags. Starting from the default navigation code: $homepage = $pages->get("/"); $children = $homepage->children; $children->prepend($homepage); foreach($children as $child) { $class = $child === $page->rootParent ? " class='on'" : ''; echo "<li><a$class href='{$child->url}'>{$child->title}</a></li>"; } I tried editing the $homepage variable to concatenate an image tag before $pages->get("/"); but that threw an error since (I'm guessing) the prepend() method is specific about the kind of input it will take in its parameter. I'm probably going about this all wrong. Any help would be greatly appreciated.
  7. Using the $sanitizer->username() function on an email address returns the email address as is. This behavior is expected and correct according to the function's definition (in the cheat sheet), which is: However, when adding a user manually in PW, the name field shows a different formatting requirement: So inputting email@domain.com into that field automatically changes it to email-domain.com. (The "." does in fact stay in there although its not part of the defined character requirement. No biggie.) Shouldn't those two formats match? Background info: The reason this came up is because I'm allowing folks to signup for my parish's website to access parishioner-only content on the site. However, instead of usernames, I'm relying on email addresses for registering and logging in (at least from their point of view). Since each user in PW requires a username, I'm making their username a sanitized version of their email address and was going to use the $sanitizer->username() function to automatically create their username based on their email address. But given the current sanitizing convention of $sanitizer->username(), I'll have to create a new sanitation function to accommodate. Is there a reason for the discrepancy that I may have overlooked?
  8. I just discovered a bug I think. While tracing down a PW site with lots of assets and pages to scan for all images and links in the RT text fields, I discovered that there's some multiple links that appear to be empty, not visible. So I figured that when inserting a external link in the RT, using the PW link dialog, then afterwards open it again to edit, it then inserts a invisible empty <a href="someurl"></a>" right before the link meant to be changed (which stays untouched). I'm sure it's not browser specific, but my guess is that the PW inser link plugin need a check. It only seems to fail with manually entered external links. I would consider this urgent to fix soon. I now need to go manually go through all them because it isn't something the client nor me have known. Though with the bootstrap script I wrote to scan whole site and look for such things it's a whole lot easier thanks to the easy as pie API. Thank for anyone confirming/reproduce this bug.
  9. I'm using the in-context editing menubar plug-in, and to avoid confusing my clients, I'd like to be able to remove the little edit button that shows up in the corner of front-end pages by default. What's the best way to go about doing this?
  10. I have been searching through the Forums and I found something related but I don't think this situation applies. I have an iFrame tag for an embedded Google calendar. I want to put it in a page but I don't want it in the main template. Should I make a "mini" template and call it or is there a way to put the tag in via the CMS GUI? It seems that every time I click on the "HTML" button on a text edit field and put it in, it gets filtered out. even custom <div> tags get removed. Any ideas or suggestions?
  11. Hello, So, I have course pages and faculty pages. When I create a new course, I can associate it with 1 or more faculty members by adding them to the course_instructors Page field. When I visit the faculty member's page, I want to view the courses they teach. I'm trying to do this with a selector: // on the faculty member's page $spring_courses = $pages->find('parent=/courses/spring/, course_instructors=$page'); $spring_courses is empty. Just to reiterate, course_instructors is a page field that can have multiple pages in it (multiple instructors). I'm basing my method on this post. Thanks for any suggestions!
  12. So, I am doing something a bit complex here, but I have it working on a static site. So I know it all works as planned. However I can't get it to work inside of processwire, and I am not sure why. Let me explain what is going on. So I have built a template with my form code. Then I have a js file, that uses AJAX/php to mail me a copy of what the form contained upon submission. This is due to the fact the form is going to a third party processor. They do not send nice pretty copies, but they do send a confirmation, which is enough for me to match them later by hand. So my issue is lies here: I have created a template that contains this information, then I have included my javascript in the header. However, I don't know where to place the mailer.php and the other file that it calls. I have tried placing them in templates/includes/ then calling them in my javascript like so. //code $.post('http://examplesite.com/site/templates/includes/donate_in_memory_mailer.php', $('form#donate').serialize(), function(data){ }); //code then inside of that donate_in_memory_mailer.php I have an include for another .php file. I have done it's include similar: //code include 'http://examplesite.com/site/templates/includes/memory_mailer.tpl.php'; //code However, it appears this isn't working. I cannot get it to work, I have even tried putting this folder in my root directory. Does anyone have any ideas. I would assume it wasn't a processwire issue, but when I can make everything work the same exact way on another static site I get confused. Please I hope this is just a simple fix, its the last part of the first site I have ever built with processwire! Thanks!! -Joseph
  13. The search form on the basic install works fine and is great... But if I add a new text field, i can't get it's content to appear in my search results. Do i need to configure new fields somehow to make them 'searchable' ? alex
  14. I have settled down using $session variable instead of superglobal $_SESSION. There is one big difference though. If user logs in then PW $session is lost and new one is acquired. I don't know if that is intended behavior? I realized this on my shopping cart module since people lose their carts after logging in. Of course I could start using $_SESSION here, but wanted to ask first if $session works right and if it does, why it is so?
  15. It would be great if there would be an easy way to add flash-type of session variables. Here is citation from codeigniter docs:
×
×
  • Create New...