Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Author Blog Articles' plugin template missing the author name (username). #679

Open
srinivas-kini opened this issue Jun 17, 2021 · 1 comment

Comments

@srinivas-kini
Copy link

Description

  • On selecting the 'Author Blog Articles' plugin and adding it to the CMS Page, it simply shows 'Articles By' instead of 'Articles By <author_name>'

Versions

djangocms-blog==1.2.3

Expected behaviour

  • It should display the author's name after 'Articles By'.

Actual behaviour

  • It does not display the author's name after 'Articles By'.

Additional information

image

settings.py

PARLER_LANGUAGES = {
    1: (
        {'code': 'en-us'},
    ),
    'default': {
        'fallbacks': ['en-us'],
    }
}

BLOG_AUTHOR_DEFAULT = True
BLOG_AUTO_NAMESPACE = 'Blog'
BLOG_CATEGORY_PLUGIN_NAME = 'Categories'
BLOG_DEFAULT_OBJECT_NAME = 'Article'

META_USE_TWITTER_PROPERTIES = True
META_USE_GOOGLEPLUS_PROPERTIES = True  # django-meta 1.x+
META_USE_SCHEMAORG_PROPERTIES = True  # django-meta 2.x+


@protoroto
Copy link
Member

@srinivas-kini The template for that plugin outputs author.get_full_name, that is user first_name + user second_name fields. So, if your user doesn not have those fields filled, it probably doesn't show anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants