processwire | ProcessWire 3.x is a friendly and powerful open source CMS | Content Management System library
kandi X-RAY | processwire Summary
kandi X-RAY | processwire Summary
ProcessWire is a friendly and powerful open source CMS with an API that is a joy to use at any scale. It is both a content management system (CMS) and framework (CMF) built to save you time and work the way you do. With all custom fields, a secure foundation, proven scalability and performance, ProcessWire connects all of your content seamlessly, making your job fast, easy and fun. ProcessWire gives you more control over your fields, templates and markup than other platforms, while ProcessWire’s API makes working with your content easy and enjoyable. Managing and developing a site in ProcessWire is shockingly simple compared to what you may be used to. ProcessWire is widely trusted by web professionals for its exceptional consistency, stability and security; revered by web developers for its API that saves time and makes work fun; valued by web designers for its adaptability and flexibility with modern website/application content management needs; and loved by clients for its no-nonsense interface and ease-of-use in adding, updating and maintaining content. New versions of ProcessWire are released just about every week on the development branch.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Process a token .
- Setup the attributes
- Renders the module
- Create a new database query
- Gets the field input fields
- Process resize image
- Protected size helper
- Clean CSS .
- Return selector value
- add a hook
processwire Key Features
processwire Examples and Code Snippets
Community Discussions
Trending Discussions on processwire
QUESTION
Welcome to my first post. I've searched stackoverflow for an hour to find the awnser I need, but without succes.
I'm currently creating my own website to test php with processwire and bootstrap. I am quite new to programming in general, but I have only three weeks of experience with php/processwire. I'm using this because I got an internship where they use it and I would like to create my own project in my spare time to speed up the learning proces.
I'm using a separate header/footer file that I import in each template. I notice that my CSS that is imported in the header file only works on my home.php template and not on my other ones. The html/php from header works fine, it's just the css that isn't working.
My files:
- site
- assets
- less
- styles.less
- less
- templates
- _includes
- _head.php
- _foot.php
- home.php
- basic-page.php
- _includes
I tried:
- Change to css instead of less
- Changing css import with ../ instead of site/
- Copying all content of home.php into basic-page.php to see if the problem was in the template.
ANSWER
Answered 2021-Feb-07 at 17:02instead of this
QUESTION
I'm attempting to include some code in the head.inc file that will check if the page is available in the user's location language and if so it'll redirect to that page. Obviously this isn't a great for UX but alas my client is keen.
The only issue I need to overcome is if the user has already been redirected then don't do it for every page... store the fact that the user was redirected and don't do it again until the session has ended. Something like that.
I have written the code below but a) I'm unsure this is the best way to do it and b) it seems to get stuck in a redirect loop (which I thought I'd avoided by my second session check).
I'm using the ipapi.com to check the user's location. I’m also using ProcessWire’s ‘$session’ which is effectively the same as PHP session.
...ANSWER
Answered 2020-Jan-05 at 09:25Calling $session->redirect($url);
before $session->set("lucentLightingSessionRedirected", "true");
appears to be your issue.
Looking at the source code of $session->redirect()
it executes:
QUESTION
I'm needing the user to always get a unique integer than from what previous returned on last refresh of the browser.
...ANSWER
Answered 2019-Sep-24 at 16:06Try this:
QUESTION
in ProcessWire admin you're only able to log in using your name (username) but as I'm using e-mail log in in front end I want to use e-mail for backend, too.
How can I change admin login form to allow e-mail-address?
...ANSWER
Answered 2017-Feb-27 at 13:35Here is the solution I came up with
I placed those hooks in my site/init.php file
QUESTION
This is a very weird problem, where i have a datetime field on a template, that returns null in some computers. I've tried in a same computer, with web browsers that never logged in in admin (just to make sure it wasn't about admin permissions over the field). I can only think it's a cookies/session issue, but still don't understand how this can happen on a field that comes from the $page object and not stored in cookies or session.
I'm using ProcessWire 2.7.2
...ANSWER
Answered 2017-Sep-26 at 10:39It seems to be related to locale, I realised it was actually coming from just one of the languages of the website instead of randomly happening. I fixed it simply by filling some translations but feels like a bug from repeater fields in multilanguage.
QUESTION
i want to validate a form which contains of several input fields. most of them a simply text/numbers and work fine.
for one part of the form i create several fields ('year' and 'text') and duplicate them via a while loop.
it look like this:
...ANSWER
Answered 2017-Sep-25 at 10:46Define your array outside of the loop,
QUESTION
I there a possibility to add a classname to a page? I can't figure out how to implement such feature or if it already exists.
I'm using Processwire 3.0.42.
...ANSWER
Answered 2017-Mar-01 at 15:49Put something like this in your template where the body is:
QUESTION
I'm a bit stuck here. For the purpose of a Google map with multiple icons for different places, I need the data in a XML Format. The idea is to check whether an entry (identified by an ID out of Processwire) is already in the XML File or not. If it is, nothing has to be done. If it is not, it has to be added to the File. Also, if the id is on the XML File but not on the database anymore (because it had to be deleted), it needs to be removed.
This is what I have so far:
...ANSWER
Answered 2017-Jul-17 at 11:10You can simply access xml elements with the same syntax you would access arrays or objects:
QUESTION
I'm currently working on a website with a lightbox. (Featherlight)
Now the problem is, the lightbox only load's the first image, even when I click on another image, it still show's the first.
You can try it yourself over here
The code I used is
...ANSWER
Answered 2017-Jun-23 at 10:05I am not sure how exactly Featherlight library works, but it is probably connected with HTML IDs. You can have each id used only once, but you duplicate id "mylightbox" for every image in foreach.
Try to change the foreach to something like this:
QUESTION
I've created a database export of my database using my own php script.
To export the table structure I use SHOW CREATE TABLE
, to export the contents of my tables I select everything that's in the table and than create a query from it that looks like this: INSERT INTO tablename VALUES (...), (..), etc.
I save everything to a text file, first the create statements, than all the insert statements.
When I try to import the text file with phpMyAdmin I get an error:
...ANSWER
Answered 2017-May-19 at 08:55The problem is that your valuesToSql()
method translates null
values into empty string. In MySQL the unique indexes allow multiple null
values being present in the index values:
For all engines, a UNIQUE index permits multiple NULL values for columns that can contain NULL. If you specify a prefix value for a column in a UNIQUE index, the column values must be unique within the prefix.
However, empty string is not the same as null
and triggers the duplicate key error.
Furthermore, your code translates all values into strings, regardless what the real underlying value is. This may cause issues if the target MySQL server has strict_all_tables
sql mode enabled, since a string is not a valid data for a numeric field.
To handle the null
issue, I would check if the value is null
and handle it differently:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install processwire
If using ProCache, we recommend using only v3.1.4 or newer.
If using ListerPro, we recommend using only v1.0.9 or newer.
If using ProFields, we recommend grabbing the latest versions in the ProFields support board.
If using ProCache and you upgraded your .htaccess file, you should go to your ProCache settings after the upgrade to have it update your .htaccess file again. If no upgrades to your .htaccess file are necessary, then the ProCache settings page won't mention it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page