-
- 144 Posts
hi
i want to add to my template a news block...but it’s not for a blog just for a classic website...so i dont understand how it works whith ditto because i havent any articles,only contet pages and news separately of content...in a page "news" for example...
i think many of yours have done this in past ...so i’ll very glad to receive yous tips
AipHesBlOg
Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
---------------------------------------------------------------
French webdesigner
-
- 144 Posts
AipHesBlOg
Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
---------------------------------------------------------------
French webdesigner
-
- 144 Posts
questions after applying what is explained below :
- how to parameter the number of lines of the news display in the ditto list ?
- how to hide the autor or the date in the ditto list ?
AipHesBlOg
Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
---------------------------------------------------------------
French webdesigner
-
- 144 Posts
- how to parameter the number of lines of the news display in the ditto list ?
The number of returned items &display=`10` change 10 to the number of news items you want o display
we dont understand each other...i want to know how to display an extract of each news to give an overview to the customer...like
Title of the news - date
Extract
Link
i go to do what you tell for the other part of my questions...
just a problem; i had put a block in my right sidebar but it display news only when i’m on the news’page...not whan i’m on another...
code like :
<div id="actus">
[[Ditto?depth=`1` &display=`3` &sortBy=`editedon`&depth=`4`&noResults=`Pas d'actualités récentes`]]</div>
</div>
AipHesBlOg
Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
---------------------------------------------------------------
French webdesigner
-
- 144 Posts
ok it works great
another problem in this code(in actus page not in sidebar):
[[Ditto?depth=`1` &display=`3` &sortBy=`editedon`&depth=`4`&filter=`author,2`&noResults=`Pas d'actualités récentes`]]
the parameter
&noResults=`Pas d'actualités récentes`
isnt display on globality...the screen show only "Pas d’actua"...whats wrong ?
AipHesBlOg
Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
---------------------------------------------------------------
French webdesigner
-
- 144 Posts
yes an accent problem...strange because in the sidebar it works good and its not html coded...
how to resolve this ? can i html code accent in the snippet insertion ?
for my filter problem ,do you think the best way to dont display author is to do a chunk ? like i done for the sidebar ?
AipHesBlOg
Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
---------------------------------------------------------------
French webdesigner