Jump to content


qwertyeee

Member Since 25 Feb 2011
Offline Last Active Feb 21 2012 04:30 PM
-----

Topics I've Started

field with parameter "template name"

12 January 2012 - 10:59 AM

Hi guys. What do you thinkabout fieldwhichtakes atemplate name as parameter
andoperateswith 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
andthis isdone in orderto receivecomment onthe cascading.

(sorry for my english).

anybody did user registration/login ?

08 March 2011 - 11:09 AM

hello everyone.
anybody did user registration/login ? (would like to see source)

Somethink to add/edit a user pages on the site (in personal blogs for example) ?

07 March 2011 - 03:05 AM

subj

Google map module

03 March 2011 - 05:53 AM

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);

bug in processwire/page/list/ ?

02 March 2011 - 04:25 AM

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.