Jump to content

jds43

Members
  • Content Count

    54
  • Joined

  • Last visited

Community Reputation

10 Good

About jds43

  • Rank
    Full Member

Profile Information

  • Location
    Little Rock, AR

Recent Profile Visitors

2,215 profile views
  1. Hello, Does anyone have experience with migrating content from Django to Processwire? Or are there any suggestions for achieving this?
  2. $main = $promoted->next(); echo "<h5>$main->title</h5>"; This is more concise 👏🏼
  3. $main = ""; $promoted = ""; $promoted = $homepage->promote; $main = $pages->find('template=main')->remove($promoted); foreach($main as $ma) { echo "<h5>$ma->title</h5>"; } This appears to have worked 👍🏼
  4. Hello, I have a Page Reference by template radio button field to promote a certain page (only two options), but I'd like to target the page that isn't selected. This would be used dynamically throughout the site. Does anyone know how I could accomplish this? Would I use something like remove() or not()?
  5. This is good to know, but I'm not getting anything from the selector.
  6. I had to keep parent=1018 because I don't want to include staff-pages that aren't doctors. The $page selector below is drawing errors. $doctors = $pages->find('template=staff-page,locations=$page') This is working though. foreach($doctors as $doc) { foreach($doc->locations as $loc) { if($loc->title == $page->title) { echo "<h4>$doc->title</h4>"; echo "<h5>$loc->title</h5>"; } } }
  7. Hello, I'm trying to select doctor pages associated with locations. Within this doctor page I have multiple pages selector (which are location pages) because doctors can work at many. When viewing a single location page, I'd like to loop through those doctors at that location, which is this $page. How can I achieve this because mine isn't working? $doctors = $pages->find('template=staff-page,parent=1018,locations=$page'); foreach($doctors as $doc) { echo "<h4>$doc->title</h4>"; } I guess I answered my own question. Is this an acceptable way to achieve? foreach($doctors as $doc) { foreach($doc->locations as $loc) { if($loc->title == $page->title) { echo "<h4>$doc->title</h4>"; echo "<h5>$loc->title</h5>"; } } }
  8. Ah ha! That would make sense. Thanks @kongondo
  9. Hello, I'm wondering how to add the value of a field to a URL when submitting a form, while also processing the form with FormBuilder and storing the entry in the CMS. Is this even possible with the versions below? FB 0.2.5 | PW 2.7.2 Is there still a dedicated Form Builder forum here anymore?
  10. Thanks Adrian, The search returns inconsistent results, but it could be another issue. I appreciate the assist.
  11. No luck there. Any other ideas?
  12. I need to extend the search capability to image descriptions through the default search template in 2.5.3. $matches = $pages->find("title|body|sidebar|thumb_one|thumb_two|thumb_three|thumb_four|gallery_img%=$q, limit=50"); I've added additional field selectors, but with inconsistent results. Is there a better way to achieve this?
  13. Thanks, but this feature doesn't appear to kick in in time to prevent my server from attempting to load the SSL certificate. I believe I need an .htaccess solution which will redirect the URL BEFORE ProcessWire is called.
×
×
  • Create New...