Jump to content

neonwired

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by neonwired

  1. Quick question when using the fulltext **= operator, how does it sort the results? Can you sort by relevance or limit the results by relevance?
  2. Thanks, setting output formatting to true solved the issue.
  3. I have an image field with the output set to 'Single-file when populated, null when empty' which outputs a PageImage object fine normally, but when I load it using ajax the same field always outputs a PageImages array with a single image. What could be causing this? Processwire 3.0.182 PHP 7.3 MariaDB 10.3 Nginx
  4. How come it has that version if it doesn't require it?
  5. When i try to install this is says required version is 3.0.166, the latest processwire version is 3.0.165.
  6. Can this generate picture elements i'm trying to use different aspect ratio images on smaller screens?
  7. I'm updating a processwire site from 3.0.16 to the latest version and immediately get this error: - Fatal error: Exception: SQLSTATE[HY000]: General error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname must be a string specifying an existing class (in ......./public_html/wire/core/ProcessWire.php line 494) #0 ............../public_html/wire/core/ProcessWire.php(302): ProcessWire\ProcessWire->load(Object(ProcessWire\Config)) #1 ..................../public_html/index.php(52): ProcessWire\ProcessWire->__construct(Object(ProcessWire\Config)) #2 {main} in ........./public_html/index.php on line 64 As index and htacess haven't changed i just swapped out the wire directory as specified on https://processwire.com/docs/start/install/upgrade/#general-upgrade-process Site is on php 7.3, db is mariadb 10.3
  8. Unfortunately not, i ended up having to make a bespoke form.
  9. I'm hoping someone has seen this before. There doesn't appear to be an issue with the user info.
  10. I have a front end form for creating new pages, repeater and repeater matrix field don't seem to save any data. I was considering handling the data manually but can't seem to get anything useful from the post data, are there any methods i can use?
  11. i'm trying to use the pager on a custom admin page, it renders ok but the page doesn't seem to get the page numbers. Input is empty.
  12. Is there an easy way to get a pages index within a given pagearray similar to how $page->index() works with siblings. I'm trying to do a index of total count but using all pages of a grand parent page so essentially using all siblings and cousins.
  13. I'm using the page renderer to compile html emails as below. The problem is aoim hooks Page::render which causes an error. Is there any way to render a page without calling any hooks? $page->render('emails/base.php', (array) $data), 'subject' => $page->get('subject|title')
  14. The roles for the guest user always seem disabled and can't be changed. Any idea why?
  15. I'm using $config->paths->root to get the root domain of my site. It worked fine in my local dev environment but on my live server it returns '/var/www' rather than the actual directory '/var/www/my-site' . I'm pretty sure i've used it before with virtual domains so not sure what the issue is.
  16. Found the answer to the config appending _main.php using the $useMain variable as suggested in this thread. Thanks for everyone's help.
  17. I think the path is correct. It should be relative to site/templates, right? It does look like the config appends it was $config->appendTemplateFile = '_main.php'; Not sure how you get around this.
  18. I read somewhere that you could use $page->render('emails/base.php') to render a page using a specific template. However it doesn't seem to be working, it's still trying to use _main.php. Not sure what the expected behavior of this is or if i'm doing it wrong,
  19. Thanks, that's one way if i can't hook something. It'd be nice to have a default field though.
  20. Is there a way to prefill a field with a default value. I have a simple text field that 99% of the time will contain the same text but for the other 1% it needs to be editable so rather than paste in the same text for nearly every page I'm trying to find away to prefill the value of the input.
  21. I get this error when trying to add a new user. I've never seen it before. Anyone know what might cause it?
  22. Thanks a lot. I'll probably look at that plugin and page protector and see if i can figure out how they work.
  23. hmm, don't think that would work as the parent isn't protected. I have all the children protected using their template but want to make one of two viewable/unprotected.
×
×
  • Create New...