Jump to content

Moebius

Members
  • Content Count

    21
  • Joined

  • Last visited

Community Reputation

4 Neutral

About Moebius

  • Rank
    Jr. Member

Profile Information

  • Gender
    Male
  • Location
    Zagreb, Croatia

Recent Profile Visitors

1,488 profile views
  1. I have situation like this. Page 1: https/www.domain.com/some_non_processwire_page.php This page is out of my scope and it set some PHP session, e.g. $_SESSION['something'] There is no way that I can bootstrap PW in this page, I must leave $_SESSION['something'] as it is, so there is no option to bootstrap & and convert it to $session->something Page 2: https/www.domain.com/some-pw-page This is normal PW templated page, full under my control. I need to read $_SESSION['something'] from there. I know PW has it's own $session object, but as I staed beofre, I can't bootstap PW from some_non_processwire_page.php and then do stuff only with PW $session Is there any possible way that I can read $_SESSION['something'] from https/www.domain.com/some-pw-page I found some topics about session here on forum, but none of this answers is solution for my situation.
  2. Congrats, looks amazing and performs super fast. Just a short question. Did you have any concerns about SEO impact since everything is done through VUE and there is no real source coude there?
  3. Yes Zeka! That it solution. Now I see it in documentation, somehow lost between all other properties Thanks everyone for contribution.
  4. dobro vece dragane 🙂 however, still no language switch at top. also tried with: $field->type = new FieldtypeTextLanguage(); but with no success.
  5. I'm trying to build custom form (module) and I want to make text fields multilanguage as they are in normal Processwire environment. This is some of code I have: <?php $form = $this->modules->get('InputfieldForm'); $field = $this->modules->get('InputfieldText'); $field->label = 'Title'; $field->name = 'title'; $field->columnWidth = 100; $field->required = 1; $fieldset->add($field); $form->add($fieldset); return $form->render(); ?> This is what I got: And this is what I want - with language switch at top: Is it possible to accomplish with API?
  6. in my case pagination is not issue, I'll use Robin's solution for initial sort, save sort result value in new page custom field and then sort like we always do: $authors = $pages->find("template=author,sort=my_new_sort_field"); works like a charm.
  7. I need to sort results by title ascending, and title includes special characters (croatian letters). The problem is that results are sorted but not 100% correct: e.g. $authors = $pages->find("template=author,sort=title"); Cavali Cavilon Čavlović Cesare ... You see intruder (bolded), it looks like sort engine treats letters C and Č as same ones. I'm not sure that this is Processwire related, but maybe API has solution for this kind of behavior? I have UTF-8 page content type .
  8. Thanks netcarver.
  9. It would be very nice to be able to save page with common shortcut (e.g. CTRL + S on windows) in admin. Live long PW
  10. In my case, cache problem occured because my hosting plan had "Run PHP as: FastCGI application". After they changed to "Apache module" problems are gone.
  11. This is pretty old post, but I'm experiencing exact same problem as icietla, ProcessWire 2.6.1 © 2015. If its not Processwire, anybody know what should I look first? As addition, this is not happening always but ocasionally.
  12. Very nice. I would only suggest implementing unique title and meta-description per page. And also there is no h1 tag.
  13. My approach is to create page checkbox field named "redirects_to_first_child" and then execute redirect if this is true: <?php if($page->numChildren && $page->redirects_to_first_child) $session->redirect($page->child()->url); ?> This way I have full control over redirects via PW. Also absolutely love the fact it does 301 redirect.
×
×
  • Create New...