kirby-git icon indicating copy to clipboard operation
kirby-git copied to clipboard

Troubles setting up with current readme

Open mandymozart opened this issue 6 years ago • 0 comments

The current readme file of this plugin did not provide me with a comprehensive fail safe guide to install it properly.

Environment:

MacOS 10.13.1 High Sierra / MAMP Pro / PHP 7.2. / git version 2.17.2 (Apple Git-113)

screen shot 2019-01-30 at 02 56 43

site.yml:

title: Site

columns:
  - width: 1/2
    sections:
      pages:
        type: pages
        create: default
        template:
          - about
          - home
          - default
  - width: 1/2
    sections:
      revisions:
        type: gitLog
        label: History
        limit: 5
        kirbyOnly: true
      log:
        type: gitRevisions
        label: Revisions
        fields:
          - title
          - text
        limit: 5
        columns:
          - author
          - hash
          - message

And I tried a 2nd version:

screen shot 2019-01-30 at 03 30 46
title: Site

fields:
  revisions:
    type: gitLog
    label: History
    limit: 5
    kirbyOnly: true
  log:
    type: gitRevisions
    label: Revisions
    fields:
      - title
      - text
    limit: 5
    columns:
      - author
      - hash
      - message

columns:
  - width: 1/2
    sections:
      pages:
        type: pages
        create: default
        template:
          - about
          - home
          - default

This time only the first field get's outputted. everything else disappears.

And last but not least, here is my config. I do not understand what you mean but the prefix in your description.

config.php:

<?php

return [
    'dir' => 'https://gitlab.com/viennastruggle/vs_content',         // *
    'branch' => 'master',
    'shouldPull' => false,
    'shouldPush' => false,
    'shouldCommit' => false,
    'userHooks' => false,     // **
    'gitBin' => '/usr/bin/git',
    'windowsMode' => false,
    'logFile' => 'git-log.txt',
    'debug' => true
];

I would like to contribute in any way to attribute to this readme to get newcomers like myself setup quicker on path.

mandymozart avatar Jan 30 '19 02:01 mandymozart