Jump to content

dev_panther

Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by dev_panther

  1. No help here, So I'll try doing it more simple: Can someone please point to all of the places I need to modify in order to add a new field?
  2. Ok. Thanks for the clarification. My changes where on the DB, so that's why the refresh didn't work for me. But the future changes should be more simple.
  3. I modified the module for my needs, So I now have 5 fields, date, timeofday, location, showname, and link. The table is presented correctly on the admin page, but there are a few problems: the "location" and "showname" fields are being saved and can be accessed, but are not being displayed on the table. the "timeofday" and "link" fields are not being saved to the DB. Here are the modified files: Event.php Can anyone see what the problem is?
  4. Ok, so I'm working on a module (Modifying the excellent "FieldTypeEvents"). So I changed what I wanted, installed it, and it's all working good. My question is - What should I do if I want to modify the module? I saw that just changing the code is not enough. Do I need to uninstall it and re-install it for every change I make? It seems like a long process, especially if it's for developing, and I want to change thins and see how they work out on the site frequently.
  5. I've built a site, and uploaded it to folder "myFolder" on a server. The site is being accessed thorugh "MyOtherSite.com", so now processwire is looking for all of it's resources in "MyOtherSite.com/site/assets" instead of "myFolder/site/assets". Is it possible to change the root dir of the site? Note - the server doesn't use .htaccess file, but a web.config Thank you!
  6. I've built a website on my laptop, and I'm viewing it using MAMP, and it's all working fine. I've uploaded the project to a new server. After configuring the new DB and everything, I can view the main page of the site, but nothing more than that. I can't go to child-pages of the main page, and I can't go to the processwire control panel (by going to mysite/processwire in the browser). When I try any of those, I get 404 page not found error. For obvious reasons I suspect that the problem is in the server. How can I check if the server is suitable for running processwire? I didn't deal a lot with servers in the past, so the more specific you get (instead of "check if you have this", also say "check it by doing this and that"), the more grateful I'll be Thanks.
  7. thanks! can you maybe that also for the case of images array? Because in that case each image doesn't have a field (or does it?) right now i use foreach($images as image){ $imagesrc = "{$image->url}{$image}"; } to get the whole image src, but it seems kind of redundant. Is there a better way?
  8. When I'm using wireArray, both with repeater and image field with more than one image, I have a problem getting the content of the array. For example, I have the following code where info_tabs is a repeater of textarea fields. $texts = $page->info_tabs; foreach ($texts as $tab){ echo "<div>; echo $tab; echo "</div>; } Instead of echoing the text, the page is echoing numbers, it is echoing the numbers 1029-1032. why is that?
  9. Hopefully someone will still read this Can someone please explain why it is better to use pages for events solution? The main advantage I see here is that this solution is much more user-friendly. If I want that the site will be maintained (data-wise) by a non-developer , I think it is much easier for a non-developer to add events using this plug-in and not open and delete new pages every time he has new events. Any thoughts on the advantages of pages?
  10. I tried re-writing both of the pages so that both of the only contains one line, same result. I only see the basic-page.php.
  11. LostKobrakai: I don't know, it is possible. How do I check that. cstevensjr: code of basic-page.php <?php include("./inc/header.inc"); ?> <body> It's the Basic Page NOT Home!!! <!-- plugin from facebook. produced with this page: https://developers.facebook.com/docs/plugins/page-plugin --> <div id="fb-root"></div> <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.4"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <?php include("./inc/upper_part.inc"); ?> <div class="container"> <div class="row"> <!--facebook app box--> <div class="col-sm-4" style="background-color:pink;"> <div class="fb-page" data-href="https://www.facebook.com/BambolaPuppetShow" data-small-header="false" data-adapt-container-width="true" data-hide-cover="true" data-show-facepile="false" data-show-posts="true"> <div class="fb-xfbml-parse-ignore"> <blockquote cite="https://www.facebook.com/BambolaPuppetShow"> <a href="https://www.facebook.com/BambolaPuppetShow">‎באמבולה - תיאטרון בובות לילדים‎</a> </blockquote> </div> </div> </div> <div class="col-sm-8"> <div class="row"> <!--schadual box--> <div class="col-sm-6" style="background-color:red;"> shows </div> <!--general info box--> <div class="col-sm-6" style="background-color:blue;"> <div style='margin:auto;'> <?php echo "<img class='centered_images' src='{$page->page_image->url}' alt='{$homepage->title}' width='100%'>"; ?> </div> <div id='main_page_text' class='hebrew_text'> <?php echo "{$page->show_description}"; ?> </div> </div> </div> <div class="row"> <div class="col-sm-12" style="background-color:green;"> banner </div> </div> </div> </div> </div> <?php include("./inc/footer.inc");?> </body> </html> code of home.php <?php include("./inc/header.inc"); ?> <body> <?php include("./inc/upper_part.inc"); ?> <div class="container"> <div class="row"> <!--facebook app box--> <div class="col-sm-4" style="background-color:pink;"> facebook<br> but <br> its <br> a <br> long<br> thing<br> </div> <div class="col-sm-8"> <div class="row"> <!--schadual box--> <div class="col-sm-6" style="background-color:red;"> shows </div> <!--general info box--> <div class="col-sm-6" style="background-color:blue;"> <div> <image src='{$page->page_image->url}' alt='{$homepage->title}' height='60' width='60'> </div> <div id='main_page_text'> <?php echo "{$page->show_description}"; ?> </div> </div> </div> <div class="row"> <div class="col-sm-12" style="background-color:green;"> banner </div> </div> </div> </div> </div> <?php include("./inc/footer.inc");?> </body> </html> obviously they are pretty similar, since I coded home, and than I wanted to see what it looks like, so I copied it to basic-page. (They are not identical and the page that I see is basic-page.php)
  12. As I said, I made sure the template is set to be 'home' and not 'basic-page', so sadly this is not the case.
  13. Yes. The editing of "home.php" has no effect while the editing of "basic-page.php" changes the first page I land in.
  14. I know. but I re-coded the home.php file to include other code. but it doesn't seem to take any effect. Is there a different page to code? It looks like it doesn't open home.php, but basic-page.php.
  15. I've started a processwire project from a blank project. for some reason when I open my browser the page opened is not the "home.php" page, but the "basic-page.php" template. I've checked and my home page is set to use the 'home' template and not the 'basic-page' template. How do I change that?
  16. I downloaded an existing processwire project to my mac, modified it a bit, and tried to upload it to a new "GoDaddy" server. The home page is loaded fine, and links to pages on that server that doesn't use the processwire system also works, but all the links that use the processwire system leads to "404 not found" error. No matter if try to get to them as links, or to type the address manually. It's like the server doesn't recognise that "www.MySite/newPage" should look for the "newPage" in the processwire directory, and it's trying to find a file names "newPage", in the root directory, that obviously doesn't exist. (Another point - running the project on MAMP server on my mac works fine). Any suggestions? Thanks.
  17. I just can't seem to figure it out. Can you please try and give me an example? I think it will help me the most. In the processwire.conf, my DocumentRoot is defined to be /Users/MyUser/Sites/domains/processwire/htdocs/ I have a file myIndex.html under htdocs. Yet when open the browser on processwire/myIndex.html I get an "Object not found!" error. Can you please explain - what should I change in the processwire.conf file, or what address to put in the browser to make it work?
  18. is there a default way? and if not, how can I set some configuration?
  19. Ok, I'm sorry for the basic questions, but can't seem to figure it out by myself. The 'site' folder is ~/Sites | `-- _vHosts | `-- domains | `-- processwire | |-- htdocs | `-- index.html | `-- logs I have a folder 'mySite' with all the processwire files. where should I put it and how do I reach it from the browser?
  20. Hey. Thanks for the guide, it was very clear and easy to follow. But I am very new to processwire and web-developing, so still don't understand - once it's done, how do I run a processwire site from local folders on my mac?
  21. I might add - I followed the instructions here: https://processwire.com/talk/topic/5797-setup-a-processwire-environment-on-a-fresh-macos-x-install/ and it seems to work, meaning when I go to "processwire/" in the browser, it shows "it works!". But I still don't understand how I get to an existing website now.
  22. Thank you for the answer. unfortunately, even with all the .htaccess file commented out, the problem remains. I do not get 500 error, just always the home.php file. I think that it might be because the php command's server causes the problem. Can you please refer me to a guide that explains how to start a server that can support a proccesswire site? I failed to locate one...
  23. I got to work on an already existing processwire project. I downloaded the whole site folders (site + wire) and exported the database to my mac. I'm using the php server to serve me the pages (with the command $php -S 127.0.0.1:8080) and indeed when I go to localhost:8080 I see the homp.php page. The problem is that no matter what url I put after "localhost:8080" I keep getting routed to home.php page. If I click on a link to an outer site, I get there, but I can't get to any other pages in my site. Any ideas? I'm Working on a mac with OSX. (Also - this is my first web-developing project, so if you can be specific about any instructions regarding local servers I will appreciate it).
×
×
  • Create New...