Hi,
I’m playing around with IndieConnector, to use it to post to Mastodon. I’m using Kirby 4.5, the ZOON theme, the latest version of IndieConnector and on a local installation.
I have two questions:
1. How can I get IndieConnector to just grab the first few hundred characters from my post?
I tried using 'mauricerenck.indieConnector.post.textfields' => ['description']
, but I think because in ZOON, the description field in the yml
is extends: fields/writer
, what shows up in my Mastodon post is <p>My description text</p>
, so that didn’t work.
The content in my article.txt
looks like the following:
Layout: [{"attrs":{"background":[],"overlay":0.5,"blur":"false","panel":"","autogrid":"false","class":""},"columns":[{"blocks":[{"content":{"text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.","class":""},"id":"7daed9a0-dae6-4e03-9801-42955d55fff2","isHidden":false,"type":"markdown"}],"id":"e2f9635b-f8a0-44e5-8b45-53dd37c87d28","width":"1/1"}],"id":"4b2fc629-482a-44bc-ac65-1fd08b46ac25"}]
If I use'mauricerenck.indieConnector.post.textfields' => ['layout'],
, I get all of the above in my Mastodon post.
However, if I use 'mauricerenck.indieConnector.post.textfields' => ['content']
, or 'mauricerenck.indieConnector.post.textfields' => ['text'],
, I just get the post title instead.
2. Does posting work without panel enabled on remote server?
I noticed that IndieConnector posts from localhost, however that means that my post will be posted to Mastodon before I manage to upload it via FTP. Does using IndieConnector mean I have to enable the Panel on my remote server? I was originally going to work without it.
Thank you for any advice!