-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
I use this and has been working well. edit: not a huge fan of dropbox anyway, though I don't know why...
-
how to build a mobile website with another template?
diogo replied to leoric's topic in General Support
If all you want is to comply to baidu suggestion, just make a responsive site in abc.ext and point m.abc.ext to it like you probably did with www.abc.ext -
4. I am a end user
-
It is a nice concept but you can achieve more or less the same with dropbox with symlinks. Just put a symlink of any folder inside the dropbox folder, and dropbox will happily let itself fooled.
-
Is there a simple 3 column template for processwire ?
diogo replied to pwired's topic in Getting Started
For me this is the fastest way: 3 divs inside another: float them left, set box-sizing: border-box, and then give them approximately 1/3 of 100% width. give them an approximate right-margin that fills the blanks and 0 right-margin to the last div using :last-child. Adjust the right margin until the last div touches the side. http://codepen.io/anon/pen/xBGej -
Is there a simple 3 column template for processwire ?
diogo replied to pwired's topic in Getting Started
------------------------------------------------------------------------- | overflow visible | | -------------------------------------------- --------------------- | | | float left | | | | | | ------------------ ------------------ | | | | | | | | | | | | | | | | | float left | | float right | | | float right | | | | | | | | | | | | | | ------------------ ------------------ | | | | | -------------------------------------------- --------------------- | ------------------------------------------------------------------------- -
Alex, just noticed that you didn't have a proper welcome on your first post. So, welcome
-
You don't have to put it in a function, you can as well just put all this inside a if statement <?php if (condition) : ?> <form id='search-form' action='<?php echo $config->urls->root?>search/' method='get' class='hide-for-small'> <div class="row collapse"> <div class="small-9 columns"> <input type="text" name="q" value="<?php echo $sanitizer->entities($input->whitelist('q')); ?>" placeholder="" /> </div> <div class="small-3 columns"> <button type='submit' class="button prefix">Search</button> </div> </div> </form> <?php endif; ?> or, if this complicates the code on that template too much, you can have have it exactly as it is in a file, and include it from inside the condition. if (condition) { include('form.inc'); }
-
But to resume all that reading "a page is not a page", it's an object within a tree structure (just as in json) with a URL (that can be available on the website or not)
-
http://processwire.com/talk/topic/2875-favorite-programming-music/?p=32631 I'm drinking a coffee made with the Aeropress for the first time right now, I must say it's really tasty
-
For those interested, this one http://zedapp.org/ that works as a chrome app and is a quite an interesting project.
-
A different way of using templates / delegate approach
diogo replied to Soma's topic in API & Templates
Mike, thanks for clarifying. -
Just teasing you guys http://atom.io/
-
Hi vigilante, welcome to the forum! There is a blank profile http://modules.processwire.com/modules/processwire-blank-install/ A site like this will be more complex to build with any tool. If pages are very different, one way is to have almost a template per page. if there are things in common, you can use the same template and use includes or functions on a common file. If the differences are minimal, you can do simple checks inside your templates for the page ID or any other characteristic this page may have that differentiates them from the others (a field. or the person that is looking at it, or the language, or whatever) You write it on template files, but has I told above, you have to be a bit clever about doing it. If the site really asks for it, either because of each page needing different fields, or because the code just need to be too different for each page, you can also go the 1 page / 1 template route of course I've seen that Joss and Kongondo also answered already, but still didn't see their answers. I bet they are loooooooooooooooong!!!! edit: I was right about Joss. Kongondo is not in a good shape today
-
Yep, but I wasted already too much time with this when it came out, so I won't even click the link
-
You're too fast. I had just edited my post
-
even shorter if(in_array($page->id, [1010, 1011, 1022])) echo $pages->get("1114")->body"; Edit: only in PHP 5.4
-
I didn't know this one Shortest way to echo a variable only if populated (using pw fields of course ): echo $page->field?:''; and: echo $page->field ?: "field is empty"; // echoes field content echo $page->empty_field ?: "field is empty"; // echoes "field is empty" or even: echo $page->field1 ?: $page->field2 ?: "they are all empty";
- 23 replies
-
- 18
-
Hi guys, this one comes a bit late since it was published already some time ago. It's the website for a charity in Sollihul. http://www.madhatterscharity.com/ We wanted to do something fun and appealing to both children and adults, and came up with the idea of simulating handwritten type and pen drawings (created by us) on a rough cardboard, and using different colours for each page. The site is responsive, of course More about this work on our website http://www.milktop.co.uk/projects/mad-hatters-tea-party-charity/ And a short post about the drawings http://www.milktop.co.uk/news/mad-hatters-tea-party-the-making-of/
-
Just stumbled upon this: http://typequest.org/ Type in web is maturing! --- ps: I will watch Porto playing against the club from my second city now
-
Single-site license question: what about localhost?
diogo replied to nickie's topic in Modules/Plugins
Welcome to the forums nickie. What is the module you are referring to? The licenses are different from module to module. The ideal would be to ask this question on the module's own support page. There aren't many commercial modules though, and three of them are from Ryan, and if you purchased them, you must have received the links to their support forums. The other one that I know of is minimize.pw, if that's the one, maybe you can ask in their announcement post http://processwire.com/talk/topic/5404-processimageminimize-image-compression-service-commercial/ -
For files, check the $_FILES array instead.
- 1 reply
-
- 2