qwertyeee
Members-
Posts
23 -
Joined
-
Last visited
Everything posted by qwertyeee
-
maybe
-
yes, yes it's editors fail when i did copy/paste. I do not know how to more accurately express his thought(for now) . Maybe some who will understand and be able to explain to the other.
-
Hi guys. What do you think about field which takes a template name as parameter and operates with the filed of this tamplate. example we have 2 templates =============== template "basic page" field title field body field comments ======================= ===================== template "comments" field name field body field comments ==================== field comments uses template "comments" as parameters and this is done in order to receive comment on the cascading. (sorry for my english).
-
mmm... don't understand problem with create new page with name "0"
-
i try and have same problem, i think it's becouse page name set "0" (not "o"), maybe letter in code Ryan do check somethink like if ( $page->name ){...} else {...} and it's not work couse $page->name = 0 (sorry for my english).
-
good, thank you Ryan.
-
hello everyone. anybody did user registration/login ? (would like to see source)
-
would add something like "autohide" (is a narrow strip on the left screen, and when it hover over it appears completely)
-
Google map module. for use add in template <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->FieldtypeGMap?>styles/FieldtypeGMap.css" /> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="<?php echo $config->urls->FieldtypeGMap?>scripts/FieldtypeGMap.js"></script> $out = '<textarea id="Fieldtype_GMap_location" class="GMap_hidden_textarea">'.htmlspecialchars($page->GMap_location).'</textarea>'; $out .= '<div class="GMap_canvas" id="GMap_location"></div>'; $out .= '<script type="text/javascript">'; $out .= 'var GMap_location = new Map("GMap_location");'; $out .= '</script>'; echo($out); replace GMap_location with your field name $out = '<textarea id="Fieldtype_your_filed_name" class="GMap_hidden_textarea">'.htmlspecialchars($page->your_filed_name).'</textarea>'; $out .= '<div class="GMap_canvas" id="your_filed_name"></div>'; $out .= '<script type="text/javascript">'; $out .= 'var your_filed_name = new Map("your_filed_name");'; $out .= '</script>'; echo($out); GMap.zip
-
and in site/config.php need recomment $config->dbSetNamesUTF8 = true;
-
i found problem, this was in my apache config file httpd.conf AddDefaultCharset windows-1251 thank you
-
hmm, i have php 5.2.12, problem may be in this
-
" Are you able to view the page with the Russian titles on the site? (outside of the page list)" yes. Also, how did you convert those tables to UTF-8? - i change it in \ryancramerdesign-ProcessWire-019560e\site-default\install\install.sql in all tables with latin charset and reinstall site.
-
-
"If you need help converting existing tables to UTF8, just let me know and I can tell you how" no, thank you Ryan, i do it. but page with russian title not working for me. strange =)
-
i think any cyrilic site http://dirty.ru/ for examle you can copy same word for test title. and none utf8 table CREATE TABLE IF NOT EXISTS `field_headline` ( `pages_id` int(10) unsigned NOT NULL, `data` text NOT NULL, PRIMARY KEY (`pages_id`), FULLTEXT KEY `data` (`data`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE IF NOT EXISTS `field_sidebar` ( `pages_id` int(10) unsigned NOT NULL, `data` mediumtext NOT NULL, PRIMARY KEY (`pages_id`), FULLTEXT KEY `data` (`data`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE IF NOT EXISTS `field_summary` ( `pages_id` int(10) unsigned NOT NULL, `data` mediumtext NOT NULL, PRIMARY KEY (`pages_id`), FULLTEXT KEY `data` (`data`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; (*and sorry for my english )
-
in admin panel processwire/page/list/ Page List Home 7 * Edit * View * New Stories 1 * Edit * View * New * Move Stories page can't load child if child page have cyrilic title. also same table in install.sql have non utf8 charset.
-
hi all. Is for example class Fieldtypetest extends Fieldtype { } when it is displayed in the template page echo "{$ page-> testField}"; need to include javascript file and add something to the value I try to do so: class Fieldtypetest extends Fieldtype { public function formatValue (Page $page, Field $field, $value) { $this->config->scripts->add($this->config->urls->Fieldtypetest. "test_js.js"); return '<div>'.$value.'</div>'; } } * ( $this->config->urls->Fieldtypetest - have correct value ) But it does not work, javascript not included. Please tell me how to correctly include the required javascript and add something to value, such as '<div>'. $ value. '</ div>'; for example.