MrOxiMoron / cmsplugin-news
A news application which is pluggable into django-cms. Just so you know, I've been kinda busy with other programming tasks which didn't involve django cms. This I don't know if this still work with the latest version or not.
Clone this repository (size: 34.0 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/MrOxiMoron/cmsplugin-news/
| commit 15: | a3ee8e483b2f |
| parent 14: | da91ba23dfca |
| branch: | default |
Updated template
Updated readme
Updated to version 0.3b
Tested with the 2.0.0 release of django-cms
Changed (Δ199 bytes):
raw changeset »
README.txt (3 lines added, 3 lines removed)
cmsplugin_news/templates/cmsplugin_news/news_archive_year.html (6 lines added, 5 lines removed)
setup.py (2 lines added, 2 lines removed)
| … | … | @@ -5,12 +5,12 @@ Description: A news plugin for django-cm |
5 |
5 |
Download: http://bitbucket.org/MrOxiMoron/cmsplugin-news/ |
6 |
6 |
|
7 |
7 |
Requirements: |
8 |
- django-cms-2.0 |
|
8 |
- django-cms-2.0.0 final |
|
9 |
9 |
- django: 1.1.1 |
10 |
10 |
+ requirements for django-cms-2.0 |
11 |
11 |
|
12 |
12 |
Last tested with: |
13 |
- django-cms-2.0 |
|
13 |
- django-cms-2.0.0 final |
|
14 |
14 |
- django: 1.1.1 |
15 |
15 |
|
16 |
16 |
Setup |
| … | … | @@ -20,7 +20,7 @@ Setup |
20 |
20 |
- run 'python manage.py syncdb' |
21 |
21 |
- Add the cmsplugin_news.urls to the CMS_APPLICATIONS_URLS setting |
22 |
22 |
- Add the cmsplugin_news.navigation.get_nodes to the CMS_NAVIGATION_EXTENDERS setting |
23 |
- Create a page |
|
23 |
- Create a page in cms and in the 'advanced settings' section of the admin for that page, for 'Navigation extenders' select 'news navigation' and for 'application' select 'news' (Restart of the server required due to caching!) |
|
24 |
24 |
- Create the propper templates for your site, the ones included with the app are VERY basic |
25 |
25 |
|
26 |
26 |
Todo and Tomaybes: |
Up to file-list cmsplugin_news/templates/cmsplugin_news/news_archive_year.html:
1 |
<h1>News months</h1> |
|
2 |
||
1 |
<h1>News for {{ year }}</h1> |
|
3 |
2 |
<ul> |
4 |
{% for month in datelist %} |
|
5 |
<li>{{ month }}</li> |
|
6 |
|
|
3 |
{% for date in date_list %} |
|
4 |
<li><a href="{% url news_archive_month year=year month=date|date:'m' %}">{{ date|date:"F" }}</a></li> |
|
5 |
{% empty %} |
|
6 |
<li>No news for this year</li> |
|
7 |
{% endfor %} |
|
7 |
8 |
</ul> |
| … | … | @@ -2,14 +2,14 @@ from setuptools import setup, find_packa |
2 |
2 |
|
3 |
3 |
setup( |
4 |
4 |
name='cmsplugin-news', |
5 |
version='0. |
|
5 |
version='0.3b', |
|
6 |
6 |
description='This is a news app/plugin for the django-cms 2', |
7 |
7 |
author='Harro van der Klauw', |
8 |
8 |
author_email='hvdklauw@gmail.com', |
9 |
9 |
url='http://bitbucket.org/MrOxiMoron/cmsplugin-news/', |
10 |
10 |
packages=find_packages(), |
11 |
11 |
classifiers=[ |
12 |
'Development Status :: |
|
12 |
'Development Status :: 4 - Beta', |
|
13 |
13 |
'Environment :: Web Environment', |
14 |
14 |
'Intended Audience :: Developers', |
15 |
15 |
'License :: OSI Approved :: BSD License', |
