Forums / Cotonti / Extensions / New Pages by Path plugin support

minoation
#1 2009-08-19 11:57
What example code would I put if I wanted articles?

Added 23 hours 40 minutes later:

Would I put like c=articles?
Awesome!
This post was edited by Kilandor (2009-09-05 08:56, 14 years ago)
esclkm
#2 2009-08-20 12:12
I don't recommend to use this plugin - it has troubles with new news plugin.
Also news news plugin has full functionality, which has newspagesbypath
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
minoation
#3 2009-08-20 21:40
Ammm okay.But what would be an example of a code I put there?
Awesome!
esclkm
#4 2009-08-20 21:51
Please see settings page of the plugin
for example: you write next cats - news, articles, links, system
In index page^
main (first) news category is news - tag will be {INDEX_NEWS}
for secondary cant indexes will be:
{INDEX_NEWS_ARTICLES}, {INDEX_NEWS_LINKS}, {INDEX_NEWS_SYSTEM}

every additional cat can have - its own template
main news category 'news.tpl'
other categories: 'news.articles.tpl', 'news.links,tpl' etc.

If in skin there are not template for secondary cats, news plugin will use skin for main cat .
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
minoation
#5 2009-08-20 21:59
Do I have put {INDEX_NEWS} before I put the third code in every one?
Awesome!
esclkm
#6 2009-08-20 22:09
I misunderstand you
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
minoation
#7 2009-08-20 22:15
Do I have to put {INDEX_NEWS_ before I put ARTICLES}?
Awesome!
esclkm
#8 2009-08-20 22:20
Yes... All secondary cats will use {INDEX_NEWS_[CAPITALIZED_CAT_CODE]}
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
minoation
#9 2009-08-20 22:53
Okay thank you.
Awesome!
Ross
#10 2009-09-04 20:18
# esclkm : Please see settings page of the plugin
for example: you write next cats - news, articles, links, system
In index page^
main (first) news category is news - tag will be {INDEX_NEWS}
for secondary cant indexes will be:
{INDEX_NEWS_ARTICLES}, {INDEX_NEWS_LINKS}, {INDEX_NEWS_SYSTEM}

every additional cat can have - its own template
main news category 'news.tpl'
other categories: 'news.articles.tpl', 'news.links,tpl' etc.

If in skin there are not template for secondary cats, news plugin will use skin for main cat .


This is a great feature. Will it work in the footer.tpl too?
esclkm
#11 2009-09-05 03:27
no... but its easy to make plugin 5-10 strings of code)))
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
Ross
#12 2009-09-05 05:14
# esclkm : no... but its easy to make plugin 5-10 strings of code)))

You are right. I wish I knew how to code :D
minoation
#13 2009-09-05 07:57
I put these in my plugin configuration:{INDEX_NEWS_ARTICLES}, {INDEX_NEWS_LINKS}, {INDEX_NEWS_SYSTEM}
they are still not in my index.
Awesome!
Kilandor
#14 2009-09-05 08:54
You don't put those in plugin config, you put them in index.tpl
minoation
#15 2009-10-11 21:33
# Ross : You are right. I wish I knew how to code :D
Yeah just put hyperlinks in the footer.tpl
Awesome!