Jump to content

fbg13

Members
  • Posts

    344
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by fbg13

  1. See here https://processwire.com/blog/posts/multi-instance-pw3/#using-multi-instance-in-pw3
  2. All that have a close button. It should behave like the close button.
  3. As the title says, make the esc key close the modal.
  4. My code looks like this: //the page $p = new \ProcessWire\Page(); $p->template = 'template'; $p->parent = $site->pages->get('/parent/'); $p->title = 'title'; $p->save(); // the child pages for the pagetable field $d = new \ProcessWire\Page(); $d->template = 'template_pagetable'; $d->parent = $p->id; $d->title = 'title'; $d->save(); $p->save(); I get the page and it's children created, but the pagetable field doesn't have those pages set instead they are displayed as a checkbox list How can I add the child pages to the pageTable field?
  5. It's not there by default because you can have multiple types of pages (different templates), by setting up a parent and child processwire knows what kind of page you want to create.
  6. @Kai Go to the template for the page you want to have an add new button/link, on the family tab look for "Show in the add-page shortcut menu?". If not there add a parent and child template and it should appear.
  7. You could just add your own option in config.php $config->prefix_sitename = 'my site name'; $config->prefix_title_separator = ' - '; And use like this: <title><?php echo $page->title . $config->prefix_title_separator . $config->prefix_sitename ?></title>
  8. You can use the page field type to relate pages and use them as taxonomies/terms.
  9. What are the benefits of merging the two? What does laravel do that pw can't?
  10. Check the database for one value that it's not displayed on front end, then save that user and check the value in the db again, see if the value changes in some way.
  11. All you have to do to upgrade/downgrade is replace the index.php and wire folder with the new/old version. https://processwire.com/blog/posts/processwire-3.0-alpha-2-and-2.6.22-rc1/#upgrading-and-downgrading-from-3.x
  12. Child pages can have multiple parents of the same template, so they are listed there to chose a parent for you're child page. Just my guess. If i click on terms i get on a new page to chose a parent Clicking on a parent skips that page.
  13. You can have more add new pages (add new blog entry, add new event, add new gallery etc), so when you click the Add New link it doesn't know what kind of page you want. That's why you get that page so you can chose which one you want. Not sure if having only one should be different.
  14. They are automatic. The automatic links have a plus icon while the bookmarks have an arrow icon. Does your blog page have the correct template?
  15. Did you check the logs? What do they say?
  16. Have you created the Blog page? I had the same happen to me, in my case i didn't have the parent page created. So to add a new blog entry, that is a child of blog, you first need to create its parent page. Go to the pages tree in the admin, hover over home and add a new page (your blog template).
  17. Try to look at your log files /var/log on Debian (should be the same for Ubuntu).
  18. Why not take the uikit style from the <span> and add it to the <a>? .uk-pagination>.uk-active>a { background: #009dd8; color: #fff; border: 1px solid rgba(0,0,0,.2); border-bottom-color: rgba(0,0,0,.4); background-origin: border-box; background-image: -webkit-linear-gradient(top,#00b4f5,#008dc5); background-image: linear-gradient(to bottom,#00b4f5,#008dc5); text-shadow: 0 -1px 0 rgba(0,0,0,.2); }
  19. As said above you have to change it in one of php's configuration files. ; Maximum allowed size for uploaded files. upload_max_filesize = 40M ; Must be greater than or equal to upload_max_filesize post_max_size = 40M http://php.net/manual/en/ini.core.php#ini.upload-max-filesize http://php.net/manual/en/ini.core.php#ini.post-max-size http://php.net/manual/en/configuration.changes.modes.php
  20. I'm trying to create a new page through a file outside of the PW system. require('path/to/index.php'); $p = new Page(); $p->template = 'basic-page'; $p->parent = '/about/'; $p->title = 'Title'; $p->save(); Error: Echoing $wire->config->urls->assets works. I'm executing the code from the command line.
  21. I am uploading images through an api to child pages and when i visit those pages PW creates a variation of the images and thus slowing down the page load 10 to 30 seconds. How to disable default image variation?
×
×
  • Create New...