Jump to content

sakkoulas

Members
  • Posts

    122
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by sakkoulas

  1. 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 date

          repeater
            field1 

            field2

            field3

       

    I want to compare repeater field1 and field2 and get the field3 value … is this possible 
    and 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

  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 

  3. 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 solution

    i 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 child

    but 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

  4. 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?

  5. 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]");

    • Like 1
  6. 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.

  7. 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

    post-881-0-41996800-1373203828_thumb.jpg

  8. i have just one question (maybe i'm lying ) :P
    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

×
×
  • Create New...