Search the Community

Showing results for tags 'solved'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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

Found 70 results

  1. I want to show the field "Bilder Französisch" in the admin only if the french title field is filled out. So I entered in the "show this field only if" section on the field title_fr!="" but this doesn't work. How can I achieve this?
  2. Please could someone explain how to mark a topic as solved. This does not appear to be covered by the guidelines.
  3. Hi there! I need to gather a list of all comments, regardless of the parent page of each comment. Is there a global $comments object, which can do this? Something like: foreach($comments->find('sort=-created') as $comment) { // show comment } I did not find anything similar in the forums. Can someone help me?
  4. Just wondering why the custom format is not applied to select options for page reference fields. Is there an easy way to hook and make it possible? Here are the appropriate (offending) template fields:
  5. I want to add a tab to an edit page in the admin via API. I found a code from @kixe here that basically does this, but I can´t get it to work correctly (see screenshot). As you can see the Tab has a weird name and the submit button appears before the fieldset. Also the tab should appear as second, directly after "Inhalt (content)". Maybe I did something wrong when adding the tab to the form? Here is the code that I used: public function ready() { $this->addHookAfter('ProcessPageEdit::buildForm', $this, 'addButtons'); } public function addButtons($event) { $page = $event->object->getPage(); if ($page->template == "bewerbung") { $form = $event->return; $inputfields = new InputfieldWrapper(); $tab = new InputfieldWrapper(); $tab->attr('title', 'Settings'); $tab->attr('class', 'WireTab'); $markup = $this->modules->get('InputfieldMarkup'); $markup->label = 'Settings'; $markup->value = '<p>Just a placeholder for some inputfields.</p>'; $tab->add($markup); $inputfields->add($tab); $form->add($inputfields); } }
  6. If I try to upload the same file (an image) to the "files" field AND to the "image" field (for thumbnail generation) on a page. But if I do that I get an error which says: How can I tackle this problem? Is it somehow possible? Because I need the image for a thumbnail and the file from the files field can be downloaded.
  7. Hello! I was working on my website on Friday with what appears everything to be fine, and I come back today and now I can't access any page, I just get a white page with no information and no logs are logging what the issue is and I'm quite stumped frankly as to the cause. Going to just brings up a blank page and no error logs and it's driving me crazy trying to troubleshoot. If you go to any other non-processwire page it works fine, like the php info page: At first I thought it was an .htaccess issue (UTF-8 BOM info being parsed by Apache2 a the head of the file) but in re-uploading it that didn't solve it. Then I thought it was a php error from the index page being loaded but no PHP errors appear anywhere that I can see with a timestamp near to today, nor does the Processwire log update. It hasn't updated since the 10th and I'm not sure why. After 10 years of WordPress development, I'm pretty decent at troubleshooting server issues but this just has me for a loop, I'm not sure what's going on here so if anyone has any insight or wouldn't mind taking a look to troubleshoot I can provide you with root access to the server (it's a Ubuntu 16 LTS droplet on Digital Ocean). I've included dumps of my most recent logs, maybe I'm missing a detail? Any insight would be appreciated! Regards, Virtually(Creative) errors.txt access.log error.log
  8. hi I have observed that processwire always cache my page even if i have disable cache from template, my problem is that trying to style the page and to be able to see my changes i have to clear the cache either by save the page again or delete the assets/cache/* or inside module page render . i have try processwire v 3.0.39, 3.042, 3.051 thanks
  9. Hi guys I need an estimate for the following task: I developed a job candidate application in ProcessWire and need an extension to a Lister Pro Page. My customer wants to display a summary table of the filtered data like in the attached screenshot. When you filtered the view, that summary should show how many candidates have which status according to the actual filtered view. If you change the filter, the summary table has to be updated also. Who can accomplish this task and what would it cost? I first need an estimate to tell it to my customer. If he says the price is ok I will provide you with FTP Data to a dev server version of that tool. Thank you in advance.
  10. Somehow content editors love the <br> tag. On a 'random' base, the're putting in a line break. The cases of double <br> is easy to solve, but the single ones are just a pain in the *ss, as they could be intended. Think 80% of the <br /> makes me <grrrr />. For other elements I can use some pseudo elements to foo-doo visualize when they are used. For br thats not possible without some javascript I think. I even think: Disallow br tags at all.<br> How do you guys solve this.? Putting this in the the CSS, will visualize the BR. p br { content: "*"; display: block; margin-bottom: 0; line-height: 1; } p br:after { content: "<br>"; display: inline; background: red; color: #FFF; font-size: 12px; border-radius: 2px; margin-right: 2px; padding: 0 4px; float: left; }
  11. I first asked this question on Twitter but I guess the forum is a better place to get a good answer. The following code is taken from the file of the default PW theme: // Create the top navigation list by listing the children of the homepage. // If the section we are in is the current (identified by $page->rootParent) // then note it with <a class='on'> so we can style it differently in our CSS. // In this case we also want the homepage to be part of our top navigation, // so we prepend it to the pages we cycle through: $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>"; } The definition of $page->rootParent from the cheatsheet: I understand, that if you have the following page structure … Home About ProjectsProject ASubproject 1 Project B … and calling $page->rootParent->title on »Subproject 1« outputs »Projects«. But why can I also check with it that a page is the »current« one like written in the above code ($child === $page->rootParent)? I guess the problem I have with this is that one method implies two different semantics (which confuses me). Just wanted to share my thoughts about this as I’m trying to truly »learn« PW form the inside out.
  12. I'd like to make the search in the PW Admin a little more fuzzy (able to match partial terms etc). Can I somehow change the default operator from "~=" to "%=" ? In the admin theme I'm using, the form is generated like this: $searchForm = $user->hasPermission('page-edit') ? $modules->get('ProcessPageSearch')->renderSearchForm() : ''; Can I pass a parameter to the renderSearchForm() function, or something similar without changing the core? Thanks!
  13. So in general I really love how PW does its sizing and centers the focus on the picture so if you size it different that its true aspect ratio it focuses on the center of the picture, which in general is perfect for what we need. However, I was wondering if it was possible to change the parameters of where it focuses on. I am doing a photography website and I have some really awesome vertical images that are getting clipped at the top where the top is the most important part of the models picture. I am wondering if anyone has any good advice on how to best approach this issue inside of Process Wire Where does the magic happen and can I adjust it? You can see the issue here: Third row down, 3rd right picture(unless he moves it, or your browser is narrow in width, basically just any of the pictures with the heads cut off .) I would just make the layout different, but since this layout is fully responsive and changes sizes drastically I need to figure out how to do this. I was hoping to maybe write some php that would check to see if the height parameters of the picture were bigger than the width, then if so, focus on the top of the picture instead of the middle. Thanks a lot, and I hope someone can help me figure this one out.
  14. Hi! I have multi language all set up and working with multi language fields and two languages: default and english. Everything's working, but when I create a new Page and try to set title and title_english, only title is stored. The english version comes in blank. Here's what I do: $item = new Page(); $item->template = $this->templates->get("page_complex"); $item->parent = $page->id; $item->title = "Kommande matcher"; $item->title_english = "Upcoming fights"; $item->save(); Any ideas anyone? Thank you Ryan & all for this wonderful CMS!!! Cheers, / Thomas
  15. I just installed the latest dev branch from github on my local mamp server and wanted to add the german language pack to the default language. The files uploaded, but no translated phrases are detected. This just happens with the dev branch, with the master branch everything works like expected.
  16. Hi, I'm running the newest version of processwire with multilanguage activated. On my search page I'm using this to find pages: if($q = $sanitizer->selectorValue($input->get->q)) { $input->whitelist('q', $q); $matches = $pages->get("title|body|summary|sidebar%=$q"); } //and so on But if I'm using it I'm always getting this error: Exception: Unknown column 'field_title.data0' in 'where clause' (in /var/www/ud14_276/html/ line 118) #0 /var/www/ud14_276/html/ Database->query(Object(DatabaseQuerySelect)) #1 /var/www/ud14_276/html/ DatabaseQuery->execute() #2 /var/www/ud14_276/html/ PageFinder->find(Object(Selectors), Array) #3 [internal function]: Pages->___find('title=123', Array) #4 /var/www/ud14_276/html/ call_user_func_array(Array, Array) #5 /var/www/ud14_276/html/ Wire->runHooks('find', Array) #6 /var/www/ud14_276/html/ Wire->__call('find', Array) #7 /var/www/ud14_276/html/ Pages->find('title=123', Array) #8 /var/www/ud14_276/html/ Pages->findOne('title=123') #9 /var/www/ud14_276/html/ I had a look in the database and I guess it originally tries to look for $q in both the english and german veriant. And so it should look for $q in the columns data and data1234. But instead it looks into data and data0. I don't know why...
  17. Hi all, Installation done and multilingual has been implemented successfully but I faced a problem. I cloned the basic-page, named it basic-page_noside and deleted the "sidebar" at the template setting. I use this new template for the "Docs" page under the Home, and also two child page under "Docs". However, I still can see the sidebar content when I view Docs and the two child pages. I think I miss out something.... and need your help on this. I don't know much about coding etc. but I could follow instruction well.
  18. Hello Community, I have a directory structure like this: [website] |- libs // This folder is not part of PW |- paypal |- ipn.php |- site |- wire The problem is that I cannot access $pages inside /website/libs/paypal/ipn.php. Paypal IPN will point to this file: <?php $productid = $pages->get(1332); var_dump($productid); // read the post from PayPal system and add 'cmd' $req = 'cmd=' . urlencode('_notify-validate'); foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, ''); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_POSTFIELDS, $req); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host:')); $res = curl_exec($ch); curl_close($ch); // assign posted variables to local variables $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; if (strcmp ($res, "VERIFIED") == 0) { // check the payment_status is Completed // check that txn_id has not been previously processed // check that receiver_email is your Primary PayPal email // check that payment_amount/payment_currency are correct // process payment } else if (strcmp ($res, "INVALID") == 0) { // log for manual investigation } ?> Thanks!
  19. Hi, since I'm using TextareaLanguage for my "body" field I can't use the "TinyMCE Advanced Configuration Options" under the "Input" section anymore... It just shoes the default TinyMCE editor interface... How can this problem be solved? / Nico
  20. Before i report a bug on Github i want to ask if there are more people that are experiencing problems with the search feature in the admin. Scenario: A fresh install of PW. Search for 'templates'-> Found 1 page using selector: title~=templates Search for 'about'-> Found 0 pages using selector: title~=about Search for 'about'-> Found 1 page using selector: title=about Search for 'site map'-> Found 0 pages using selector: title~=site map Search for 'site map'-> Found 1 page using selector: title=site map Search for 'site'->Found 1 page using selector: title~=site (the page with title "Site Map") Maybe i'm confused about the different types of search but if the templates page is found, the about page should also be found? Also the above sitemap search doesn't seem logical in result.
  21. I have multiple sites setup using Apache VirtualHosts like this: /var/www/html/vhost1 /var/www/html/vhost2 ... These sites are all different purposes but same owner. They maybe could share templates and styles. When I look at the zipfile or the tarball it has a top level directory of: ryancramerdesign-ProcessWire-1d2b19e/... Do I keep this top level directory or do I just extract everything under it into my existing vhostX directories? So where should I install processwire to begin using it?
  22. Hi.. Im trying to get ProcessWire up and running, but I keep running into a wall. I configured the Lion server so it handles .htaccess files, and checked if mod_rewrite is there. Im running the installing process og ProcessWire perfectly, but when It comes to the live site and admin part. I keep getting: 404 Not Found from the server.. I think its something with the url rewrite that goes wrong.. I would we happy if some one can point me to a solution, because I really like to try ProcessWire.. (Getting tired og WordPress and Joomla.) Thanks in advance.. Bjørn Christiansen aka ChrisB
  23. Hi everyone, I have an existing PW site that has a news section and it's getting quite big. I'd like some pointers as to how to go about listing the entries: 1. by month for the current year and 2. by year for each year past eg 2011, 2010 etc. All the posts have date fields too if that makes it easier. Any help would be great. Thanks Marty
  24. I just installed processwire and seemingly I am not able to find where the admin is. I tried /admin , /administrator. I even couldn't find where in the config this is to be set or found neither a login link on the default template.
  25. I have an area of content 'Upcoming Events' which has title, text, image etc.. I want to be able to make visible on a page and then sometimes remove it. At the moment I can unpublish an 'Upcoming Events' page and that content is removed from the page where I display it, but i still have a bunch of empty HTML tags left over. What is the best way to have an area of content turn 'off' without leaving any trace?