Jump to content

skovar

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    Berlin

Recent Profile Visitors

1,770 profile views

skovar's Achievements

Newbie

Newbie (2/6)

1

Reputation

  1. Hi @Sérgio Jardim I'm looking for this functionality, too. Did you actually get this working, where image resizes are uploaded to S3? It seems the module is perhaps no longer being developed, but it still seems to work in PW 3 - I'd like to enhance at least my copy of it. Thanks
  2. Hello All, I just installed FormBuilder, and it's going great so far. Great time saver! I spent a couple of days doing a file upload form manually and was able to recreate it within minutes in FormBuilder. Quick question about the general file upload functionality in PW: When I was doing a file upload manually, I set the upload destination, and the file would upload there, but would also be in the assets/files area in a folder matching the entry ID. Now that I'm using FormBuilder, I stuck with the default upload area for FormBuilder, assets/cache/form-builder. I still get the same result though. The uploaded file ends up in assets/cache/form-builder, as well as in the assets/files/{entry_id}. Is this normal? When I view the entry itself, it's linked to the assets/files folder. So, what's happening seems independent of FormBuilder. Sorry if I am not fully understanding something about how files are dealt with in PW. I tried to find more info on how file uploads work in PW but I still don't fully understand it. Thanks for any info you can provide.
  3. Thank you Diogo, that's good to know. You set me on the right path and I've got it working now. I don't know if it's elegant or not, but I declared the variables outside the function: <?php function listChildrenTree($children, $currentPage, $parentPage) { echo "<ul class='span-24'>"; foreach($children as $child) { $class = $child === $currentPage ? "current" : ''; $subclass = $child === $parentPage ? "current" : ''; echo "<li class=' $class $subclass '><a href='{$child->url}'>{$child->title}</a> "; if($child->numChildren && $child->template != 'page-article') listChildrenTree($child->children); echo "</li>"; } echo "</ul>"; } $currentPage = $page; $parentPage = $page->parent; listChildrenTree($wire->pages->get('/')->children, $currentPage, $parentPage); ?>
  4. Hello, I found a lot of great examples of recursive navigation in the forums and have based my example here off of those. I'm having trouble adding an active class to the menu. Ultimately, I'd like to add the active class to the active parent and child item, but I've started with just trying to get the parent to have an active class. Although the menu renders as desired, I must be missing something here with adding the class: <?php function listChildrenTree($children) { echo "<ul class='span-24'>"; foreach($children as $child) { if($child === $page) $class = " current"; else $class= ' '; echo "<li class=' $class'><a href='{$child->url}'>{$child->title}</a> "; if($child->numChildren && $child->template != 'page-article') listChildrenTree($child->children); echo "</li>"; } echo "</ul>"; } listChildrenTree($pages->get('/')->children); ?> Thanks for any suggestions you may be able to provide.
×
×
  • Create New...