Jump to content

zoeck

Members
  • Posts

    382
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by zoeck

  1. 24 minutes ago, sladedesign said:

    Still confused about the process for exporting posts though so if you have any advice on that I'd be delighted.

    There's no "ready to use" export function in processwire, but you can easily create one like described in the posts of AndZyk.
    But I think you have not understood how Processwire works ? a simple introduction can be found here https://processwire.com/docs/tutorials/hello-worlds/

    The important thing is that you understand that the export must be programmed by you via php. The module "BatchChildEditor" simplifies the whole thing only a little.
    In the module description there is also a simple example: https://processwire.com/modules/batch-child-editor/

    But you need an understanding of how PW is structured (Everything is a page, every page has a template, every template has fields, every field has a certain type).

    • Like 1
  2. @bernhard This is the function in the module file:

    <?php
      /**
       * Get changed watchfiles
       * @return array
       */
      public function getChangedFiles()
      {
        $changed = [];
        foreach ($this->watchlist as $file) {
          // remove the hash from file path
          // hashes are needed for multiple callbacks living on the same file
          $path = explode(":", $file->path)[0];
          $m = filemtime($path);  /////////// LINE 1282
          if ($m > $this->lastrun) {
            $changed[] = $file->path;
            $file->changed = true;
          }
        }
        return $changed;
      }

    It's this Line: $path = explode(":", $file->path)[0];
    Explode the Path -> it's just C (should be "'C:/apache2/htdocs/site/migrate.php'")

    When i remove the explode the "C" Error is gone, but the repeater error remains.

    • Thanks 1
  3. I have a problem with the latest version.

    When I use the shortcuts with external links, I always get the following error:

    Quote
    PHP Notice: Trying to get property 'url' of non-object in ...\site\modules\Dashboard\DashboardPanelShortcuts.module:226
    

    I think the check doesn't fit that way (line 226):
    if (!$page || !$page->url) {

    Because if "$page" does not exist, then "$page->url" will cause an error.

    Also added an issue on github ?https://github.com/daun/processwire-dashboard/issues/41

     

    /edit: the new version 1.5.2 fixed this bug ? thanks!

    • Like 1
  4. 6 hours ago, bernhard said:

    Hey @Pavel Tajduš thx for the report. I guess it's a windows issue. It should just convert those paths to urls automatically.  @zoeck has no problems on windows I think?

    I had problems with the latest RockFrontend version also under laragon/Windows. But could not analyze it yet exactly what it is (Corona, vacation, etc. ? ).

    But the topic paths has always been a problem under Windows ? @bernhard

    But on my Mac it works without problems under DDEV.

  5. Do you just mean a link to a social media account?
    Or do you want to link to a related post from a social media platform?

    If it should be only a link to the account, you can simply use such icons: https://www.w3schools.com/howto/howto_css_social_media_buttons.asp
    And then you create a URL field ("InputfieldURL") in Processwire and put your social media link there.
    (Can also be an extra social media page that only contains the links)

×
×
  • Create New...