matt-j-m / grav-plugin-aura-authors

The Aura Authors Plugin for Grav CMS enables you to store author bios in a centrally managed repository and have them displayed across various pages of your site.
MIT License
6 stars 3 forks source link

Author List Not Populating In Aura Tab #7

Open berensn opened 2 years ago

berensn commented 2 years ago

Pretty much what it says on the tin. I added an author in the plugin but the Aura tab isn't populating with the author name. I logged out, logged back in, cleared cache, and it still isn't populating. I suspect it should be possible to use frontmatter to add in the author but I have no idea what the syntax for that would be

berensn commented 2 years ago

You can add' author:{author_slug}' in the frontmatter under aura I also edited the twig template, adding ' | raw' to make it output the actual img tag instead of just text

bskscmn commented 2 years ago

Author list is not populating in the editor. Even if I write author:{author_slug} in the page frontmatter, each time I edit the page it removes the author info. How can we solve the issue?

bskscmn commented 2 years ago

It looks like there is no support for the plugin anymore. So we're finding our own solutions. :) I added this line in the function getAuthors in aura-authors.php file and it did the trick. self::$authors = Grav::instance()['config']->get('plugins.aura-authors.authors');

Marouk80 commented 1 year ago

@bskscmn Where and how did you add this code? I'm either getting an error, or it still doesn't let me choose the author.

bjazmoore commented 1 year ago

It looks like there is no support for the plugin anymore. So we're finding our own solutions. :) I added this line in the function getAuthors in aura-authors.php file and it did the trick. self::$authors = Grav::instance()['config']->get('plugins.aura-authors.authors');

That line causes my installation of GRAV to crash. My error reads: "0 - Class "Grav\Plugin\Grav" not found" A namespace issue or class inheritance. I am just saying words - I don't know what it means... Anyone else have any ideas?

alexukua commented 4 months ago

If you got error "0 - Class "Grav\Plugin\Grav" Import namespace use Grav\Common\Grav;

Marouk80 commented 4 months ago

Thank you!

On Mon, Jun 3, 2024 at 9:28 AM alexukua @.***> wrote:

If you got error "0 - Class "Grav\Plugin\Grav" Import namespace use Grav\Common\Grav;

— Reply to this email directly, view it on GitHub https://github.com/matt-j-m/grav-plugin-aura-authors/issues/7#issuecomment-2144468137, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQSRQ3NTHBTNXBBFQ6SEJCDZFQLIXAVCNFSM5NB3MNE2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJUGQ2DMOBRGM3Q . You are receiving this because you commented.Message ID: @.***>

-- ------------------------------------------------------------ Maja Miljković @.*** +381 63 7563 980