Jump to content

Philipp

Members
  • Posts

    199
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Philipp

  1. I know the problem you described. Normally, I just fixed the paths by hand in the editor - possible if you only have around 10 images used. My current workflow is to develope a site under a subdomain, for example dev.example.com and later make it example.com . So I'm just avoiding sub-directories. 

    Maybe it would be possible to replace all <img src".."> directly with some SQL Queries and a little bit of Regex magic.

    • Like 1
  2. For all that PW feels light years ahead of other CMS I find the "3 steps for one action" thing a bit limiting.

    This is nice if your client is using the side and you're not longer developing the site. Then it's a little bit of a security measure not do easily delete pages, users and stuff. 

    In Development on the other hand, it's really sometimes a little bit frustrating. I'm always using the "Page-Delete" and the "Page Copy" Modules just to be faster. 

    Maybe a solution would be a switch - if debug or development modus is active, you get those easy delete links and batch operations. If not, everything will require some more steps for security.

    • Like 1
  3. A suggestion regarding the german "umlauts" ä ö ü .
     
    When I create a page and the page name contains a Umlaut like ä, it becomes an "a" in the URL (example: "Jährlich werden" -> "jahrlich-werden"). I know a URL can't contain a ä but normally you just write them as ae instead of ä. The german Wikipedia explains this a little bit, the english not. But maybe some of my fellow german developers here can confirm this.

    Example:

     
    https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Inputfield/InputfieldPageName/InputfieldPageName.module#L18
     

    	public static $defaultReplacements = array(
    		'ä' => 'ae',  
    		'ö' => 'oe',  
    		'ü' => 'ue',  
    

     
     
    And maybe we can add the "ß" to convert to "s" or "ss". It's used for example in "Straße" ( = Street).

  4. Just a little note to the forum search:

    I can't search for "url". Maybe it's to short for a legit search string. But when I search for "url naming" or "url segments" it throws away the "url" and only searches for "naming" or "segments".

    Using google with "url processwire" works fine ;)

  5. I'm (or was) mostly a designer but managed to make Processwire Pages. As everybody said before: You will get clean, structured and fitting pages for the cost of pre-made templates and 1-click-solutions. On the other hand, that's exactly how design works: You just can't stick together different parts (=plugins) to create a real outstanding design. It doesn't work. Every design is unique and so are most PW pages. And to complete the analogy, you can reuse some design patterns again (for example Sliders and the JS Code behind) in Processwire.

    If you have any trouble and lots of question, feel free to contact me via Skype or PM ( Auf Deutsch ist es vielleicht manchmal leichter / Sometimes it's easier in german) 

    • Like 4
  6. Website is translated as "Webseite". Better would be "Deutsche Processwire Seite" (Sounds better) or "Processwire auf Deutsch" ("Processwire in German"). If you want to have Processwire at the beginning of the sentence it should be "Processwire: Deutsche Webseite"

  7. Hi,

    using the E-Mail is really a nice idea and you could bypass the limitations of the tumblr API (1280px Images,..). On the other hand, you do not need any special tool (as you said, nearly every smartphone has a share-by-mail feature integrated)

    I'm just using apeisas Process Data Import Plugin and this is "my code" behind writing the PW pages. You could say, my example site was more like a proof-of-concept by using the modules and tumblr. Sorry, can't help you here.

    But maybe this helps:

    		// Here we create the pages
    		foreach($values as $item) {
    			$pageName = $this->sanitizer->pageName($item[1], true); // 1 is ID for title field
    			$p = $curPages->get("template=$template, name=$pageName");
    			if (isset($p->id)) {
    
    				// We already have the page, just update the values
    			} else {
    				$p = new Page();
    				$p->template = $template; 
    				$p->parent = $this->pages->get($parent_id);
    				$newPages++;
    			}
    
    			foreach($item as $key => $value) {
    				$field = $this->fields->get($key);
    				$fName = $field->name;
    				$p->$fName = $value;
    			}
    
    			$p->name = $pageName;
    			$p->save();
    		} 

    https://github.com/apeisa/ProcessDataImport/blob/master/ProcessDataImport.module#L379

    (from apeisas module)

    The Cheatsheet might help.

    • Like 1
  8. Nothing. Just the basic-page template with a field called images or "bilder". 

    Activating the Debug mode displays the full error:

     

    TemplateFile: Unrecognized path

    I've first checked the admin.php in the templates folder - it's there.

    Older versions of PW with the module are running on the same server without any problems. Could try to install it on the machine here.

    EDIT:

    Ok, strange but known behaviour:

    I've uninstalled everything and installed it again. Now I'm stuck at the upload with the error as Joss.

    EDIT 2:

    Works now. Just followed the steps Joss described. 

  9. Downloaded the latest version from Github. Installed it on PW 2.2.14 (2.3) on a fresh installation running with PHP 5.3 - It works so far until I want to edit the crop area. Click on it just opens the new tab saying 

    Unrecognized path

    Hope you can come up with a working version for PW 2.3. This module is so useful. 

  10. Don't know if it is a module but I think it's just using Processwire with Fancybox

    Output the images from a page(using the standard images field) and Make Thumbnails +the right anchor around them. I'm using a simple (and ugly) PHP+HTML Loop through all images on the page as $i. One way to generate Thumbnails is to use the size(width,height) function.

    foreach($page->images as $i) {
        echo '<a href="' . $i->url . '" class="fancy" rel="gallery-1">'; //The anchor for Fancybox
        echo '<img src="' . $i->size(120,120)->url . '" width="120" height="120" alt="Thumbnail"/>'; //The Thumbnail
        echo '</a>';
    }
    
    

    Then include the fancybox JS and let jQuery do its magic $('.fancy').fancybox() . Read the manual and see how you can modify the behavior of the fancybox.

  11. This is the only reason I'm using my Macbook - There is Coda 2 (from Panic) and - in my eyes - it is the perfect solution for web developement like Processwire templates(little bit PHP, mixed with HTML and CSS).

    A non-commercial solution for Windows is Aptana but I thnk it is kinda overloaded with features and slow.

    Currently, I'm testing Webdrive FTP. I can mount my FTP Dir to the explorer and then every editor can use it as a normal directory.

    • Like 1
  12. The page tree you see in your PW admin is your page structur. As you already figured out - unlike other systems - you have to create everything like news or your planets with your own logic on how to sort those pages. So if you only want the first level of the pagetree as your navigation, you would only output the children of / and don't go deeper into the structur. This is done by your templates.

    Make a page called "Planets". Now click on it and then this time click on the "new" link next to "Planets". This will create a child page of "Planets" with another template like "planet".

    For each page you can select the template while first creating the page. It is the last dropdown after you clicked on "New". 

    If you want to display somewhere on your site(in your template), you have to loop through the children of your page.

    <?php foreach($page->children->find('template=planet') as $child){
    echo $child->title; // Your menu or whatever
    };?>

    The Cheatsheet helped me alot

×
×
  • Create New...