Jump to content

reems

Members
  • Posts

    74
  • Joined

  • Last visited

Posts posted by reems

  1. Hi,

    I want to use the build in API functions for pagination in a Dutch site.
    One of those is "getPaginationString", resulting in a text like "My page 1 to 10 from 100".

    I would like to have the words "to" and "from" in Dutch, but without changing the function in the Wire files.
    But I can't see how.

    I have language support in the admin backend and found this text in the language files there, but those don't work on the frontend of course.

    Anyone an idea?

     

    Thanks,
    Reems

     

  2. Hi,

    The present comment module makes it possible to add comments to a page.

    Is there a simple way to tweak the system to make it possible to add comments to a repeater field?

    I have multiple (of course) repeater fields on a page and I want to make it possible that every repeater field has it's own comments and comment form.

    Thanks.

    Reems

  3. Hi,

    I have a strange issue.

    I use the ImageExtraLanguage Field in different templates on different pages.

    In the admin the images can be dragged to sort.

    But on one page the new order is saved correctly, but on another page not. After saving that page, the images are reloaded in the original order.

    I have no idea what causes this behavior.

    Only thing is that on the page where the order is not saved, there are more then 100 images, on the other pages where the new order is saved correctly the number of images is max 15. But I can't imagine that this is realy the cause.

    Thanks.

  4. Hi,

    I have strange behavior with the standard imagefield resize.

    I use in a template the following:

    $options = array(
                    'quality' => 100,
                    'upscaling' => false       
                    ); 
                
    $img = $image->width(900,$options);
    

    My client has some images uploaded that are 1920 pixels width and one is 374 kB.
     

    After downsizing to a width of 900 the quality is much worse then experienced with other uploaded images while the original was oke. But the most strange is that the downsized image is now 522kB instead of 374 kB.

    Another goes from 211kb to 291kB.

    While afcourse we expected a much lesser filesize.

    Any ideas how this can happen and what to do about it?

    Maybe putting in some extra options?

    Thanks.

  5. My opinion?

    I think PW is already very userfriendly seeing the clear API and it's possibilities and the freedom in creating templates etc. Afcourse you have to have at least a basic understanding of PHP (that's where I was when I started with PW).

    If you really need a top of the bill user friendly cms and don't want to learn PHP, then PW is maybe just not the right cms for you. For the ones as me that start with PW and are willing to learn a (little) bit more PHP to really enjoy all the possibilities of PW indeed a central place with more snippets would be an idea.

    But, on the other hand, reading through the forum, posting questions and googling when I had a problem helped me I think more in learning then having a maybe to easy big copy and paste snippets library.

    I'm still struggling frequently but that's then more with PHP then with PW and I still enjoy the learning involved.

    • Like 5
  6. First of all Joss. I am also not an artist, but I wish I was the kind of "not an artist" as you are, seeing your new website design :D. It is really great. I'm curious to the animations.

    I agree with MuchDev that your problem is maybe caused by pure html/jquery problems as open divs etc.

    But the only way to check this properly is to look not at the templates with all the php and includes inside but to the generated page and its source. Could you post that one or do you have it online?

  7. It seems that my problem has something to do with the sitemapXML Module I use.

    When I rename the page the sitemap in the site itself is in, to something different then "sitemap", the problem disapears.

    The German sitemap was on domainname/de/sitemap/. That's different from the sitemap.xml in the root of the site (from the module), so that German sitemap did not give any problems.

    Does anybody has an idea or experienced the same problems.

    I prefer to name the sitemap in the site itself also "sitemap", so a solution is still needed.

    Thanks.

  8. I suppose you use the Multi language module and LanguageSupportFields.

    To have another language as default then English, I did a couple things to get it properly working:

    It depends also if you want your backend also in your default language or only the frontend.

    1. Go to Setup - Languages and upload your default language files (in your case Arabic) to the default language if you want the backend also in Arabic.

    2. Change the title of the default language, in your case to "Arabic".

    3. Add in your case English as extra language and name it "en"

    4. Go to Acces - Users - Guest and set the language to "Arabic"

    In this solution visitors access pages first without /ar/ for the Arabic version and with /en/ if they want the English version.

    As I recall you have to be carefull changing the default language. You can loose texts on pages you already added.

    Check also this post:

    https://processwire.com/talk/topic/5062-switch-default-language-possible/page-2

    • Like 3
  9. Hi,

    I have unexpected strange behaviour in just one page (the sitemap) in a multilanguage site.

    The sitemap workes fine in both languages (Dutch and German), but on the Dutch page the footer has gone.

    All other pages of the site give no problem whatsoever.

    Without changing anything in the scripts or templates I now get in the Dutch sitemap the following error:

    Fatal error: Exception: Method Page::localPath does not exist or is not callable in this context (in /home/travelinlu/domains/travelinluxury.nl/public_html/wire/core/Wire.php line 320) in /home/travelinlu/domains/travelinluxury.nl/public_html/index.php on line 216
    
    For every page I include the same header and footer templates.

    In the footer template I use the following:

    $urlde = $page->localPath("de");
    $urlnl = $page->localPath("nl");
    
    <a href='<?php print $urlnl ?>'>NEDERLANDS</a></br>
      <a href='<?php print $urlde ?>'>DEUTSCH</a></br>
    
    Anyone an idea what is happening?
  10. Hi,

    Are more people experiencing problems with "View New Content" in this forum?

    Since a couple of days, but only when I am logged in, I only get a message "no new content".

    No matter what I choose, "content I've not read, ""since my last visit", "past 24 hours", etc. Any choice delivers that message.

    I tried different browsers, cleared cache, but is allways the same.

  11. Been following this discussion with interest, but...

    In a case like this I simply had a template with both layouts in it, in your case the grid and the list in separate divs, and just showed and hide the divs with jquery. Worked perfect.

    But, maybe I am missing something and I am still too much of a noob for this :P....Just curious....why don't you choose for a situation like this not just two pages?

    1. the gridpage with a gridtemplate and in the admin all the data

    2. a second empty listpage with a listtemplate.

    At the backend you leave the listpage empty. And in the listtemplate you just load the data of the gridpage. 

    Then a simple pagelink to the other page in both templates.

    What am I missing here? :)

  12. First of all I see that you haven't named your repeater template repeater_[fieldname]. 

    But something different that could cause the problem is using the php short tag "<?=".

    Big chance that in php on the server short tags are turned off.

    You could try by changing it to normal php "<?php echo" and see what happens.

    In your home.php you don't use the short tag and so maybe, with your other repeater template it's the same, reason why that one works fine.

    • Like 3
  13. Hi Bearclaw, great you enjoyed working with Processwire.....as was to be expected..... ;)

    Is the shopmodule that is available something for you: Shop-for_Processwire ?

    There is also  a paypal module available to it.

    I'm in the Netherlands as well, so if you need help with Ideal integration after installing shop software (no matter which), just let me know. W've done it before.

    But you could also use Mollie, which integrates lots of different payment options including Paypal and Ideal, what is even easier.

    Suc6


    @Diogo   HE, didn't know Simplecart. Looks indeed easy. Going to test it in the near future. Thanks.   :)

    • Like 1
  14. Indeed mpdf came to my mind also. Works easy.

    Check by example for html to pdf

    And afcourse the Processwire Pages2Pdf Module

    If your are able to create a pagetemplate with which you can generate the invoice as html page, converting it to pdf wouldn't be a problem.

    It's created serverside, so automatic emailing it to the buyer is also possible.

    • Like 2
×
×
  • Create New...