neonwired
Members-
Posts
54 -
Joined
-
Last visited
Everything posted by neonwired
-
Quick question when using the fulltext **= operator, how does it sort the results? Can you sort by relevance or limit the results by relevance?
-
Image field always outputs an array when using ajax
neonwired replied to neonwired's topic in General Support
Thanks, setting output formatting to true solved the issue. -
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
-
How come it has that version if it doesn't require it?
-
When i try to install this is says required version is 3.0.166, the latest processwire version is 3.0.165.
-
Can this generate picture elements i'm trying to use different aspect ratio images on smaller screens?
-
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
-
Handling repeater fields in front end forms
neonwired replied to neonwired's topic in General Support
Unfortunately not, i ended up having to make a bespoke form. -
-
- user
- create user
-
(and 1 more)
Tagged with:
-
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?
-
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.
-
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.
-
Can you render a page without calling hooks
neonwired replied to neonwired's topic in General Support
Many Thanks -
Can you render a page without calling hooks
neonwired replied to neonwired's topic in General Support
How does that work? Any docs? -
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')
-
The roles for the guest user always seem disabled and can't be changed. Any idea why?
-
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.
-
Using $page->render to render a specific template
neonwired replied to neonwired's topic in General Support
Found the answer to the config appending _main.php using the $useMain variable as suggested in this thread. Thanks for everyone's help. -
Using $page->render to render a specific template
neonwired replied to neonwired's topic in General Support
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. -
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,
-
Thanks, that's one way if i can't hook something. It'd be nice to have a default field though.
-
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.
-
Thanks a lot. I'll probably look at that plugin and page protector and see if i can figure out how they work.
-
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.