Jump to content

gebeer

Members
  • Posts

    1,554
  • Joined

  • Last visited

  • Days Won

    48

Everything posted by gebeer

  1. @adrian This seems to be a multilanguage issue. Changing the name of the homepage also changes the path of all children. Would be great to have checkbox like that.
  2. http://www.lovemysurface.net/run-linux-on-surface-pro-3/ Should be possible on the Pro 4, too
  3. @mike_b thanks for posting this fix here. Actually I never had used this profile for a site that required IE8 compatibility. So I never tested for that. For quite some time now I am using my other, more advanced Bootstrap 3 SASS Fontawesome Blank Site Profile. This one I abandoned in favour of the SASS version which gives much more flexibility and up to date framework code.
  4. I just discovered that after my client had changed the title of the HOME page, the URL for that page got changed accordingly. Now all pages in the tree got new URLs which is not good for search engine indexing at all. Maybe you could add an option to disallow automatic changes for the name of the homepage?
  5. Hello, I have setup multiple templates for users on a 2.6.17 install. My user template is "therapeut". I added a new role "admin" with following permissions set Now when I login with user role "admin", I cannot edit the userpage "harald-roeder" with template "therapeut" through the page tree. But I can edit the same userpage through Access->Users->harald-roeder. Is this a bug?
  6. Thank you, found it in Advanced tab Exactly what I was looking for. So no need for Soma's module anymore. But still, I find it confusing that the name field is not editable from the Basics tab.
  7. In the user template (or clones of it) there is no field "name". I have set $config->advanced = true;
  8. Thank you Soma for this module. This is quite some time ago. For 2.6.x versions of PW, is there a way to change the label without having to use a module? I can't find this field anywhere, even with "$config->advanced = true;"
  9. Thank you all for your suggestions. @horst I'm already storing sessions in the DB. Will have a look into the ini settings. Meanwhile I found and interesting article which talks about using "session_write_close();". I will do some more research and post my findings here.
  10. Yeah, would be great if we could decide on a template basis whether to use sessions or not.
  11. Thanks for the answer. I see that there is a config setting "$config->sessionExpireSeconds" which defaults to 86400 seconds. Would it make any difference to the server load to reduce the session time? Or does nayone have an idea how to deal with the situation?
  12. Hello all, I am using part of a PW install as a backend for a RESTful API. Everytime a client consumes the API, a session is started. The RESTful approach is sessionless per definition and I would like to avoid sessions, if possible, for performance reasons. When I look at the open sessions while only one client is getting or putting data through my REST API, I can see that there are quite a few (over 50) sessions open from that client. The project is at a testing stage right now and I'm afraid that once 50 or 100 clients are connected, the sessions will put a big load on the server. Is it advisable at all to try and avoid sessions? How would I go about killing sessions or, even better, connect to my API endpoints without starting a session in the first place?
  13. Hello everyone, for a project that is utilizing ProcessWire as a web frontend and REST API backend, we are looking for a hybrid app developer. ATM our client has native Android and iOS apps that exchange data trough a REST API with the ProcessWire web app and then display that data on the mobile clients. We are looking into possibilities of dropping the native apps and working with a hybrid app instead. The project is long term. The web frontend and REST API is already up and running, though at an early stage. I can't get further into details here. Please PM me if you are interested and I will share more details. Thank you.
  14. @TLT happy to here that you like my profile I tried to keep everything as minimal as possible. That is why the collapse plugin is not included in plugin.js by default. But, thinking about it, it makes sense to include it by default. I will amend and update the profile on github. EDIT: profile is now updated on github
  15. @mr-fan Thanks a lot. This is working perfectly
  16. First off, thank you for this great module. I have installed the latest version (0.8.2) and assigned one template (workshop) I'm doing import of pages from a Joomla site and want to set values for SEO fields through the API. But I get this message when trying to save data to SEO fields: "Notice: Indirect modification of overloaded property Page::$seo has no effect in /var/www/qgtpw/site/templates/convert.php on line 225". My code $data = csv_to_array('inc/joomla_workshops.csv'); foreach($data as $csv) { $jid = $csv['id']; $title = $csv["title"]; $description = $csv["metadesc"]; $keywords = $csv["metakey"]; $workshop = $pages->get("template=workshop, jid={$jid}, include=all"); if ($workshop->id) { $workshop->of(false); var_dump($workshop->seo); if ($title != "") $workshop->seo->title = $title; if ($description != "") $workshop->seo->description = $description; if ($keywords != "") $workshop->seo->keywords = $keywords; $workshop->save(); $wokshop->of(true); echo "$jid<br>"; } } The var_dump gives "null"; How would I go about saving data to the SEO fields via the API?
  17. If you are working with sublime text I can definitely recommend SFTP package for sublime which integrates very nicely. Main advantage is that you don't need to switch between code editor and ftp program. Everything file transfer related happens from within the code editor, which, in my opinion, greatly enhances the workflow. You can even sync folders bidirectionally or diff local to remote files etc.
  18. I am currently working on a project where Android apps connect to a PW DB to put and get data. For data exchange I decided to create a REStful service with PW. There is a REST helper class for PW from clsource which is working great. The Android apps also display HTML that is rendered by PW and sent as JSON to the Android app. I am not in charge of the JAVA part so I can't tell you what is needed on the Android side to render that JSON. There is the Ionic framework that helps in developing android apps based on web technologies without using JAVA.
  19. Thanks for the hint. I don't really need a list of files. Just the uploading part. So I will have a look at the InputFieldFile module and see if I can deactivate the listing of files.
  20. So the bottleneck would be the thumbnail-display. Couldn't we just switch that off through a hook or take the image input field module as a template and remove the part for thumbnail display? I just realised that I can use the file field for handling the uploading of images (in the end they're files). I will try this with a large amount of images and report back.
  21. Hello everybody, I'd like to use the images field as an upload UI. One image field would hold 1000+ images and I am wondering how this would perform in the backend. I would only need the upload functionality. No need for thumbnail display, ordering etc. Has anyone experience in using an image or file field with very large quantities of images? Or is there an alternative upload UI for PW that stores all images to a single folder? EDIT: I don't need to upload 1000+ images in one go.
  22. the html img tag does not have a closing tag, so your code should read if ($page->pictures) { $content.='<figure><img class="artikelbild" src="'.$page->pictures->url.'" alt="" /></figure>'; } Give this a try and report back. Is your $page->pictures field for single or for multiple images? If it is for multiple images, if($page->pictures) will always return true. Then you should do if(count($page->pictures)). Also, if your image field is set to multiple images (which is default) $page->pictures->url will not work. You'd need to do $page->pictures->first()->url to get the first image. Have a look here to learn more about images in PW. EDIT Just a quick tip to make writing code easier: If you use double quotes, you can write your variables directly inside the quotes like $content.="<figure><img class='artikelbild' src='{$page->pictures->first()->url}' alt='' /></figure>"; More about single and double quotes here
  23. Hi Phil, can't see anything wrong here. Except for <a class="nav-btn" id="nav-open-btn" href="<?php $homepage->url ?>">Menü</a> is missing the echo statement. So it should read <?php echo $homepage->url ?>. But this shouldn't be the cause of your problem. You are saying that this happens on all pages but the home page. So it might be related to something that is wrong with your other templates, e.g. basic-page.php. You might want to compare them thoroughly to home.php and maybe you can spot the difference. If not, post one of the templates that cause this behaviour. I don't think that it is related to the "Content Type" at the "Files"-Tab. If you leave these all at defaullt you should be fine.
  24. For me the biggest benefit is that Leaflet is based on OpenStreetMap data and there are no usage limits that I'm aware of. Also with leaflet providers you get a wide variety of different map tile providers to choose from. Here is a good read comparing GM and Leaflet and OpenLayers.
  25. @Mats your module is really awesome. Thanks again! I forked it and added support for leaflet providers. Still beta but I couldn't find issues so far.
×
×
  • Create New...