-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
You also need to shave yours, Steve
-
Invalid value sent to Page::setTemplate after template name change
diogo replied to vknt's topic in General Support
Searching for that error message on Google returned two forum threads besides yours. Hope they will help somehow http://processwire.c...g-for-dummy-me/ http://processwire.c...ates-and-pages/ -
SlimeText sounds great Sorry, just had to do it
-
i usually put this on the top of my home template: if($user->name == "guest"){ //code for temporary site }else{ //normal home template } like this, only logged users can see the developing homepage
-
Did the same question some time ago here http://processwire.com/talk/topic/523-good-hosting-for-processwire/page__hl__hosting I went by Apeisa's suggestion, and I'm very happy with my Linode server
-
Refreshing, right?
-
looks great!
-
I don't see why not... if your site is responsive, why not having everything responsive? I just think they didn't go far enough with it. If you see the second example, at some point the arrows are bigger than the picture. To make it truly responsive, the arrows should change place to accommodate to the picture. You don't have to use lightbox only with thumbnails. Again, if it's well done, it can save you some headaches when designing for mobile. I think we are falling on a "oh no, now everything is responsive!" hole here. Responsive is a good solution where applicable, so why not use it? I just don't think it's something to brag about anymore. And that's a good thing!
-
You can try this module http://modules.processwire.com/modules/language-localized-url/ It's still in beta, but it seems to work very well.
-
That's for tags. Category should be only one. No?
-
This is a great reading! http://processingjs....rial/mario.html edit: Learn OOP the fun way
-
Google Docs forms work pretty well for this kind of things http://www.google.co...ogle-d-s/forms/
-
+1 for the subdomain
-
http://www.cmscritic.com/critics-choice-cms-awards/ Will PW participate?
-
Sounds like a great idea!
-
You can use Soma's http://modules.processwire.com/modules/markup-simple-navigation/ and deactivate the link to the placeholder with js. The module has lots of options that give you a nice control over markup
-
creating space between text paragraph in textarea field
diogo replied to danielholanda's topic in Getting Started
You will know those things if you follow this tutorial http://processwire.com/talk/topic/693-small-project-walkthrough/ -
javascript file not working with image upload
diogo replied to danielholanda's topic in Getting Started
You can call it object oriented PHP If you really want to know how it works have a look at this http://www.killerphp...t-oriented-php/, the special thing about ProcessWire, is the clever way how Ryan wrote it, inspired by the simplicity and power of jQuery. That's why you can do great things as $page->images->getRandom(); or {$image->height} You can get it here http://processwire.com/api/ I would suggest that you do like I did. Print it, and read everything while having a coffee or a beer, looking at the see- 12 replies
-
- 1
-
- javascript
- onload
-
(and 3 more)
Tagged with:
-
need help for CMS only for images/video and audio upload
diogo replied to danielholanda's topic in Getting Started
I think you are going too fast here. Maybe you should have a better look around the forums and read the documentation on the website to have a feel of how ProcessWire works. There is a great walkthrough here http://processwire.c...ct-walkthrough/. You will see that it feels great when you understand the full potential of PW, and start wanting to find out these things for yourself. Having said that. Here is a tip... For having several galleries on a webpage, best thing is to have each gallery on it's own page on the tree (you don't have to show them as pages on the website itself though). Then, you can get them all from your template. foreach ($page->children as $child){ foreach($child->images as $image){ echo "<img src='{$image->url}' rel='$child->gallery_name'/>"; } } -
I had a look at soundcloud sharing options, and they don't look very smart... Still, I think your best option would be using the wordpress option that looks like this: [soundcloud url=http://api.soundclou...racks/59046167" iframe="true" /] You have two options. One that represents more work to the editor but less processing work, one simpler to the editor but more complex in PHP. For both options, create a text field "song", and add it to the template. For the first option, teach the editor to get the wordpress sharing option in soundcloud, extract the number of the song [soundcloud url=http://api.soundcloud.com/tracks/59046167" iframe="true" /] and put it on the "song" field. The code on the template would be this: $song = $page->song; echo "<iframe width='100% height='166' scrolling='no' frameborder='no' src='http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F{$song}}&show_artwork=true'></iframe>"; Second option, is a little bit easier to the editor because he doesn't have to look for the number on the wordpress code. Only copying it. [soundcloud url= iframe="true" /] Your code would have to be more complex, and a bit slower in terms of processing: $src = $page->song; preg_match( '/([0-9]+)/', $src, $matches); //extracting the numbers part of the url with a regular expression $song = $matches[1]; // and putting it on a variable echo "<iframe width='100%' height='166' scrolling='no' frameborder='no' src='http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F{$song}&show_artwork=true'></iframe>"; edit: corrected some typos by WinnieB's suggestion
- 4 replies
-
- 3
-
- soundcloud
- embed
-
(and 1 more)
Tagged with:
-
Sharing images between templates / Display images from other pages
diogo replied to sn4ke's topic in API & Templates
I think you really don't need to create a module here, although I don't see any problem if you do But take Soma's solution: Create a page named Images, and a template for it's children with only one image and a checkbox. Use Soma's module to show the pictures as thumbs on the tree. Create a page "favorite images" with a page fieldType with only the favorited images. You can do this with a selector on the field options. -home --images ---image1 ---image2 ---image3 --favorite images The person just have to add a new image and select the checkbox if it is a favorite, and then go to "favorite images" and order the images by dragging them. -
<a href="http://blog.mobilitika.com">Blog</a>
-
need help for CMS only for images/video and audio upload
diogo replied to danielholanda's topic in Getting Started
What Pete meant is that, there is a button. Go to "More Reply Options" to find it -
need help for CMS only for images/video and audio upload
diogo replied to danielholanda's topic in Getting Started
Daniel, ProcessWire will put the info exactly where you want it to be, it doesn't make any distinction between things like "title" or "alt". You have to read carefully the instructions of prettyPhoto to know how it works (I din't have any contact with it until now), and build your html from there. That's why I told you that you should have the gallery displaying exactly has you want with html, and put the dynamic things only later. That would be the best way. Just create a text field (gallery_name f.e.) and put it next to the images field on the template. Then, complete your code like this: rel='prettyPhoto[{$page->gallery_name}]' You only need unique names for each gallery if you will put more than one in one page. If this will happen, you risk that people give the same name to both gallery, and it will mess everything. You have two options for this: Tell people that they can't do it, either verbally or on the field description. Create unique ids for each gallery. Here's how you can create the unique ID's: Simple option is to a random string rel='prettyPhoto[{rand_string(5)}]' Another option, is to use some information that is, for sure, unique to this gallery (this will depend on how you will put more than one in each page) galery_id = "gallery-" . $page->name; ... rel='prettyPhoto[{$gallery_id}]'