Jump to content

rooofl

Members
  • Posts

    74
  • Joined

  • Last visited

Everything posted by rooofl

  1. 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!
  2. 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?
  3. 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.
  4. 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
  5. 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?
  6. 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!
  7. @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.
  8. 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.
  9. 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.
  10. 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.
  11. 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?
  12. 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?
  13. 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?
  14. Awesome. You solved my problem, thank you.
  15. 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 ?
  16. Sorry to repost but diogo can you confirm the result I reach on my previous post?
  17. 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!
  18. I have a “related pages” field that list same template’s pages in a SelectMultiple input. This allow to create relations between pages of the same kind. But those relations are not mutual: I would like to get B related to A when I link A to B. Is this possible?
  19. Thank you Adrian for your answer. My issue is solved, Indeed I don't want to include directly the stylesheet. Can you precise the difference between path and url? And what I should use path for an include?
  20. Hello, beginner here. First, Processwire is amazing. I try it from yesterday and already made so much progress! A field allow me to unzip an archive in assets/. Now I would like to include in my template a stylesheet.css extracted from the archive. I think I meet some permission issue because nothing is included. Can you confirm and help me? $fontlist = $pages->get("/fonts/"); foreach($fontlist->children as $child){ $stylesheet = $child->webfont_archive->url.'stylesheet.css'; echo "<a href='".$stylesheet."'>".$stylesheet."</a>"; // This link is ok include($stylesheet); // Nothing here }
×
×
  • Create New...