eincande Posted September 21, 2013 Share Posted September 21, 2013 Hello,I am evaluating processwire CMS for an upcoming project. So far, it seems to be great ! very impressive job.The website i must make is for disabled people. I must make the web site frontend, WCAG AA compliant AND responsive. I'm very interrested in that project on a "human level.- Can i change the HTML code generated in forms ? It seems to miss some stuff like "labels" associated to inputs, and maybe some other things that are required to achieve WCAG compliance. More widely, do i have a total control on frontend code ? - Can i use some reponsive framework (boostrapt and brothers) for the frontend theme ? - Can processwire handle multilanguage website with different searchs based on language ? - Can i access the database directly ? Is there some schema ? Thank you for your help in advance Emmanuel (newbie) Link to comment Share on other sites More sharing options...
adrian Posted September 21, 2013 Share Posted September 21, 2013 Hi Emmanuel and welcome to PW. PW does not control the frontend code at all, you have complete flexibility to write the output exactly as you need, including the adding of form labels. As an example, there are different ways to do this, but if you are using PW's built-in method for generating forms, you can do something like: $f->name = "myField"; $form->label = __("Field Title"); Obviously you need to build the other elements of the form, but you get the idea. You can of course use normal HTML: <label for="myField">Field Title</label> The advantage to the first approach is that the label can be made translatable using PW's language support. You can use Bootstrap, or any other framework you wish. Ryan has recently developed a Zurb Foundation profile for PW, but it is not too difficult to use any of the other frameworks. http://modules.processwire.com/modules/foundation-site-profile/ http://processwire.com/talk/topic/2411-bootwire-basic-twitter-bootstrap-profile/ http://processwire.com/talk/topic/3832-release-unsemantic-site-profile/ PW supports multilanguage: http://processwire.com/api/multi-language-support/ You can always access the database directly. It is a standard MySQL database so you can view it easily with something like PHPMyAdmin. You can also of course query it directly using SQL statements, but in most cases using PW's API and selectors is much easier. Hope that helps get you on your way to CMS nirvana 6 Link to comment Share on other sites More sharing options...
eincande Posted September 21, 2013 Author Share Posted September 21, 2013 Thanks a lot for that quick and detailed answer I'm diving into the code and it is very clear and well designed. It makes me even more interested in PW. Link to comment Share on other sites More sharing options...
BUCKHORN Posted September 26, 2013 Share Posted September 26, 2013 Wouldn't this work for translating strings in the template file? <label for="myField"><?= __('Field Title') ?></label> 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now