Jump to content

elabx

Members
  • Posts

    1,357
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by elabx

  1. This worked nice! $page->get("name$langId") Though if I set it like this, I have kind of save first the ID of the language I will use to output the data. It calls to my attention that when set on the default language, it seems that "name$langID" doesn't do anything. I will try the other lines of code later more carefully, 'cause I kind of quickly tested your suggestions. Thanks a lot for your answer!
  2. I built a menu using Pages to let the translation handle itself through PW multi language page title fields. Though, while trying some click menu and scroll to element with class gimmicky, I decided to try to place a data attribute inside the clicked link so that I can later use it for the javascript class selection. $navigationPages = $pages->get("/navigation/")->children(); $spanish = $user->language->id; foreach ($navigationPages as $navigationItem){ echo "<li><a data-scroll='{$navigationItem->name}'>{$navigationItem->title} </a></li>"; } So while trying this, as you can see I used the name property to echo the data attribute value, I stupidly kept trying to echo the name in the non default language (spanish), until I decided to not break my brain and just use the one given by default (english). Could I have actually output the name in the non default language? For example I tried: $navigationItem->name->getLanguageValue($spanish) But didn't work, and I'm just wondering why. And I am also wondering, is this and this the only documentation available for using the language support through the API? I was just a bit surprised I didn't quite find any reference of this on the cheatsheet, is this because $languages or $user->language have to do with the language modules? Should I start reading source code to find out about this?
  3. Hi! Thanks for the great module! After deciding that its functionality was a bit too much for what I wanted to do right now, I tried to uninstall the module but it throws this error: Can't delete template 'menus' because it is used by 1 pages. The Markup Module unisntalls just fine. I am using PW 2.6.1 Thanks for further assistance,
  4. I really like the look of this! I work with emacs and I'm a bit shocked that I can't find something alike. I might just even try switching to Sublime Text for this.
  5. RT @linuxartist: Why NASA Switched from Unity to Blend4Web http://t.co/uhZ7sl6UqB

  6. Sorry to bring this topic again, but are the scripts mentioned here still reliable?
  7. Can confirm it also happens on Firefox (Chrome and Safari looks ok) on Mac, I see it's got something to do with a negative margin value?
  8. Nice someone else benefits! I just thought to myself: I can't be dragging files from Finder to Cyberduck all my life, there must be a better way!!
  9. Thanks a lot for your answers! I'll just have to try Transmit and Forklift!
  10. Have you checked this troubleshooting guide for moving installations? https://processwire.com/docs/tutorials/installation-moving-and-troubleshooting/page5
  11. I have used Cyberduck for a lot of time, and well, it does the job. Keeps my bookmarks, easy to use and allows a custom text editor. But I am always looking for tools to make my workflow faster and painless. Do you guy have a recommendation to change to another client? Maybe due to featurewise benefits? For example, the file sync in Transmit looks promising. Forklift also looks promising. Anyone working with these? Note: I have tried sync with Cyberduck, but for some reason, I can't never get it to work correctly, or as I expected, one time I even replaced my whole folder with empty files. (I probably did something wrong myself, I know)
  12. Hola! Is there still work to be done in this translation? I would gladly like to contribute with this effort I am from México and I would like to think that my latin american spanish is acceptable I could help with a Latin American version if it's still missing, I read on the first page that there were plans to release one but I don't read more posts from the people involved.
  13. RT @1stwebdesigner: Typography in the world of a Dyslexic.http://t.co/0eazK03Knu

  14. RT @tonroosendaal: Siggraph: Pixar's Renderman event in the massive Nokia theater proudly mentioned Blender as one of the four 3d tools the…

  15. The .htaccess itself has a lot of commentaries that goes like: "If error 500, try commenting this line", it helped me a lot to figure out troubles like yours.
  16. Just starting with Processwire and loving it

  17. Where had you been all my life @processwire! Goodbye !

  18. RT @EmacsHaiku: A beginner’s guide, / and when I say “beginner”, / I mean *beginner*. — http://t.co/Z4VpWvKVLt

×
×
  • Create New...