Форуми / Cotonti / Support / How to add articles page to homepage?

michael-chung
#1 19.11.2011 12:19

Hi all members and staff,

First of all, i want to congrats all members and staff for working and making something useful in webdeveloping.

 

I have one question: At index.tpl we add {INDEX_NEWS} to add the description of news category.

I want to add description of articles and other categorys created in administration panel. So, my question is what's the tag: {INDEX.....} so, when i add that tag at index.tpl i can show the articles, or another category that is already created in admin panel.

 

Thank you for your consideration,

 

regards,

Michael

esclkm
#2 19.11.2011 12:40

genoa or siena?

 

in siena you will see - in admin area - configuration - news

littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
michael-chung
#3 19.11.2011 13:19
Main (first) news category is displayed on main page using {INDEX_NEWS} tag in index.tpl.
Other news categories are displayed on main page using {INDEX_NEWS_CATEGORYCODE} tag in index.tpl. Use news.categorycode.tpl file(s) to customize appearance of each news category.
 
This is in  administration panel.So, i tryed already like that {INDEX_NEWS_CATEGORYCODE} but still doesn't show nothing.
esclkm
#4 19.11.2011 13:31

do you use cotonti genoa???

 

littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
michael-chung
#5 19.11.2011 13:35

I use cotonti version 0.6.16 genoa.I can find the tags and than fix it but it's waste of time to check all files for that, cuz tags are in seperated files.So, if u can give it to me how to show articles or another category created in admin panel i will appreciate it deeply.

Added 20 minutes later:

Any help about that...?


Відредаговано: michael-chung (19.11.2011 13:59, 13 років тому)
tensh
#6 19.11.2011 15:37

change "categorycode" to the code of your category.

if you have a category articles (list.php?c=articles), then it would be:

{INDEX_NEWS_ARTICLES}, news.articles.tpl

Don't forget to add all needed category codes in the plugin settings, comma separated

Does it work now?

esclkm
#7 19.11.2011 15:38

insert categories like in config:

news,articles,links

 

use tags: {INDEX_NEWS}, {INDEX_NEWS_ARTICLES}, {INDEX_NEWS_LINKS}

littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
michael-chung
#8 20.11.2011 19:31

Thanks for replying and traying to help me.

I already have tryed that,  but doesn't work.You can try guys if u have any page of cotonti in that version, is not working.Sayind in different words, this is not the right tag for articles or fo added category in administration panel.

I hope one of administrator will reply here and tell us about the tag which they have used for articles and what code will be when we add new category.

 

Thanks

tensh
#9 20.11.2011 22:15

Show us your index.tpl code :)

You can also think about replacing only the news plugin from plugins folder with the news plugin from cotonti Genoa 0.6.20.

Anyways, I recommend updating to genoa 0.6.20, it's very, very good!

michael-chung
#10 21.11.2011 08:06

Guys please first try than post a comment.I upgraded in 0.6.20 still doesn't work.

Here is the index.tpl code:

<!-- BEGIN: MAIN -->

<div id="lSide">

    {INDEX_NEWS}
    <div class="lboxHD">{PHP.skinlang.index.Newinforums}:</div>
    <div class="lboxBody">{PLUGIN_LATESTTOPICS}</div>
    
</div>
<div id="rSide">

    <div class="rboxHD">{PHP.L.Tags}:</div>
    <div class="rboxBody">
        {INDEX_TAG_CLOUD}
        {INDEX_TAG_CLOUD_ALL_LINK}
    </div>
    
    <div class="rboxHD">{PHP.L.Polls}:</div>
    <div class="rboxBody">{INDEX_NEWS_ARTICLES}</div>
    
    <div class="rboxHD">{PHP.skinlang.index.Recentadditions}:</div>
    <div class="rboxBody">{PLUGIN_LATESTPAGES}</div>
    
    <div class="rboxHD">{PHP.skinlang.index.Online}:</div>
    <div class="rboxBody"><a href="plug.php?e=whosonline">{PHP.out.whosonline}</a> :<br />{PHP.out.whosonline_reg_list}</div>
</div>

<!-- END: MAIN -->

 

In administration panel to category is regular one, cuz i just installed the new version, but still doesn work and didnt show in this case articles that are already created.Here i puted the tag to polls content, but also i have tryed in other contents but still not working.Thanks

tensh
#11 21.11.2011 12:34

And did you add articles to the plugins settings as well? 

michael-chung
#12 21.11.2011 20:49

thanks for help guys.

I fixed the problem, creating a new database.Now it's works.

Thank you, but i will still discussing this problem, how could be fixed without database, because maybe other members will have same problem.

Anyway, thank you all here for support