Jump to content

elabx

Members
  • Posts

    1,513
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by elabx

  1. It took my a while to realize that this could be VERY educational, thank you BernhardB!
  2. This! Please don't tell me I have to offer Woocommerce for my next eCommerce site
  3. When I read posts like this, I always think about a list of quotes titled "Developers react to Processwire" , it always seems to be kind of a shock to find out about PW.
  4. I tested adding this function to the module: <?php function convert_twitter_links($tweet) { //converts URLs to active links $tweet = preg_replace('/((http)+(s)?:\/\/[^<>\s]+)/i', '<a href="$0" target="_blank">$0</a>', $tweet ); //converts mentions (e.g. @stathisg) to active links, pointing to the user's twitter profile $tweet = preg_replace('/[@]+([A-Za-z0-9-_]+)/', '<a href="http://twitter.com/$1" target="_blank">$1</a>', $tweet ); //converts hashtags (e.g. #test) to active links, pointing to a twitter's search URL $tweet = preg_replace('/[#]+([A-Za-z0-9-_]+)/', '<a href="http://twitter.com/search?q=%23$1" target="_blank">$0</a>', $tweet ); return $tweet; } and then called it like this: $text = $this->convert_twitter_links($text); Though, I had to put this line just below this line (this is within renderItem() definition ): $text = wire('sanitizer')->entities($text); I will guess I must be doing something wrong here not sanitizing this string before rendering it, but I can't really tell, I don't know much about this "entities" methods, so I will recommend taking this solution as unsafe or something like that until someone else gives a hand
  5. I hadn't thought about this two points of view around admin. I have seen some apps made in processwire around the forum, like for example this preview of an intranet, is this the same kind of "front end edit" you are talking about LostKobrakai? Just in case it's that, I would also be pretty excited to learn how to do that
  6. I have used fullpage.js in a few sites! Clients love that thing
  7. My bad! I didn't read the issue properly, and I would have never reached to your answer I think
  8. Maybe you could use something with $page->parents to get which are the parent pages, and make a selector accordingly? $parents = $page->parents; $pois = $pages->find("parent=" .getPathString($parents). ",template=poi, interests=$int"); I included that getPathString() because $page->parents returns a PageArray that I don't know how if has a method to make it into a string like "/this/is/a/path/".
  9. Now that I know what this is about, I'd like to mention use this: https://imageoptim.com/ And googling for what SuperPNG does, I found this which seems to be from the same author as ImageOptim, though I don't really know if it does the same: http://pngmini.com/
  10. I had been looking for CMS alternatives for a few months, I had been doing work primarily on Wordpress but only with already made templates, later, for custom design needs, I discovered Perch which I was quite excited to see how well it worked and how easy it was to set up a site with it, but the license fee made it less attractive as it did impact my costs of production (I normally do small websites). But I did love this thing, simple websites, simple admin, just the right amount of things to edit, everything managed through Pages (though not in tree form). Though, I did had a hard time getting used to their weird way of configuring field types (which looked like you were making a template, so I got confused between templating and configuration now an then) I then went to Kirby, flat-file CMS, also a very neat CMS, though I didn't like much the admin panel, I did like that it was pure files, so my local version of sites were pushed really easily, galleries options weren't as neat as in Perch and had no comments system for blogs. Then again, the license fee kicked in. Start looking again... This is when I came up with Bolt, Pico, Grav CouchCMS, etc. But nope, nothing at least comparable to Perch in simplicity, (or some don't have admin panel) If I remember I think Bolt did call to my attention but when I tried it it had this "bloggy" feel to it, similar to Wordpress, that ended up not convincing me. Then I was making a website for a friend's to be released comic book and I wanted to mimic what is done on manga sites, volume, chapter and page navigation dropdowns and stuff, then again same old story, look for a Wordpress plugin, found out that the best option wasn't exactly what I had expected and then again, doing Wordpress themes always looked like such a pain, so I that didn't even bother. Started looking again...even found a dedicated CMS for comics, that didn't really fit my needs. In this now long search for a perfect CMS, I stumbled upon CMS Critic while looking for reviews website, and saw they had an award thing going on, so I decided to check top places. "Well well, who do we have here Mr.Processwho-No-1-OpenSource-CMS?". Started reading the docs, saw the examples, looked awesome, so I decided to put it inside a website. Clean urls, everything custom fields, repeaters, multilanguage out of the box, extendable, a kick ass API....YOU HAVE TO BE KIDDING ME! The rest is history my friends, Processwire has brought the happiness to my web development career as nothing had ever done. I believe in this project and it's community, it's gonna be awesome, nuff said!
  11. Could you tell a bit on how this extra parameters help you? That clean transparent checkbox calls to my attention.
  12. RT @francoisz: devdocs.io: Searchable, well organized doc for #JS, React.js, Angular.js, Symfony, etc. http://t.co/1aA39vFCw0 Works offline…

  13. elabx

    Pixar in a Box

    I thought that too! I started with a few lessons, and damn now I am doing parabolas while resting from work. It calls to my attention that there's a lot of "standing desks". Don't know if that's the correct term.
  14. elabx

    Pixar in a Box

    I just saw this and think it's amazing. https://www.khanacademy.org/partner-content/pixar
  15. I hadn't heard about the concept of "headless" CMS, though I believe it is kind of the way PW is built right? Like, everything modules around the core? Also the examples they give about distributed technologies as management systems reminded me of a topic around General Support of someone making an API for a mobile app. My favorite part of Processwire is this feeling that I know "a way" of accessing data and just present it however I want to. Not having to look into the documentation every time to see which specific function I need to call and the default admin that makes so easy to show just enough for the right user. I love this CMS too
  16. This is so awesome!! Can't wait to put my hands on it!
  17. Just released my second @processwire site! Kudos to a great band with a bright future! http://t.co/mBctGcxxAs @sensoriaoficial

  18. My second site done with PW! Fairly simple site though http://sensoriaoficial.com It uses Multi Language modules and a small module found at the forums (and later here) to set the home page to a specific language. And what I love most about PW, a straightforward one page admin for my client to edit their texts, add images to slider. change music file. Can't get any easier!
  19. 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!
  20. 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?
  21. 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,
  22. 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.
  23. RT @linuxartist: Why NASA Switched from Unity to Blend4Web http://t.co/uhZ7sl6UqB

  24. Sorry to bring this topic again, but are the scripts mentioned here still reliable?
  25. 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?
×
×
  • Create New...