-
Posts
81 -
Joined
-
Last visited
Everything posted by rooofl
-
I also have troubles to make it work with 1400+ page deletion. I have no error, and the pages are still there after execution of the script. It works if I have less result (e.g. if I filter id>1000,template=mytemplate) The issue seems to be related to the high amount of results.
-
Thanks a lot for your clarification, that works perfectly.
-
Hi, thank you so much Ryan for this amazing module. It helps me a lot. I have in my .csv a column for countries: (France, Germany…). I would like those countries name to be imported as sub-pages of a “Countries” pages, with a template “country”. The page field “country” allows pages to be created from it. I learn in Nik’post that such pages could be associated automatically (if I understand it well), but is it possible to create it from the .csv? If I try to associate my csv field to the right PW field I get: ImportPagesCSV: Unable to import page because it has no required 'title' field or it is blank. Any idea to help me solve my problem?
-
Thank you LostKobrakai, it works perfectly by testing count(), my final code is: $news_list = $pages->find("template=news, sort=name, show_in_slide!=1"); if ($news_list->count()) { echo "There is at least one news not shown in slide"; }else{ echo "All news items are shown in the slide"; }
-
I still have trouble to find how to solve this issue, can anyone help me?
-
Thank you for your quick replied, but none of the solutions seams to work. Let me correct my first post: In the case the condition should display “no news”, it displays “There is at least one news not shown in slide”, and not nothing as I wrote before. Sorry for this confusion.
-
I try to display all the pages `news` with a checkbox `show_in_slide` unchecked. Here is my code: $news_list = $pages->find("template=news, sort=name, show_in_slide=0"); if ($news_list) { echo "There is at least one news not shown in slide"; }else{ echo "No news"; } This works if I have such a news, but “There is at least one news not shown in slide” appears also if it is not the case. What I am doing wrong?
-
Many thanks for your replies. This issue was due to a hand crafted function using substr(). I used mb_substr() instead and it solved the encoding issue!
-
I have trouble to render special characters with a textarea field: once special characters are entered in the textarea field (eg: å), it appears as � on the website. This textarea is a character map for a type showcase, so I need UTF8 support, my HTML header is set to charset=utf-8, what do you think?
-
Oh, sorry for that and thank you for your time! You made me realize that I was a bit late in term of PW versions. I have a fresh one now, thanks again.
-
Horst > I try both to upload manually and from the module installer. The error happens when I check for new module or when I proceed to installation. My php version is 5.6.10. I noticed that the error exists on my distant server as well. It blocks the access to the module page until I manually remove PIA. Edit: and ProcessWire 2.4.0
-
Hi horst, thank you for this great plugin. I can’t install it on my new Processwire website. When I come to activate the plugin, I get the following error: Class PageimageAssistant contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Module::getModuleInfo) in /…/site/modules/PageimageAssistant/PageimageAssistant.module on line 738 Any idea?
-
Solved! Thank you all. My code is: keyword.php: $fonts = $pages->get("/fonts/"); $filter = "keywords=$page"; include("./fontlist.inc"); fontlist.inc $fontlist = $fonts->find("$filter,limit=6, draft=0, sort=-created"); $pagination = $fontlist->renderPager(array( … This way it allows me to set limit, draft, and sort in the font list template whatever the filters. @diogo I am really glad you use and like my projects! It is always a pleasure to see that my work can be useful. Thanks to you, Use & Modify will have keyword pagination bug free!
-
@LostKobrakai As you can see in this demo the home page pagination works fine with $pages->get("/fonts/"), I must admit I don’t know why exactly. Here is the code of my home page (working) and the one for my pagination, finally the code of the keyword page. I am open to any other solutions, idea or examples, as I am not an expert, maybe I missed something.
-
Hello, I want to paginate my keyword = value pages. This works well when I only paginate those pages: $fonts = $pages->get("/fonts/") But it stops working when I try to paginate $fonts = $pages->get("/fonts/")->find("keywords=mykeyword"); My pagination code looks like: $fontlist = $fonts->find("id>1, limit=6, draft=0, sort=-created"); $pagination = $fontlist->renderPager(array( 'nextItemLabel' => "▶", 'previousItemLabel' => "◀", 'linkMarkup' => "<a rel='prefetch' href='{url}'>{out}</a>")); echo $input->pageNum; foreach($fontlist as $font){ … “Allow page number” is checked on both fonts ant keywords templates.
-
Ok I tried a fresh install of ProcessWire and the problem was the same. Then I realised my host PHP version was really old! Problem solved by upgrading PHP to 5.4! Thank you adrian.
-
If I replace by the original index.php: same error but at line 111. I tried to upload again, following exactly the process on the documentation page but I still have the issue.
-
Hi, I try to move my website. I already moved the database, changed the config.php content, but I get: Parse error: syntax error, unexpected T_VARIABLE in www/v3/index.php on line 106 the line 106 contains: $config->paths = clone $config->urls; What did I miss?
-
Thanks a lot for your answers and tips Joss.
-
Thank you Joss! That’s what I was looking for. It leads me to another question: My current content is substantial (a big list of typefaces) and I don’t want to export all of it. What procedure do you advise to export just a part of my content (two or three fonts) only? Should I make a copy of my current website and delete some content?
-
Hello, I would like to publish a site profile. My template is ready but I would like to know how to “build” the /install folder. As I can see here, it contains a basic database profile and dummy content right? What is the procedure to do generate install.sql? Is it a plain database export?
-
Awesome. You solved my problem, thank you.
-
Hello, since a long time I am stuck on this probably stupid issue. I have two very similar fields: font keywords and font license. When I try to display the titles of the keywords, everything is just fine but for the titles of font licenses, things goes weird: // Keywords $keywords = $font->keywords; if ($keywords){ echo "<li><ul class='keywords'>"; echo "Keywords:"; foreach($keywords as $keyword){ echo "<li><a href='{$keyword->url}'>{$keyword->title}</a></li>"; // ok, the list of the keywords is displayed } echo "</ul></li>"; } // License $license = $font->license; if ($license){ echo "<li><ul class='license'>"; echo "License:"; echo "<li>{$license}</li>"; // displays the id of the matching license echo "<li>{$license->title}</li>"; // displays nothing echo "</ul></li>"; } I checked my license field and everything looks normal. Can you help me to find what is wrong ?
-
Sorry to repost but diogo can you confirm the result I reach on my previous post?
-
Thank you diogo, as I tried your method, I realized that it can control the display of the pages but it can’t make the pages selected without an intervertion of the user. Am I right? The solution I am hoping to find would select the related pages within the full list of available pages. It would be really handy for large number of projects!