-
Posts
122 -
Joined
-
Last visited
-
Days Won
1
Posts posted by sakkoulas
-
-
Hello everyone, im stuck on this problem
I have a page with a pageTable field that has a repeater field with three fields
Page
pageTable
field name
field daterepeater
field1field2
field3
I want to compare repeater field1 and field2 and get the field3 value … is this possibleand what is the most correct way can i use (find) to compare field1 - field2 and return the field3;for example
foreach (pageTable as $pt){ foreach ($repeater as $rp){ if($rp->field1 >= $someValue && $rp->field2 <= $someValue){ // <- i cant make this line to work echo $field3; } } }
thanks
-
hi pascalKonings my hosting provider solved the error , it was a lighttpd configuration.
I was getting the above error every time that a page was using a get ( ?something ) method.
Adrian I think that now pw run perfect in lighttpd server I still building the page but everything seams to run smooth
- 2
-
hi, i just install pw 2.5 and i get the "Unrecognized path" error in every page that has the question mark in the url.
for example mywebsite.com/page/add/?parent_id=something or
mywebsite.com/.com/website/processwire/module/edit?name=AdminThemeDefault
show the unrecognized path error
the page tree in admin home page is empty.
also in front page when i search something for example the word about
http://www. mywebsite.com/website/search/?q=About+&submit=
i get a 404 error
the php version is 5.3.29
and the web-server is Lighttpd
-
i don't think that by default field title exist in user templatebut maybe i'm wrong.you can call id name etc
-
hi Manaus
try this
function dothing($thepage) { if (wire('user')->isSuperuser()) { echo wire('user')->name; } } dothing();
- 1
-
thank you Nicoit's all greek
- 2
-
- 8
-
- 6
-
-
hi guys i have a problem and idea it will be a great help.I know that this topic it has been discussed sometimes, but i can't find a solutioni use pro cache for my website, but i have to update a counter field any time someone read the specific article.i have use wanze suggestion here but the problem is that every time the field is updated and the page is saved the pro cache delete the cache for the specific article and the homepage.and this is happen about 5000 times a day ....so if the article (page) is cached and i read it, the next user that it will read the article or the homepage it will be uncached...so probably the problem will be resolved if i save the counter field of each article (page ) with page id as a separate page childbut then it will create a child for each article and until now i have about 28000 articles...is there any idea what i can do? thanks
-
hi people, can anybody tell me please if this page works???
www.villahelidona.comworks fine for me but some people from uk they told me that they get an error ERR_CONNECTION_RESET,
thanks
-
hi manaus try this
$u = new User(); $u->of(false); $u->name = $name; $u->email = $email $u->pass = $password; $u->addRole("UserRole"); $u->save(); $u->of(true);
you can read here http://processwire.com/talk/topic/3543-register-users-and-add-page-same-as-username/#entry34822
- 1
-
-
hi Ryan thanks for the response, my problem is that i have 12000 pages that i have to serve in an .xml so i get an error for memory limit, i really dont know if it worth for the seo to leave all the pages or to use limits, ...
this is the approach for the XML format of a Sitemap index -> https://support.google.com/webmasters/answer/71453 but i m not sure if this will work because i will have to make for every (about) 10000 pages a new xml, do you have any idea for an automate way to create a new xml page for every (3000) pages?
-
hi guys is it possible for every (nth) pages to create a new sitemap xml?
thanks
-
I'm glad I was able to help
-
my problem was solved only with the abobe code
take a look at this snippet at the end of the page, in his mail $header he adds .'Content-Type: text/plain; charset=utf-8'."\r\n";
see the link below
http://ncona.com/2011/06/using-utf-8-characters-on-an-e-mail-subject/
- 2
-
hi janlonden i had a same problem once with greek language and i found a solution in stackoverflow.i do not know if this will help you but you can give it a try.so instead of
mail($emailTo, $subject, $message, "From: $form[epost]");
try this mail($emailTo, '=?UTF-8?B?'.base64_encode($subject).'?=', $message, "From: $form[epost]");
- 1
-
thanks ryan, you were right once again. It was not the procache.
i have change the htaccess and now seems to work fine
-
hi guys,
i have some problems with a news portal that i build.
from some pcs and tamplets the website shows the yesterdays article and not from today,
if i refresh my page (f5, shift f5 or delete browser cookies) then shows the todays articles
and if press the home button shows again the yesterday page?
i had install procache module but now it is off,
any idea? thanks.
-
thanks soma.until now i have made a module that generate a inputfieldtext inside my page (1), (Yeeeeaaa), on click (3) shows a kcfinder window (2) and i can (re)select, upload or delete files inside my root. my problem is that i want that field to be a repeater field so i can select more than one files. i have try to insert repeater field but then i cant add attributes (onlick do somethin) inside fields.
Any help will be greatly appreciated
thanks for another time -
i have just one question (maybe i'm lying )
is it possible to add attribute to an Input Field Text; that i create inside a module
the attr that i want to add is "onclick", "openKCFinder(this);"
i have try but i get an error <Method Field::attr does not exist or is not callable in this context>thanks
-
ok thanks soma
-
hi soma can you redirect me to a module so i can read an example?
return field value inside repeater inside TableField
in General Support
Posted
hello Macrura
yes echo is showing the values
all day im trying to compare the two fields and get the third, i disapointed and change the repeater field with pageTable so i can search for page id compare and move on...
thanks