Jump to content


jukooz

Member Since 09 May 2012
Offline Last Active Nov 18 2012 03:04 PM
-----

Topics I've Started

Force UTF-8 encoding for PW

28 October 2012 - 02:44 PM

Hello,

I have pretty strange situation. Hosting that I'm working on is forcing ISO-8859-2 encoding. I don't have any real access to it, just ftp to folder where I'm installing a site. None of htaccess solutions worked - have no idea why. The only thing that worked for me was adding
header("Content-Type: text/html;charset=UTF-8");
to every template. But ProcessWire backend is still encoded in ISO-8859-2 and messy.

How to write module that would add it to every ProcessWire pageload? Or to which PW file and where I need to paste it (probably it will never be updated)?
My php skills are really poor. Know only basics that allow me to ingrate processwire to site.

Checkbox field does not save its state

04 October 2012 - 07:39 AM

I am not sure if I am doing something wrong, but checkbox field does not save its state. Do you have any ideas why is that happening? PW 2.2.9. I am using this field for the first time.

EDIT: I updated to very latest 2.2.9 and checkbox field still does not save its state. I don't know if it changes anything, but mentioned checkbox is part of repeater.

Can't save page 1: /: Selected homepage template cannot be used because it does not...

28 September 2012 - 02:57 PM

Hello,

I can't change Homepage template because I get such an error.
Can't save page 1: /: Selected homepage template cannot be used because it does not define access.
Do you know what I made wrong?

EDIT: I named template home.php and replaced that way.

Thanks

Few noob questions

09 May 2012 - 08:34 PM

Hello,

I found ProcessWire today when exploring ModX little bit. It's absolutely amazing.

I have few questions and I must state that I don't have php skills, but PW seems simple enough to implement without these skills.

1. What is the best way to "split" code for better templating? I mean writing head section only once, footer only once etc. I realize that it may be done in many "good" ways, but how would you prefer it being done? Can they be seperate templates so that I could create reusable building blocks?
2. Can I have "global variables" that I would use in templates but don't want to create separate template or page for?
3. How do you differentiate pages when you have 2 menus on website (how to create page added to second menu only)? How 2 menus play with the tree?

I will ask more noob questions soon ;)