Skip to content

Commit

Permalink
render_content_placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Oct 6, 2023
1 parent 17a560c commit 594f759
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions djangocms_blog/templatetags/djangocms_blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ def endpoint_url(admin, obj):
register.tag(GetAbsoluteUrl.name, GetAbsoluteUrl)


class RenderNamedPlaceholder(AsTag):
class RenderContentPlaceholder(AsTag):
"""
Render the content of the plugins contained in a placeholder.
The result can be assigned to a variable within the template's context by using the `as` keyword.
It behaves in the same way as the `PageAttribute` class, check its docstring for more details.
"""

name = "render_object_placeholder"
name = "render_content_placeholder"
options = Options(
Argument("placeholder"),
Argument("object"),
Expand Down Expand Up @@ -170,4 +170,5 @@ def get_value_for_context(self, context, **kwargs):
def get_value(self, context, **kwargs):
return self._get_value(context, **kwargs)

register.tag(RenderNamedPlaceholder.name, RenderNamedPlaceholder)

register.tag(RenderContentPlaceholder.name, RenderContentPlaceholder)

0 comments on commit 594f759

Please sign in to comment.