-
Posts
2,318 -
Joined
-
Last visited
-
Days Won
2
Everything posted by pwired
-
After some playing around, Kube seems to be a good one to start with for my coding level, thanks.
-
So then, would be interesting to know, who is using what css framework and why - - - - ? and who is coding his own responsive css layout and how - - - - ? Example would be nice.
-
Did some digging about css frameworks in google. Found some links that might be usefull to read. 2 good articles about css frameworks http://coding.smashingmagazine.com/2007/09/21/css-frameworks-css-reset-design-from-scratch/ http://www.gridsystemgenerator.com/ do it yourself css layout http://designshack.net/articles/css/rolling-your-own-grid-layouts-on-the-fly-without-a-framework/ interesting css frameworks http://www.bluetrip.org/ http://www.devarticles.com/c/a/Web-Style-Sheets/Introducing-the-BlueTrip-CSS-Framework/ http://daneden.me/toast/ https://github.com/coyr/nivelstyle https://code.google.com/p/logicss/ http://toddmotto.com/introducing-superbox-the-reimagined-lightbox-gallery/
-
Kongondo, you should get some kind of forum member award. What you are posting lately is really amazing and helpful for pw users with little coding expierence. Thanks !
- 4 replies
-
- 4
-
-
- endif
- control structures
-
(and 1 more)
Tagged with:
-
Don't get me wrong here but If I read all that I get a bit afraid again. I came from modx evo to processwire because the modx team stopped development for modx evo and evo was no longer compatible with php 5.3.x and up. There was lot's of turmoil going on in the mod evo world. No need to repeat all that because this is all well known and heavily discussed all over the forums. {Disclaimer: Any modx user or amb reading this, yes I am aware that modx evo is kept alive by forks and usergroups especially by superuser yama} Lot's of modx evo users migrated to processwire. I am not a professional (php) template coder like most of you people here who can help themselves if some things stop to work with pw upgrades such as this one or with a php upgrade. If I see this pw 2.3.1 upgrade issue unnecessary wrong as I post here and / or there will be no future problems like happened with modx evo when php upgraded on many hosters to 5.3.x please reply and take my worries away.
-
at thingstodo. Actually i'm sure this has been told somewhere else in the forum already. Main benefit = there are almost no abstraction layers in pw and so at almost code level you are free to combine html + php + api + templates in any way you want, lots of power and speed here. Finally a hardcore cms that gives the kick. Drawback = html/css/photoshop designers can no longer escape coding like they could with modx evo. Over Time modx evo has attracted a large group of designers with little to none coding skills because modx evo was perfect for them (and me) This is not really a drawback but you have to invest time in learning to think in code building parts of your website, output, functionality and practise php and api.
-
Another sublime post that should be pinned both in a newbie channel and getting started. Thanks a lot kongondo for this great post. Coming from modx evo my self, I recognize a lot of what you are comparing between modx and pw. I still miss the great and fast dashboard of modx evo where everything is so well organized and accessable. But the raw untamed power of pw is so addictive.
-
Like I pointed out, some posts in this forum are a must read for newbies with same questions repeating over and over again and should be pinned in it's own newbie channel, like these 2 posts. But there are more good ones out there and if I (or someone else) can find the time let's collect them all. So many websites - so little time http://processwire.com/talk/topic/1041-raydale-multimedia-a-case-study/ http://processwire.com/talk/topic/1015-switching-from-drupal-to-processwire/page__view__findpost__p__8988 http://processwire.com/talk/topic/3691-tutorial-a-quick-guide-to-processwire-for-those-transitioning-from-modx/
-
Processwire is a perfect load balanced template/code system. If that fact is recognized and experienced by more people it can really boom drupal and wordpress away from cms land. But then again, strangly enough, it doesn't work that way. You can be the best and yet other wanna be designs get more credit and more fame. I am in the repair/service field for computers for more than 15 years and I know of tools like deepfreeze and shadow user that can recover a pc fool proof from any software problem/attack/virus/mis-installs/wrong driver installs/dumb users/user mistakes/ etc. etc, simply by rebooting the pc. And yet is everybody knowing about it and buying it ? No ! Why ? Beats me ! Same for tools that can make a pc with 8 Gb of ram or more start to fly and run your programs in high speed mode by using a ramdisk or supercache. Doesn't everybody want his pc to run your programs super fast ? Make IE / FF / Word / Photoshop / etc. etc. run fast ? Yes ! Do people know and use ramdisks and supercache ? No ! Why ? Beats me ! I guess people are sometimes hard to understand.
-
Hats off RayDale - very impressive. No one has ever before written about the guts of processwire so sharp and so clear. On top of that you have put it in context with 2 main cms players drupal and wordpress and that increases the contrast of the whole picture even more !! This post should be put somewhere in the forum fixed and locked (Ryan) Let's not forget about newbies entering this forum repeating the same questions over and over. For them this post is an absolute must read and a real question and time saver.
-
Unexpected behaviour order of images in slideshow
pwired replied to pwired's topic in General Support
Simple and Clever trick, thanks! -
Unexpected behaviour order of images in slideshow
pwired replied to pwired's topic in General Support
I found it ! Inside a java script file preview.js that is part of the slideshow I found a lot of configuration settings. One of the settings I found there is shuffle:true, changed it into shuffle:false, and now everything is ok. Man, when it comes to webbuilding/design there's just soooo many things you have to keep your eye on. Now that you mention it Soma, it would be very handy to not only have a single but a second description bar standard under each image in the images field. Many slideshows show thumbs and pictures where caption text is needed over both the thumbs and the pictures. I will have a look at the ImagesManager. -
Unexpected behaviour order of images in slideshow
pwired replied to pwired's topic in General Support
Bumb - - - anyone ? -
Hi I have unexpected behaviour of images shown in the right order in a slideshow. Everything was working well in the beginning, that is, the first image entered in the page image field came up as the first image in the slideshow, the second as the second, the third as the third, etc. etc. But when I started to enter text in each description bar under each image in the page image field, as caption text over the thumbs in the slideshow, now the first image no longer comes up as the first image in the slideshow. All images are suddenly shuffled. What can cause this ? I have to say that I changed the number of lines for the description bar a couple of times. Can I solve the right order of the images by cleaning some kind of cache ? I am using the description text entered under each image in the image field as caption text over each thumb in the slideshow. How can I get a second description text as caption text over the big images in the slideshow ? This is the code used for the slideshow accessing the images in the database. foreach($page->images as $image) { echo "<li>\n"; echo "<div class='thumb'>\n"; $thumb = $image->size(72, 54); echo "<img src='$thumb->url' alt='$image->description'>\n"; echo "<p><span class='cap-title'>$image->description</span></p>\n"; echo "</div>\n"; echo "<a href='$image->url'></a>\n"; echo "<a href='' target='_blank'></a>\n"; echo "</li>\n"; }
-
A wife, family, kids, also a dad of successfull processwire. You are doing fine, just fine Ryan. Congratulations.
-
Check if ($page->name - - - - ? ) is within a range of page names
pwired replied to pwired's topic in General Support
Diogo - Teppo, both your solutions are working, thanks ! Soma wrote: Or if it doesn't matter what number if($page->is("name^=slideshow")){ // page name starts with slideshow Yes Soma, you're right it doesn't matter what number, as long as it is in the range of the given names Your solution is also working Thanks everybody. With your help I can now output a slideshow conditionally via a template file (controller ?) and don't have to use 8 static html files anymore. -
Check if ($page->name - - - - ? ) is within a range of page names
pwired replied to pwired's topic in General Support
Thanks Diogo, I am going to try that immediately. -
Hi, I have succes with this code in a template file. It checks if the name of the current page = intro1 and if yes then do some stuff. if($page->name == "intro1") { echo "<div class='wrapper'>\n"; echo "<div id='myGallery' class='spacegallery'>\n"; foreach($page->images as $image) { echo "<img src='$image->url' alt='$image->description'>\n"; } echo "</div>\n"; echo "</div>\n"; } My question is how can I check for a range of pages like: if $page is within that range, then do some stuff. I have 8 pages with following names: slideshow18 - slideshow28 - slideshow38 - - - - slideshow88. So I want to check with if($page->name == "slideshow18 or slideshow28 or slideshow38 - - - slideshow88") { do stuff The above code is of course wrong, I just wrote it with "or" between the names just to make my question more clear. I know this is easy for most of you guys here but I can't find it. Is it even possible to do it with $page->name or do I have to use $page->id with <= and >= Thanks.
-
Welcome Billy. Mary has a lot of practical modx tutorials and posts on-line. Seems to be a very grounded person. Processwire is a surprisingly transparant cms/cmf. You have to get used to it that you can approach it in so many different ways to set something up. Joss made some good beginners tutorials to start with processwire. As a beginner first learn it's api and related php functions such as foreach, etc.
-
Thanks diogo. Not fopen() but some api call right ? The only thing that is wrong here is me, feeling frustrated not knowing enough to code my own decent php. Mixing php between html tags - for each - echo complete tables, structures, li, ul, the api, etc. still a long way to go. I'm not born with a programmers mind but having seen processwires potential compared with other cms'es, and only understand simple php snippets, makes things even more wrong here That said, and with this great forum, feeling a bit more relieved and carry on.
-
Thanks kongondo. It is going to be fun though to get this working with php. As with the cutting off a text line in an inappropriate way, what about reading the first x words and output them instead of the first 3 lines ? Yes a summary field would be sure because you can decide your self where to end a line. I think I am going to need an article template file and then use php and loop until the last article for a page and then output all the found articles for that page in a list or simply stacked on top of each other. What would be an example to loop through all the articles on a page and output them ?
-
That would take 2 text fields, or am I wrong ? To get the first 3 lines from an article field, what about some php coding that reads the first 3 lines (or the first x words) from the full article in a field, and then output the first 3 text lines between html tags on the template file, together with a link to the full article page like in kongondos example ? $text = $page->article If someone has a better php approach I'm not a php coder but here is my first try and I am sure there are mistakes in it: <?php $file = fopen($text,"r"); $count = "0"; while(! feof($file)) { $count++; if ($count=="1") { $line1 = fgets($file); } if ($count=="2") { $line2 = fgets($file); } if ($count=="3") { $line3 = fgets($file); } } echo $line1; echo $line2; echo $line3; fclose($file); ?>
-
If for example you type in (english) yahoo.com search bar "pattaya klang road" his article about pattaya klang road on his website comes up second on the first page ! If you enter "pattaya klang road" in (english) google.com search bar the same article comes up third on the first page ! I think that is really darn good and I don't think he is using links to the articles but all wordpress seo. Please don't get me wrong, I am not trying to defend wordpress here, just trying to find out how I could use processwire in the same way.
-
Teppo thanks for your fast reply. I meant actually articles like in my friends website pattayaplaza.com. Here is an example of some of his articles http://pattayaplaza.com/visiting/street-views/ My friend told me that the more articles, the more google is going to bring you up in the search rank. I guess you mean templates for that in the administration.Would I need for every article with picture as shown in the example, a separate field for each article text ? pictures could go in their own image field. Just would need to find a way to keep the pictures with their related articles. As you can see the first 3 or 4 lines of an article are shown and then ends with "read more" that links to a page where the whole article can be read. Would that mean 2 text fields for each article ? I guess with some php and api one could pull out the first 3 or 4 text lines from the full article in a field and output it on the page. Then with a link go to the full article. My friend told me also that the articles written in wordpress are very seo friendly. Would that be the same in processwire ? About roughly how many template files would I need to come up with the same website as pattayaplaza.com I think the photo slideshow used on his website would be best in processwire as an include with all the html in an external file saved in the folder templates. Did you see the green topnavigation bar of pattayaplaza.com ? If you click on a word in the green topnav a new subnav appears underneath it. Each word in the green topnav corresponds to a set of clickable words in the subnav. How do you make something like that ? How would I realize this in processwire ? http://en.support.wordpress.com/stats/#views-by-country How much coding / api experience would I need to do a site like pattayaplaza.com in processwire ? Thanks
-
Google wants us to write a lot of articles so our site goes up in the rank list. Now a friend of mine is doing this with wordpress with his website pattayaplaza.com He also does hotelbookings. He has chosen for wordpress because it was made for blogging and articles. Now I got myself familiar with processwire and can do some things with it and are growing because of this great forum. My question now is do I have to start learning again a new cms (wordpress) or can I stick to processwire and do the same with it, that is writing articles and blogs and trying to use adsense to make some money ?