-
Posts
1,560 -
Joined
-
Last visited
-
Days Won
49
Everything posted by gebeer
-
Looks great, thank you!
-
Hello, this looks exactly like what I need for a new project. Before I go and buy ProFields I'd like to know if it fits for what I want to do. In my case the multiplier field will be used on a frontend form. Is it possible through the API to show a fixed number of fields, depending on the context? Example: I have a template for servers. Depending on the server model, each server can have different number of channels. So I need to render a frontend form via the API that has either 4, 8, 10, 20 or 40 multipliers of the channel field depending on the server model. Is this possible and is there some documentation on how to save/retrieve values through the API? Thanks
-
SOLVED It was a role/permission issue. ProcessExportProfile didn't export the permissions correctly for a custom role in my system that got assigned a custom permission. After reassigning those, I can finally access the page.
-
Thanks for sharing. This looks interesting for putting together prototypes. Only thing that would keep me from using it is that I got used to a SASS workflow. Pinegrow automatically saves scss files along with css and less version, when you edit. But how do these scss files look like, just plain css with scss file extension? Maybe you have tried that already and could report back here. Thank you. PS: your cutegrid looks appealing. Will definitely have a look...
-
Hello, I exported a profile of a running live site (PW 2.5.2) with ProcessExportProfile module. Then cloned latest stable branch 2.5.3 to my local vagrant box dev server, copied the exported profile folder into PW root and installed. Everything went smoothly so far. All my templates, fields, modules and template files are there. I can access all but one specific page of my site. That page always throws a 404 error. The page sits under /profile and has template userprofile assigned. It is published and not hidden. The template file site/templates/userprofile.php is there. Only difference to the working pages is that this /profile page requires login before it can be accessed. After successful login the user is redirected to the /profile page with if($user->isLoggedin()) $session->redirect($pages->get('/profile')->url); But also if I enter the URL path manually, I get the 404 error. On the live site /profile only throws a 404 if you enter the URL path manually and are not logged in. So on my local install the /profile page acts as if the user was not logged in even if the user is logged in. I checked that the user really is logged in with if($user->isLoggedin()) echo "LOGGEDIN"; and has the correct roles with if($user->isLoggedin()) echo $user->roles; I haven't made any changes to my userprofile.php or any other files in the fresh install. And the code in there is working perfectly fine on the live site and on a copy of the live site that runs in the same dev environment as the site I'm having problems with. Now I'm really lost and don't know which steps to take for debugging this (debug is set to true in config.php - no messages or errors). Any help would be greatly appreciated. EDIT: I also installed the site on a different non local server to be able to rule out server environment issues. But same behaviour. Still get 404 for profile site
-
No, it is not really required to set it back to true.
-
I'm also using this German hoster for some sites. In a nutshell, they are using rsnapshot for their backups. Their backup server is pulling data from the live server. The backups are mounted via NFS to the live server. I came from the Joomla universe to PW. Thus I'm familiar with Akeeba backup which is a great product. Using their free and well maintained standalone version makes backing up PW and other PHP applications a breeze.
-
I had these problems once and tried all solutions I could find in the forum to no avail. Then I finally found out that it was a permission problem. The server was running wrong apache user/group. I know that with some hosting companies (eg hosteurope) you have to manually change the user/group of your FTP account to reflect the apache user/group. Maybe this is the cause in your case, too.
-
You can do that in Linux with Sublime Text and Emmet LiveStyle plugin. EDIT: actually the LiveStyle plugin also works in the other direction. It writes changes that you make in the Chrome dev tools to your CSS file which is also a nice feature. Only major drawback is that it doesn't support SCSS/SASS/LESS atm.
-
May I ask what the advantages of dreamweaver over ST are when developing a static site?
-
I can browse your site, even the homepage. Only thing is that the header image had to be loaded again when browsing to another page. But it should have been in the browser cache already because it is the same across the site. This points to come caching issues in my opinion. I had strange issues one time, too. Not same as yours, though. Then I found that when zipping up the files/folders on my dev machine, the hidden files (starting with . ) did not get included in my zip file. Guess this is OS related to my Linux box. You obviously have the .htaccess on the live server and thus in your zip so this might not be the issue. But still you might want to check if all files ended up in your zip correctly.
-
I've been working with virtualbox VMs for quite some time now and can say that they are very easy to setup and maintain. Getting OSX to run requires a bit more of an effort. But once things are setup it is running smoothly. I do all my development work on a Linux box and do all the IE and Safari debugging in VMs. For IE the images provided by modern.ie are great. For setting up OSX in a virtualbox VM see the link that I posted in #5
-
I live here 6 month a year and work mainly for European/American companies
-
You could also use a mac in a virtual machine for testing http://bit.ly/11xY5YN
-
Hello all, I'm working on a travel directory site with locations of the region I live in in Thailand. This is a private fun learning project. I would like to assign an icon to each location. ATM I have a simple text input field in my location template where I manually type in the fontawesome class name for the icon I want to assign which is a bit tedious. So I am thinking about putting together an Inputfieldtype "Icon" which will surely aid in learning PW module development (and some more PHP along the way) My concept so far: -since people will hardly use all 500+ icons on their sites, I want to use an asm select in the field setup to search and select the icons that we want to use -the asm select should show both, the icon and it's class name for each icon -then use the selected icons to populate a select dropdown field as input field where the user can choose an icon. Which inputfield module could I have a look at that is using asm select in the field setup? I used import.io (which really is a fun tool) to create a data set with all fontawesome4.2.0 icon class names and their unicodes. If you're interested you can see the dataset here (you need to login/signup with them first). I can export the dataset as JSON and use that to populate the asm select for the field setup. These are my ideas so far. Yours are always welcome
-
Thank you for that snippet. I'm using it for a project with Bootstrap 3 and updated it accordingly <ol class='breadcrumb' itemprop="breadcrumb"> <?php foreach($page->parents as $parent): ?> <li itemscope itemtype='http://data-vocabulary.org/Breadcrumb'> <a href='<?php echo $parent->url; ?>' itemprop='url'> <span itemprop='title'><?php echo $parent->title; ?></span></a></li> <?php endforeach ?> <li class="active"><?php echo $page->title; ?></li> </ol> And I added <body itemscope itemtype="http://schema.org/WebPage"> like suggested by teppo. Now it is being picked up by Google.
-
Thank you again for the explanation. I followed your advice for testing and can see now that it is working.
-
There's also line 217 $value = $this->wire('sanitizer')->filename($value, Sanitizer::translate); Never used IIS, so can't help there.
-
š character in image name: I just tested this behaviour on both, a 2.5.2 and a 2.5.7 install. uploaded an image with name "aua2š.jpg" and the name got converted to "aua2s.jpg". So your problem there might be related to version 2.5.4.
-
If your images have meaningful names, you could also substitute the image file name for the description if the description is empty. Something like this $img = $page->my_image_field $imgDesc = ($img->description == "") ? $img->name : $img->description; //echo out your img tag This way you wouldn't need custom module or hooks into InputPageName or custom form validation in backend. It would be a nice feature though, if we could set the description to required in the image field settings.
-
The quickest way to see the name (or URL) is to click on a page and then hover over the "view" button. Then you see the URL in the bottom left corner of your browser. When I quickly need to find the id of a page, I just hover over the edit button.
-
Thank you for clarifying. So I guess your module is restoring the session then. Or do I have to pick up and process the cookie data in my custom login logic? Cheers
-
Thank you for this module! I'm trying to implement it on a 2.5.2 install and have some issues/questions. I installed, activated and configured the module to be automatic without fingerprint and only assigned to 1 specific role. These might me dumb questions, but I'm still asking 1) is this module intended for backend or frontend usage or both? 2) how do I go about testing? I logged in to the backend on a live server in Chrome with a user that has the specified role. After login I can see that a persist cookie has been created. Then I opened a Chrome incognito window and went to the backend login address. But I'm still presented with the login form. I want to use it on the frontend. So I switched off automatic mode and added this to my login logic: //login user $u = $session->login($username, $pass); if($u) { // make login persistent if user checked Remember me if ($u->login_persist && $u->login_persist == "1") { $persist = wire('modules')->get('LoginPersist'); $persist->persist(); } } When I now login to the frontend, I can also see that a persist cookie is created. I tried testing it the same way as above with the backend login. No success. When I log out of the frontend session, the cookie is gone. 4) Will the login still persist, even if the user logged out of there previous session? I guess not.
-
I'm not a PW guru at all, but the first thing that comes to my mind is the Hanna Code module. Marcrura beat me on this one
-
I can confirm same behaviour for CKEditor 4.4.3 I also tried it with the native CKEditor link plugin. But I couldn't get it to work, either, other than switching off HTMLPurifier :-(