![]() |
![]() |
![]() |
|
|||||||
| User interface Discuss eSyndiCat templates here. All the questions regarding eSyndiCat [FREE] Front end |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Oct 2006
Posts: 52
![]() |
How can I setup that Future and partner links to appear only on homepage?
Thank you. |
|
|
|
|
|
#2 |
|
eSyndiCat Lead Developer
Join Date: Apr 2006
Location: Kyrgyzstan, Bishkek
Posts: 6,596
![]() ![]() ![]() ![]() |
Hello easydesigngroup,
Follow the directives: *** Open your footer.tpl *** *** Find 24 line *** Code:
{if $featured_links && $config.featured_box}
Code:
{if $featured_links && $config.featured_box && $category.id eq 0}
*** Open your index.tpl *** *** Find 130 line *** Code:
{if $partner_links}
Code:
{if $partner_links && $category.id eq 0}
|
|
|
|
|
|
#3 |
|
Join Date: Oct 2006
Posts: 52
![]() |
Sergei, thank you, it was so easy.
![]() I have one more question: I would like to disable the news functionality, and in the place where the news should be I'd like to place a few sentences. But, i don't want the same sentences to be all across my web directory. I would like to have the possibility to ad these sentences related to each category and subcategory. Ex: If Category = 0 show "this text" or... if category =0 and subcat =3 show "other text" You catched the idea? Thank you. |
|
|
|
|
|
#4 |
|
eSyndiCat Lead Developer
Join Date: Apr 2006
Location: Kyrgyzstan, Bishkek
Posts: 6,596
![]() ![]() ![]() ![]() |
easydesigngroup,
I think you could use the description of categories. *** Open your index.tpl *** *** Find this code and delete or comment it *** Code:
{if $category.description}
<div class="box" style="border: none;">{$category.description}</div>
{/if}
*** Open your header.tpl *** *** Find such code *** Code:
{if $news && $config.news}
<div class="box">
<div class="box-caption2-right">
<div class="box-caption2-left">
<div class="box-caption2">{$lang.news}</div>
</div>
</div>
<div class="box-content">
<div class="links">
{foreach from=$news item=one_news}
<div class="news-title">
{if $config.mod_rewrite}
<a href="{$config.base}{$config.dir}news/{convert_str string=$one_news.title}-n{$one_news.id}.html" id="news{$one_news.id}">{$one_news.title}</a></div>
{else}
<a href="{$config.base}{$config.dir}news.php?id={$one_news.id}" id="news{$one_news.id}">{$one_news.title}</a></div>
{/if}
<div class="news-body">{$one_news.body|truncate:$config.news_max:"..."}</div>
<div class="news-date">{$one_news.date|date_format:$config.date_format}</div>
{/foreach}
</div>
</div>
</div>
{/if}
Code:
{if $category.description}
<div class="box">
<div class="box-caption-right">
<div class="box-caption-left">
<div class="box-caption">{$lang.sentences}</div>
</div>
</div>
<div class="box-content">
<div class="links">
<div class="box" style="border: none;">{$category.description}</div>
</div>
</div>
</div>
{/if}
*** Open your English.php *** *** And add this code to language file *** Code:
'sentences' => 'Sentences', |
|
|
|
|
|
#5 |
|
Join Date: Oct 2006
Posts: 52
![]() |
Yes it's working.
You service are awasome. One more thing (the last one) :P Do you have any idea how to create a style which enter a <br> after eacy sentence. Whithout that the description looks too compact and i don't think that I can use html source. Thanks. |
|
|
|
|
|
#6 |
|
eSyndiCat Lead Developer
Join Date: Apr 2006
Location: Kyrgyzstan, Bishkek
Posts: 6,596
![]() ![]() ![]() ![]() |
easydesigngroup,
No, you could use HTML tags in the description. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|