Jump to content

pwired

Members
  • Posts

    2,318
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by pwired

  1. Porting from modx evo or from revo ? If from revo the difference in admin and page speed will be huge !
  2. Like that phrase It is indeed strange. I mean, if you understand the workings of pw that good that you can make a convertor for it, then it wouldn't make sense anymore to convert it. Probably is just a try to make money out of ignorant site users. Edit: Website/Template convertors or generators output hopeless bloated code. Who would like to have such a website ? Can never match a cms/cmf with hand coded templates. Not even speaking about a cms/cmf with a low level abstraction layer like pw. Good example: artisteer. Just look how that outputs bloated code.
  3. Thanks Sinnut, you are right, I have to port the jquery script solution shown on that page you linked, to processwire. Not easy but not impossible for a beginner coder like me Thanks.
  4. Thanks Joss - Sinnut. Ok so the first step would be to make a container page "categories" and then make child pages category1 category2 etc and a template categories with the needed fields. Second step would be when clicking on a link in the left column to get the field containing the info text and then output that info text in the middle column. Home Page Left column Middle column Right column category1 When someone clicks on category2 a category link in the left category3 column, the info text about category4 that category shows up here category5 in the middle column. Without etc. reloading the page in the browser. etc.
  5. Hi Joss, are you saying to work with 2 templates and put the info text on a hidden child page and then output the info text from this hidden page in the middle column of the home page ? Still don't know how to do this from the left column when clicking on a category link. I guess clicking on a category link has to execute some php or script code to output the info text to the middle column.
  6. Hi I have a home page with 3 columns: on the left side 12 categories, in the middle column info text about a category, on the right side some links and thumbs So the left column looks like this: category1 category2 category3 etc etc If a visitor of the homepage clicks on a category, in the middle column of the homepage should show up info text about this category. So I need to put the contents of this info text for each category somewhere in the admin with fields. Since I have 12 categories, do I need to setup 12 text fields each with a name for a category, and add these 12 text fields to the home page template ? The code to output the info text of category1 in the middle column of the homepage when a visitor clicks in the left column on category1 would be something like this but I am not sure about how the right code would be: <a href="category1"><?php echo $page->category1 ; ?></a> The link to click on a category has to be in the left column but the info text to output after clicking on a link has to be done in the middle column. How do you do this ? Thanks
  7. How about an option in the Admin to make a session last for 1 day. A little square somewhere that you can click and then you won't be logged out for a day. Or maybe better: a dropdown list where you can select leave this Admin session open for 1 - 2 - 5 or 10 hours.
  8. Here you go: http://www.evolus.vn/en-US/wiki/products/pencil/pencil.html http://pencil.evolus.vn/ (Illustrator seems to rise in popularity for mockups if you can afford it)
  9. This is very usable because there is a need to give clients a non destructive access to the back end.
  10. http://processwire.com/api/variables/fields/ Example to check if an image(s) field has something in it: if(count($page->images)) { // the page has one or more images } $image = $page->images->first(); if($image) do something;
  11. Pw on Nginx diy: http://processwire.com/talk/topic/4324-how-to-forge-pw-on-nginx-tutorial/ http://www.howtoforge.com/running-processwire-on-nginx-lemp-on-debian-wheezy-ubuntu-13.04
  12. Not sure what you are after but maybe this might help: http://processwire.com/talk/topic/2300-structure-best-practice-grouping-in-admin/ http://processwire.com/talk/topic/740-a-different-way-of-using-templates-delegate-approach/ But looks like you over-complicate your approach. ProcessWire uses a hierarchal structure for pages you setup in the backend. In your templates you can call whatever page you want. http://processwire.com/api/templates/ section: finding and loading other pages from your template file http://en.wikipedia.org/wiki/ProcessWire Quote: ProcessWire is built around a page content tree (as opposed to a bucket system). The URL or path of each page is always reflective of its place in the hierarchy. One uses this same path to reference the page in the API. As a result, this connection of the path to the internal tree hierarchy is important to the architecture of ProcessWire. Beyond the parent-child relationship implied by a content tree, ProcessWire supports relational one-to-one and one-to-many references between pages in the tree.
  13. pwired

    A matter of ethics

    You lost a client but you won expierence in the business. Never say a bad word about him because of 3 reasons: it will backfire at you sooner or later people won't take you serious people will see you at his level If people compare you and refer to him and his way of doing web business say that you can tell them how you are doing your web business and how it can fit their needs. Make people see your profile. Say that you studied the market and customer needs and made a choice for a specific cms/cmf. You do the templating and coding but deliver easy editable fields for the client. Mmmm what cms/cmf might that be - - - Mr. bloated goat won't be able to build decent client relation ships which is a key part in expanding a web business. Good client relations will always bring more clients.
  14. Many people still have old idea's or opinions about Linux Desktop, (not saying you have) but Linux Desktop has come a long way. It is no longer only for nerds or specialists. Some distro's are very much the same in look and feel as windows. http://manjaro.org/
  15. I am going to switch to linux also. In April XP is not accepted anymore by Banks to do telebanking or only at your own risk. In case something happens Banks do not pay anything back. Tired of Win 8/8.1 already. Win9 is announced already to replace 8/8.1. No windows 7/8/9/10 for me anymore. The latest LibreOffice has become as good as M$ Office / and so on.
  16. Soma has also made a blank profile for this. http://modules.processwire.com/modules/processwire-blank-install/ Or you can make your own template and inc files.
  17. Thanks for the second code example renobird. I am going to do this in 3 steps. First your easy example, then your second example for studying the how and what, and third replacing it with a show off slide show which I already have but do not know how to implement yet.
  18. Hi kongondo, working on it copying all inline css into a single file.css and put that inside the folder /styles/file.css Then I delete all the inline css in the layout page
  19. <ul class="rslides"> <?php foreach ($page->images as $img):?> <li><img src="<?=$img->url;?>"></li> <? endforeach ?> </ul> Thanks for that example.
  20. Thanks guys, would not have found this easy my self. Saved it in my script lib. $page->images->eq($n); $page->images->eq(1); // second image Can keep on coding now kongondo, PHP starts anywhere you have this <?php......and ends here ?> thanks for that, sometimes I am confused if it is allowed to use php inside html or html inside php Btw, do you have to use those inline CSS styles? Last night I found this really great 3 column, no nonsense and responsive layout. It works great !!! I am studying the css but I believe the slideshow has little connection with the css. I am going to post this layout later on github (which will be my first github experience as well) or post it as a pw profile. This 3 column responsive layout is very usable.
  21. Hi, I only have 3 images in my home page (in the images field) I know about $image = $page->images->first(); but is there something like this: $image = $page->images->first(); $image = $page->images->second(); $image = $page->images->third(); Could not find those so I am afraid not. What would be the easiest way to get the three images inside the img src=". . . . in this code: <div id="slideshow"> <ul id="slides" class="rslides rslides1"> <li id="rslides1_s0" style="float: none; position: absolute; display: none;" class=""><img src="/test_image2.jpg" alt=""></li> <li id="rslides1_s1" style="float: left; position: relative; display: list-item;" class="rslides1_on"><img src="/test_image3.jpg" alt=""></li> </ul> </div> Besides that, using the pw api would require using php commands. Is that possible to do that in the middle of html code ?
  22. Soma posted about this in the past how to do this the straight way: backup your database.sql backup the site folder install processwire on the new host replace the site folder with the backup site folder import your backup database.sql
  23. I remember a post where somebody had successfully installed processwire on nginx Unfortunately I haven't saved the link. Did you try a search with google ? Enter in the search bar for example processwire nginx Apart from that I have seen articles on the web on how to configure nginx your self. Processwire is already fast but running on nginx it will launch webpages blazing fast
  24. pwired

    SharesPost

    Hi, r2d2 About the site http://sharespost.com/ Clear and easy to look at design. Nice info graphic styled slideshow used. Just my 2 cents here: Maybe give <div class="homeBox"></div> and <div class="company"> a bit more contrast. Used #eaeaea and #e8e8e8 looks a bit vague. (may be not just my own viewing experience) My pc screen has a standard 1024 x 768 resolution but there is a horizontal scroll bar About the site of http://kevinpuleo.com just my 3 cents here: 1. There is 2 times the word from in the line from from concept to completion 2. Will visitors know how the word unite in the flag should be interpreted ? 3. My pc screen has a standard 1024 x 768 resolution but there is a horizontal scroll bar
  25. Thanks everybody, really appreciate your posts here. I go for diogo's example http://codepen.io/anon/pen/xBGej doesn't go more easy and that's what I need for today. I can fill it in with example text, pictures and links. Thanks.
×
×
  • Create New...