Jump to content

felix

Members
  • Posts

    214
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by felix

  1. +1 for drafts. That's something i consider essential (and the only thing that im REALLY missing in pw) for every cms (and I can't think of one that hasn't got this feature apart from pw)! Almost EVERY of our customers asked if they can preview their edits or schedule changes to an exisiting site to be published at some later point.
  2. So you've developed this shiny new website but your editors and marketing guys keep complaining they need more "native embedded content" with shiny share and retweet buttons because otherwise their text will look like ...text? Look no further: This processwire module has you covered! TextformatterOEmbed for processwire What it does At this point this module basically wraps the fabolous Essence PHP library by Félix Girault and adds some processwire magic to parse your boring Textareas and make your content look more bling blingthan ever before. Disclaimer: This Module is heavily inspired by TextFormatterVideoEmbed by the awesome guy who created processwire: RyanCramer. Requirements php 5.4+ curl and/or allow_fopen on Features Supports the following 32 providers out of the box (That's a lot of Hanna-Codes you can get rid of now, eh?): Add your own providers in the blink of an eye (if you're not good at regex - like me - it will propably take you a cup of coffee and a google search) Easy styling: Wraps embedded items with customizable BEM-Style classes including modifiers for every provider and embedtype. Choose to either add CSS directly in the modules configuration or to your existing stylesheets Choose to add pre defined Fluid Video CSS for your responsive design (or - again - feel free to add your own) Usage Click check for new modules in ProcessWire Admin Modules screen. Click install for the module labeled: "oEmbed for processwire". Install the module Open the modules Settings page Add css classes either within the "Custom CSS" field or in a seperate CSS file. Every provider is wrapped with the following markup: <div class="pw-oembed pw-oembed--providername pw-oembed--embedtype"> <div class="pw-oembed__inner pw-oembed__inner--providername pw-oembed--embedtype"></div> </div> If you're not happy with the "block" class .pw-oembed you can rename it to something you like better using the modules config. Every embedded media item and it's respective inner wrapper has two modifier classes: One for the provider (i.e. youtube, twitter...) and one for the media type (one of photo, video, link or rich according to the OEmbed specification). This should be enough classes to add some fancy icons, adjust widths per provider or whatever else you like to do. If you're missing a provider don't hesitate to open a pull request (see roadmap first) and I'll do my best to add it as soon as possible. In the meantime you can extend the available providers found in lib/essence/providers.php in the modules settings using the following JSON-Format (remember that you'll have to properly escape the regex): [{ "23hq" : { "class" : "OEmbed", "filter" : "#23hq\\.com/.+/photo/.+#i", "endpoint" :"http://www.23hq.com/23/oembed?format=json&url=%s" } }] Roadmap Add moaaar providers:Facebook (currently not providing a "native" oEmbed API) Google Plus (currently not providing a "native" oEmbed API) support for more fancy integration of Instagram posts (currently there are "just" images without fancy sharing stuff that will be embedded) Render only one javascript (i.e. ) when there are multiple items of the same provider Propably make this module more generic and add services as submodules at some point World domination
  3. felix

    World Cup 2014

    4:1 for Germany!
  4. You may want to have a look at TemplateDataProviders which is pretty similar to your module
  5. how about some actual code?
  6. Hi peterfoeng, twig has another concept of extending templates with predefined code. It's called "extend" and is documented here.
  7. felix

    neuwaerts is hiring

    We're currently looking for a bunch of different positions including a lot of web-dev ones. If you're interested drop me a line. If you're interested but don't speak german please let me know - we're always searching for inspiring and skilled people - no matter where they are from.
  8. *bump* "Sadly" the client decided to use Typo3 for their website. Nevermind: I wanted to say thanks for all your input and help!
  9. Hey owzim, thanks for your input. 1.) I'm not sure about if it's a good idea to not include twig with the plugin. As pw is not using any dependency/package manager like composer there would always be the need of updating the twig pw-module when twig itself is updated. 2.) The Plugin was actually developed as an addition to "TemplateDataproviders" which adresses exactly the issues you've mentioned. Look at the source code from my last post: All the "heavy lifting " is done within the controllers.
  10. felix

    Veganwerkstatt

    @Seuche: I recommend getting an uberspace "server" ( https://uberspace.de/ ). They're absolutely awesome guys, their servers are great, their philosophy rocks (pay what you want, use the cli...) and their support is beyond any expectations.
  11. As promised here is a quick overview of our current setup and what we are looking for: We're a communications agency with about 40 employees (and growing) doing all sorts of design, strategy and marketing related stuff. Some do have a good IT background but most aren't familiar with the command line (and most likely never will be). Our portfolio includes print materials as well as strategic papers, movies and digital products like apps and websites. So we have a quite large amount of files with different requirements regarding workflow, versioning and size. At the moment all the files are stored on a network storage and mounted as a drive on every computer. We also have a mixed setup of Operating Systems: Mac and Windows as workstations plus Linux as a server OS. Currently we do version our (programming) code using an internal gitlab server as well as using github for sharing code with freelancers - so no need for a code versioning tool as we are happy with the current one. All of our communication and calendar stuff is done with exchange (saas/office365). As for project planning software we are currently searching for a new tool ( https://www.openproject.org/ is my current favorite one). But that isn't related to file management at all: I'm quite a big fan of "one software per requirement" as most "one software to rule them all" tools are bloated and buggy (at least from my experience). To sum up all this background information we need a tool that: can handle 40-60 users can handle very large (binary) files can handle a enormous amount of files (Currently: 966GB of Data in 149350 Files) is easy to understand and use - even for people who don't have an IT background (Dropbox Style...) integrates with our workflows makes versioning and sharing files easy (this might include sharing them with customers but isn't the main point) is self hosted in our internal lan for speed reasons
  12. Haha. We're actually using sharefile at the moment I think i'll have to post some more detailled Information about my requirements (and why seafile seems to be a perfect fit) on this tomorrow. In the meantime: any experiences with seafile? Anyone?
  13. Thanks for you input. I'll review those for sure. I did try sparkleshare (among various others including properitary ones) some months ago. To make it clear: i'm not searching for Code-sharing stuff or calender/mail Services: we are using Office365 and gitlab for that. I'm searching for an agency Tool to share, Version and sync files which can be used by people who tend to not be all nerds
  14. I'm curios if anyone of you is actively using seafile ( http://seafile.com/en/home/ ) with a group of people? It sounds like "the" great secure and self hosted dropbox alternative for our team that we were always searching for (and yes i'm aware of owncloud but its just too slow and buggy).
  15. felix

    Polymer

    For All the german speaking guys my coworker Emanuel wrote a blog post explaining the concept of polymer/webcomponents in our dev-blog a while ago. Check it out if you'Re interested: http://neuwaerts.de/emerge/articles/2013/web-components-die-zukunft-des-internets-mit-polymer.js/
  16. felix

    Vagrant

    Vagrant is a great piece of software and for sure makes many things easier (as mentioned in the tao). It's just not fitting into OUR process and workflows. If you're (for example) working on one or two bigger projects at the same time with a large team of people vagrant would be a perfect fit for that.
  17. felix

    Vagrant

    Sure! If you switch a lot between different projects you'll have to either start several instances or you'll "up" and "halt" them all the time: The first way is very "costly" in terms of performance, the second one in terms of time The generated isos tend to be quite big (around 2.5 GB): If you're working on 20+ Projects you'll either have to constantly delete (and therefore re-init) them or waste a lot of disk-space We've experienced some rather standard setups to be very slow even if we gave them a crazy amount of Memory (4GB+). This was especially the case with larger ModX sites (which has a slow backend anyway) On Windows (which we use for development) sometimes vagrant just keeped crashing on startup for unknown reasons Crazy caching behaviour: We mounted our local work folders into the VM but sometimes they just won't get updated for minutes Plus some very "Workflow related" issues that are not that important
  18. Thanks for your feedback. @wayne: Which Browser / OS / Device were you using when experiencing those problems?
  19. For our client Continental - a german based (but international selling) tire manufacturer we were asked to develop a campaign featuring their sponsorhip for the "FIFA World Cup 2014". We came up with the idea to connect a positive and fun "soccer like offline experience" with Continental as a brand and social media elements plus user generated content as a multiplicator. To encourage people sharing their experiences with others there also are pretty nice prices to be won (tickets to the World Cup in Rio including flight and accommodation). In a glance we've developed everything related to this campaign: Idea, concept, logo, text, artwork, videos, content- and seeding strategy, a lot of print-materials, apps [...]. There even is a "real" stadium which can be either obtained at one of over 6000 partner stores in Germany or they may be downloaded and handcrafted by the players themselves. The campaign has ads in some of the biggest german print magazines (i.e. Stern Magazine). The Campaigns Microsite www.paper-shot.de features: it's own blog with some external authors a retailer locator for finding participating partners (yup, that's >6k partner-pages in pw ) each having a custom set of assets which are shown to people coming from their banners or entering their partner-code custom user registration video/image uploads with a preceding approval process (the videos are first processed by a seperate media-server to serve the right formats to all devices, then reviewed and published by a team of editors afterwards) user-voting twitter & facebook integration for voting and login (not live atm due to some server problems with oauth & our reverse proxy) an unified api that makes it possible to use all of the microsites features in our apps for iOS and Android (for those interested: they are built with PhoneGap/Cordova upon the great ionicframework using HTML5 & angularjs). This was by far the biggest PW-Project we've done yet and we (again) were always happy we've chosen processwire because we definitely needed something flexible for realizing all of this features in quite a small timeframe (about 2.5 months "production" time for the microsite + the apps). Modules used: FieldtypeCropImage - for obvious reasons FieldtypeMapMarker - for generating and fetching the lat/lng for all retailers and storing the adresses ImportPagesCSV - for importing the retailers as pages InputfieldCKEditor - because it's better (and better looking) than TinyMCE ModulesManager - PageEditPerRole - for managing external authors access ProcessBatcher - bulk actions for retailers (saved us HOURS of work!) SchedulePages - show/hide blogposts by date TemplateDataProviders - MVC structure for our templates TemplateNotes - help pages for external editors TemplateTwigReplace - MVC structure & "better" templating TextformatterHannaCode - custom tags for including external services like storify in blogposts TextformatterVideoEmbed - for blog articles VersionControlForTextFields - for "security" and backup reasons + some we've written for the project (they aren't very interesting ones to release to the public)
  20. felix

    Vagrant

    We've been using vagrant quite a lot in the past. It's a good way of ensuring everyone working in a Team has the same Serversetup as close to the live System as it can get. It has some performance and complexity drawbacks though. Currently we've mostly switched back to "good ol localhost" for most projects
  21. Hey marcus. It seems like there really is an issue which (most propably) is caused by a changed behaviour when doing object overloading since the 2.4 update (at least that's what marco said - I'm not that much of a "PHP Pro" ). We didn't noticed this yet due to the reasons already stated. There will presumably be a fix for this next week.
  22. I tested it with a fresh setup and got the same result you did. We're always using this module combined with TemplateTwigReplace so I wasn't aware that this happens when using it with "plain php" . If you'd install TemplateTwigReplace and echo the variable using {{ bar }} everything would work as expected. But I'm sure not everyone likes using twig as much as we do. Also this shouldn't be a dependency. I'll ask Marco about this tomorrow and keep you updated.
  23. Hi Marcus, PHP 5.5 shouldn't be a problem. I'll hack together a working site-profile that you can download and check against your code today. I'm pretty sure both of us are just missing/overseeing something important. We're using this module in pretty large projects and didn't find any bugs yet.
  24. Wow. "As usual" this post was made at the right time. We're currently building two projects that need some advanced search mechanisms. We thought about using SolR or Elasticsearch. I would propably have gone with SolR as we've used it in other projects before. This module will make our decision a lot easier
  25. Hi marcus, greetings to berlin! Well: This is sort of strange. Your examples seem to be absolutely correct. To debug let me ask you some questions regarding your setup: Which PHP Version are you using? Do you have any modules installed that might conflict with TemplateDataProviders (something that installs hooks before rendering templates)? Have you tried setting some different variables (i.e. clearing the "foo" example and setting something else)? Felix
×
×
  • Create New...