Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
|ci| |pypi| |status|
.. |ci| image:: https://travis-ci.org/satyrius/cmsplugin-articles.svg?branch=master :target: https://travis-ci.org/satyrius/cmsplugin-articles
.. |pypi| image:: https://pypip.in/version/cmsplugin-articles/badge.png?text=pypi :target: https://pypi.python.org/pypi/cmsplugin-articles/ :alt: Latest Version
.. |status| image:: https://pypip.in/status/cmsplugin-articles/badge.png :target: https://pypi.python.org/pypi/cmsplugin-articles/ :alt: Development Status
It is a simple plugin that allows you to organize you article pages in a manner of a blog. It does not break original page publishing workflow, but has some tricks to gather articles into a blog app.
It works fine and tested under Python 2.7
. The following libraries are required
Django
>= 1.5django-cms
>= 3.0 (we recommend to use Django CMS 3.0 and higher, contact us if you need prior CMS versions supports and have some issues)::
$ pip install cmsplugin-articles
Configure installed apps in your settings.py
::
INSTALLED_APPS = [ # django contrib and django cms apps 'cmsplugin_articles', ]
Migrate your database ::
django-admin.py migrate cmsplugin_articles
ArticlesPlugin
to the page to you content placeholder, this will show a list of published articles;You can customize this plugin by overriding the following templates
cms/plugins/articles.html
(plugin template layout)cms/plugins/article_teaser.html
(if you want to change teaser template, e.g. use easy-thumbnails
for teaser images)cms/plugins/articles_pagination.html
(pagination templates, if you want to add extra css classes or so)The plugin has a number of temlatetags <https://github.com/satyrius/cmsplugin-articles/blob/master/cmsplugin_articles/templatetags/article_tags.py>
_ used for teaser template, you should load them in your template
with
::
{% load article_tags %}
published_at, teaser_title and teaser_image
Filters which get article ``Page`` instance as an argument
- ``published_at`` return ``datetime`` object for publication time
- ``teaser_title`` return teaser title as a string
- ``teaser_image`` return ``TeaserExtension.image`` if exists
teaser_text
~~~~~~~~~~~
A ``simple_tag`` which returns a teaser text. It accepts two parameters
- ``article_page`` the page that teaser belongs to
- ``default_from`` the placeholder name. You can pass it if you want generate teasers automaticaly
exact_columns
~~~~~~~~~~~~~
You can use this template tag to split articles list into a column layout, e.g
::
<div class="row">
{% exact_columns articles 3 "vertical" as columns %}
{% for column in columns %}
<div class="col_6">
{% for article in column %}
{% include "cms/plugins/article_teaser.html" %}
{% endfor %}
</div>
{% endfor %}
</div>
Roadmap
=======
- Python 3 support
Changelog
=========
The changelog can be found at `repo's release notes <https://github.com/satyrius/cmsplugin-articles/releases>`_
Contributing
============
Fork the repo, create a feature branch then send me pull request. Feel free to create new issues or contact me via email.
FAQs
Django CMS articles management plugin
We found that cmsplugin-articles demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.