Jump to content

mike77

Members
  • Posts

    50
  • Joined

  • Last visited

Everything posted by mike77

  1. Thanks guys - and sorry Soma if I wasn't more specific - it works of course and I tried to did it this way. I must have made simple mistake and then I assumed I made wrong approche. Sorry for the off-topic as well.
  2. It is a repater indeed and I know that I need to use a loop to render the output. The problem is that I have already one loop in the code (it outputs the form markup). I tried to put another one especially for the repeater (as sibling to the existing loop or as a child of it) but it doesn't make sens. I also put the repeater loop in function and then called it from inside the original loop with no results. It's simple issue but confusing for me. Anyone? Should I start a new forum topic?
  3. One more basic question about Repeater... I have this code which is working fine for a single text field (called "medic"). <form> <?php $choice = $pages->find('template=clinics'); foreach($choice as $ch) echo "<label>$ch->title</label> <select> <option></option> <option>$ch->medic</option> </select>"; ?> </form> Now I need to put the single field into the Repeater (to be able to add some more in future) called for example "med" and I have a problem doing so. It seemed easy but I tried few options and they didn't work. The obiouse was to change <option>$ch->medic</option> to <option>$ch->med->medic</option> but it doen't work of course. How to use the existing loop to manage the output of Repeater fileds? Should I add one more loop inside the existing one just for the Repeater?
  4. mike77

    Windows 8 (or 7+)

    There is a default antivirus (Defender) of course but it was hard to find what caused the problem - the error code informed that it was a ethernet driver. I expect more issues with apps compatibility in futer.
  5. mike77

    Windows 8 (or 7+)

    I had the same problem after the upgrade. When I installed Win8 once again XAMPP began to work through port 80 with no conflicts.
  6. mike77

    Windows 8 (or 7+)

    Just wanted to share it with you... I bought a copy of Win8 three days ago not knowing what to expect. It turned out that it's not really as bad as it would seem. The system is faster then the original Win7 and the workspace (the desktop mode) doesn't differ much from the previous version. Till now it's stable. The only basic issue I've encoutered was the system upgrade from Win7 - many bugs appeard afterwards so I'd recommend installing Win8 from the scratch. Also it's better not to install free antivirus apps (avast for example) as the system crashes everytime it enters the Web. if you're using Win8 any tips would be welcome.
  7. Thanks Ryan - sounds easy. I thought that only the config.php in 'site' folder acts this way but it's good to know that more files can be edited and protected from override process during the upgrade.
  8. Thanks for directions. I must spend more time reading API - I just read the basics and it seems I should move on with it.
  9. Basic question: is it possible to add couple of times the same field (literally the same, not the same type) to one template? In admin panel there is no option to do so.
  10. It doesn't mean you're allowed to do whatever you want with it. But thanks for the link. Cheers.
  11. I'm starting new project for a first time with PW. I'd like to know if it would be apprioprate (in terms of PW's creator permission) to brand the admin panel with clients logo just to make the look of it more relevant to the clients CI. The PW logo would stay where it is now but I thought of adding one next to it or something. Is it technically possible?
  12. Additionally I could remind that for single image field the "Maximum files allowed" setting (in the "Details" section in admin panel) should be changed from 0 to 1. Otherwise the PW will seek for an array and not exact file (the $page->image->url output will be a folder not a file name) and you won't see the photo you added through the admin panel.
  13. Thanks Soma, I should try to insert it into markup the way you did instead of taking a shortcut like: echo "<img src='<?=$page->image?>'/>" Anyway the PW variable should always be as a value of a standard variable (like $imgurl in that case) because the code above or echo "<img src='<?php $page->image->url ?>'/>" don't work either. First lesson learnt
  14. Well, I have tried this previously but the output I get is just an URL like: /../site/assets/files/1016/gk.jpg - instead of photo I see that URL. The folder assets/file/1016 contains the file gk.jpg so it should show but it doesn't. I also checked all image field setting but found nothing that could interact that issue. Could it be that I don't have something installed correctly?
  15. Finally I can start doing something with PW and learn it from the scratch. I also have a (very) basic question. I couldn't find it in the API and on the forum but I need it straight just to get along with the work. The case is very simple. I added a image field called 'image' and put it into the template. Then, in template code, I added this (just like in case of other fields, textArea for example): <?php echo $page->image;?> but it doesn't work - the photo won't show only the name of the file. I also tried: <img src="<?=$page->image?>" alt="" /> with now result. What is the syntax for adding a single image field? I used the foreach loop with the $page->image and it worked find.
  16. Thanks Soma. Your module looks great. I will check it out tomorrow. Thanks again for the feedback! Edit: yes it all went perfect. With nested classes the module allows to easly style the grandchildren in css and make them behave in JS. Thanks again.
  17. Still learning...

  18. I have a question concering the code beneath: It works fine (it skips the root page which is logical and natural way of putting navigation) but I need to add a class to the children's children (grand-children of the root) items of the navigation so I could hide them with css/jquery (and show on mouse hover). How do I do this? I tried few modifications but I faced the problem of identifying the grand-children out of the script loop flow. Anyone? Thanks.
  19. BTW, what is the location of login/password in the database? I didn't go into it but it would be practical to know.
  20. Thank you very much. That solves the issue.
  21. In the API section of PW website I found a comment made by Apeisa. He wrote: // If the page is editable, then output a link that takes us straight to the page edit screen: if($page->editable()) { echo "Edit"; } I'd like to use this function but the code shown above won't print a link - just a static string. How to edit this so the output would be a link leading to the exact page edit screen in admin control panel? Thanks. PS. Link to the page where I found the comment: http://processwire.com/api/variables/page/
  22. As a matter of fact I'm developing a project for a client and when I found PW I decided to switch to it - that means I must start some work from the beginning (but I'm sure it's worth the time for future benefits). The basic PW knowledge I found on PW website and forum is what I need right now so I don't have any suggestions about new tutorials at the moment. Questions may appear along the way though. Thanks for asking anyway. Regards.
  23. This is my first post on PW forum. I'd like to say Hi to everyone and express my thanks to Ryan and Crew for givining us this amazing tool. I've been looking for CMS of such kind for some time now without satisfactory results but after discovering PW few days ago I'm content. Thanks again! Oh, and I'm looking forward to see some new tutorials Cheers!
×
×
  • Create New...