Jump to content

purwa

Members
  • Posts

    32
  • Joined

  • Last visited

Posts posted by purwa

  1. Hello guys, hope you all have a great day.

    so I want to translate my templates element based on selected languages i.e "read more" button, "follow me" button, etc. in wordpress we can do something like this

    <?php _e( 'Some text to translate and display.', 'textdomain' ); ?>

    and then translate it via .mo files,

    how to achieve similar to this using PW or is there better way doing this? 

  2. Hello.

    one of my client site was build with pw 2.3, everything run smoothly until 3 days ago its  throwing error (missing templates table). I Checked mysql and the sessions table also missing, any clue what is causing this? 

  3. You might want to check out Vagrant: https://processwire.com/talk/topic/5993-vagrant/

    and http://www.vagrantup.com/

    There are predefined server images with predefined configurations out there in the web, just search for it.

    It's a bit of a learning curve, but then it's great. The actual files/folders in the Apache are symlinks to folders on your host system, so no worries if you f*ck up the VM, just reinstall with the given config, piece of cake.

    Regarding your .dev domains, that's something you always manage on your host system, not the VM, so your hosts file must redirect your desired .dev domains to the IP of the VM (or you set up something like dnsmasq, where you can write wildcard rules and don't have to add every single .dev domain to the hosts file). The Apache on the VM then should handle the requests and map to the specific folders (via vhosts).

    But that's all pre-configurable with Vagrant, check out https://puphpet.com/, they have a guided image creator for Vagrant.

    Will it run smoothly on older/slower machine? I have an old white macbook with archlinux installed (I use it when bored/tired working on my desktop).

  4. @t

    In my experience, email making right is a science in itself. When you think different browsers are horrible, yes email is more horrible. There are so many different clients out there, desktop and webmail clients. I think the important things are: always use <table> and only inline styles. Google Mail for example removes all <style>-blocks.

    I have some good experiences with Zurb's E-Mail Framework Ink (http://zurb.com/ink/).

    Some good resources you can find from MailChimp (http://templates.mailchimp.com) or Campaign Monitor (http://www.campaignmonitor.com/resources/will-it-work/). 

    I tried ink, and the layout break on gmail and entourage (mac) if remember it correctly, switching back to nested table and inline style, the pain is inevitable :lol: .  

  5. Hi Everyone.

    I need help to paginate search results generated from a search form.

    my search result url:

    http://mysite.com/search/?products=tshirt&size=xl
    

    how do I keep the value when generating pagination using MarkupPagerNav?

    like on SKyscrapers example: 

    http://processwire.com/skyscrapers/search/page2?city=albuquerque
     

    (tried to look at the source code but can't find where Ryan set the pagination options, maybe I missed it? can someone point it out to me :D )

    at the moment  my pagination link only showing the page number without the get value i.e:

    http://mysite.com/search/page2
     

    however, it showing correct results if I type the url manually  like: 

    http://mysite.com/search/page2?products=tshirt&size=xl
     

    I'm assuming I need to set the getVars in the pagination options

    can you give me example how to use the "getVars"? I've set the cache to 0 in the template setting.

    my code:

    $pagination = $matches->renderPager(array(
    				'nextItemLabel' => "»",
    				'previousItemLabel' => "«",
    				'listMarkup' => "<ul class='MarkupPagerNav pagination'>{out}</ul>",
    			));
    

    thank you!

  6. Try the default theme on Chrome, if it is ok, then issues in template.

    Check if jscripts are allowed on Chrome. Maybe noscripts plugin is installed?

    I have all variations of Chrome (chrome, canary and chromium) and it is ok in all off them.

    I'll try a fresh install later. 

    Which version of Pw and Chrome and Teflon? :)

    I'm using latest chrome on mac os x with the teflon v.2 theme and Pw dev - works great.

    Thanks Wanze,

    I just checked my teflon version, its @version  1.0.3.  it seems I need to download a newer version. :lol:

    btw I'm using Version 31.0.1650.57 on OSX Lion and PW 2.3.0,

    *edit: where I can get teflon v. 2? on the github page it still  @version 1.0.3

    */
×
×
  • Create New...