Admin part only
News Categories Management
- added news categories administration, copied from newspost.php
Changes in edit mode: - removed second tab, all fields are now on one page
Changes in list mode:
- added Quick View of category
- admin fully working
- newscategory.php is just customized copy of news.php
- newscategories_class.php is just customized copy of news_handler.php (category part)
How to use it:
- install
- there are 2 ways in admin area (news admin area and plugin admin area)
- use plugin category menu (newsext/newsext_categories) instead core news/news_categories
Displaying on news view page:
-
option - change {NEWSCATEGORY} to {NEWSCATEGORIES} in news_view_template.php in your theme
-
option - copy function sc_newscategories() from plugin e_shortcode to your theme_shortcodes, rename it as sc_newscategory(). This way you don't need to change news view template.
Category URL
It is hardcoded for now:
- alias (default news-category) - don't use slash or just news
- Category ID
- Category SEF
- ".html " - Google just likes html pages and it solves issue with last slash
- Hide delete button from record options (deleting is not possible, but button is displayed)
- Add event on delete news (delete related record or add check for orphans)
- Not allow action create, removing from menu is not enough (core stuff)
- Batch support (what is beforeUpdate alternative for batch)
- Add event on create news (create related record)
- cleaning core code (there is a lot of reductant code)
- solve canonical URLs, Routes
- add e_metatag support
- remove hardcoded markup
- add preferences
- add plugin own categories list - plugin frontpage
- fix frontend plugin page
- related news ?