{TEASER_EX} Replacement tag v1.90 - 10.1.2007
Teaser_Ex 1.7
New Version of Teaser_Ex is out:
Version 1.7:
Whats new:
+ added option to display the articles in horizontal or vertical direction
+ option to hide the pagination
Details:
http://www.phpwcms.de/forum/viewtopic.php?t=7503
Version 1.7:
Whats new:
+ added option to display the articles in horizontal or vertical direction
+ option to hide the pagination
Details:
http://www.phpwcms.de/forum/viewtopic.php?t=7503
Erich
Hi
Erich - thank you
and please remove the Spaces and Linefeeds after the closing php-Tag at the end. This generates a empty Line befor the <! DOC-Type ....> Line and this causes a Validation Error and if you use a Header like I do
IE shows the Site as XML-Code
Erich - thank you
and please remove the Spaces and Linefeeds after the closing php-Tag at the end. This generates a empty Line befor the <! DOC-Type ....> Line and this causes a Validation Error and if you use a Header like I do
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
also: ich habe folgendes festgestellt: teaser_ex scheint zu funktionieren, wenn ich den Artikel 1 Level unter den teaser stelle (warum auch immer - steht doch in einer Datenbank...). sobald der Artikel einen Level tiefer steht - kein Resultat..
Hier das Beispiel: {TEASER_EX:einsaetze|5;abeinsaetze|5:5:default|ASC:1:Seite | von:2::default:0:0::0:vert}
wobei einsaetze und abeinsaetze noch 4 Sublevel haben!
das ganze ist bei mir lokal installiert (kann ich schneller testen). Der code scheint auch keinen Fehler zu haben...bin etwas ratlos
....aber als Programmierer (COBOL... ) lässt mir das keine Ruhe - und siehe da...gefunden!
Ist auch KEIN Fehler - sondern liegt an der Datenbank von PHPWCMS...
Also:
1. Es wird im Select mit "IN" gesucht...besser wäre mit LIKE, denn dann kann man mehrere Level gleich benennen und durch den automatischen Anhang macht das PHPWCMS automatisch!
2. Jede Kategorie bekommt eine Nummer - der jeweilige Artikel steht nun in Verbindung mit dieser Nummer, d.h. es können NIE Artikel aus anderen Kategorien (Level spielt keine Rolle!) auftauchen.
Ich habe jetzt FÜR MICH folgende Änderungen am Code gemacht:
A: $sql = "SELECT acat_id, acat_name FROM ".DB_PREPEND."phpwcms_articlecat WHERE acat_alias LIKE 'text%';"; - ist natürlich nur zum Testen gedacht!!!!
B: Die AliasID in der Tabelle Article habe ich auf die Kategorie-ID gesetzt und im code die Änderung gemacht:
$sql .= " WHERE article_aliasid = '".$alias[0]['acat_id']."'";
Und dann gehts...
Hier das Beispiel: {TEASER_EX:einsaetze|5;abeinsaetze|5:5:default|ASC:1:Seite | von:2::default:0:0::0:vert}
wobei einsaetze und abeinsaetze noch 4 Sublevel haben!
das ganze ist bei mir lokal installiert (kann ich schneller testen). Der code scheint auch keinen Fehler zu haben...bin etwas ratlos
....aber als Programmierer (COBOL... ) lässt mir das keine Ruhe - und siehe da...gefunden!
Ist auch KEIN Fehler - sondern liegt an der Datenbank von PHPWCMS...
Also:
1. Es wird im Select mit "IN" gesucht...besser wäre mit LIKE, denn dann kann man mehrere Level gleich benennen und durch den automatischen Anhang macht das PHPWCMS automatisch!
2. Jede Kategorie bekommt eine Nummer - der jeweilige Artikel steht nun in Verbindung mit dieser Nummer, d.h. es können NIE Artikel aus anderen Kategorien (Level spielt keine Rolle!) auftauchen.
Ich habe jetzt FÜR MICH folgende Änderungen am Code gemacht:
A: $sql = "SELECT acat_id, acat_name FROM ".DB_PREPEND."phpwcms_articlecat WHERE acat_alias LIKE 'text%';"; - ist natürlich nur zum Testen gedacht!!!!
B: Die AliasID in der Tabelle Article habe ich auf die Kategorie-ID gesetzt und im code die Änderung gemacht:
$sql .= " WHERE article_aliasid = '".$alias[0]['acat_id']."'";
Und dann gehts...
teaser_ex - -date article, etc.
HI,
i installed the great teaser-ex reptag. It works fine, but now I have one question.
Is it possible, that articles could be showed depending the date. I mean, for example, all the articles from june, out of different categorys?
thanks for your answers.
Jenne
Hallo,
habe den reptag "Teaser-Ex" installiert - funzt sowiet ganz gut. Ist es möglich, daß er Artikel, abhängig vom Datum, aus verschiedenen KAtegorien, anzeigt?
Thx
Jenne
i installed the great teaser-ex reptag. It works fine, but now I have one question.
Is it possible, that articles could be showed depending the date. I mean, for example, all the articles from june, out of different categorys?
thanks for your answers.
Jenne
Hallo,
habe den reptag "Teaser-Ex" installiert - funzt sowiet ganz gut. Ist es möglich, daß er Artikel, abhängig vom Datum, aus verschiedenen KAtegorien, anzeigt?
Thx
Jenne
Re: teaser_ex - -date article, etc.
Jenne20 wrote:HI,
i installed the great teaser-ex reptag. It works fine, but now I have one question.
Is it possible, that articles could be showed depending the date. I mean, for example, all the articles from june, out of different categorys?
thanks for your answers.
Jenne
Not at the moment, but with the next version....
Erich
Re: teaser_ex - -date article, etc.
Habs grad selbst ausprobiert - du kannst bei jedem Artikel angeben "Anzeige von ..... bis". Damit werden Artikel nur in einem gewissen Zeitrahmen angezeigt. Wenn nun ein Artikel aus dem Zeitrahmen fällt, wird er in Teaser_ex auch nicht mehr dargestellt. Vielleicht hilft dir das?Jenne20 wrote:Hallo,
habe den reptag "Teaser-Ex" installiert - funzt sowiet ganz gut. Ist es möglich, daß er Artikel, abhängig vom Datum, aus verschiedenen KAtegorien, anzeigt? Thx
Jenne
You can set a timeframe for every article (show from ..... to). Then the article is shown by teaser_ex only when in timeframe. If the article is out of the dates you defined, teaser_ex wont show the article anymore... maybe this helps?
Greetz, tinoo
Greetings tinoo !
NICE idea for consideration - that would be "handy" in some circumstances!
BUT, I think maybe Jenne20 was hoping for a way to bring together, in one place, all content from different categories that were made between 1 June and 30 June (for example). Kind of like a WordPress blog separates each month's postings into archives that can be browsed by choosing which month!
@Jenne20
Is that close to what you mean ?
NICE idea for consideration - that would be "handy" in some circumstances!
BUT, I think maybe Jenne20 was hoping for a way to bring together, in one place, all content from different categories that were made between 1 June and 30 June (for example). Kind of like a WordPress blog separates each month's postings into archives that can be browsed by choosing which month!
@Jenne20
Is that close to what you mean ?
@DeXXus
Hm, maybe you're right... But makes that sense? Teaser_ex would become a blog-mod, and for that we have already a reptag...
It could be usefull to sort the article by a date in the articles subtitle, for example for an annual program of a soccer club:
Example (Article title / subtitle):
New Years Party / 01.01.2007
Bowling-Night / 18.02.2007
Match us vs. them / 13.03.2007
World Championships Togo / 18.04.2007
Then you could use teaser_ex for a box called "actual program". If we are
in january, teaser_ex shows all events for january. if we are in february teaser_ex show all event in february and so on... Old events and events in future are still accessible through the "All"-button and their details/descriptions/informations can be red...
Of course this can also be done with the calendar-hack... But teaser_ex would be much easier to install and handle...
Just another idea...
Hm, maybe you're right... But makes that sense? Teaser_ex would become a blog-mod, and for that we have already a reptag...
It could be usefull to sort the article by a date in the articles subtitle, for example for an annual program of a soccer club:
Example (Article title / subtitle):
New Years Party / 01.01.2007
Bowling-Night / 18.02.2007
Match us vs. them / 13.03.2007
World Championships Togo / 18.04.2007
Then you could use teaser_ex for a box called "actual program". If we are
in january, teaser_ex shows all events for january. if we are in february teaser_ex show all event in february and so on... Old events and events in future are still accessible through the "All"-button and their details/descriptions/informations can be red...
Of course this can also be done with the calendar-hack... But teaser_ex would be much easier to install and handle...
Just another idea...
Greetz, tinoo
Sample Template:fopulu wrote:"Categoryname - Show the Categoryname"
What does this fiel mean in the Generator?
I saw, that it switches between 0 and 1 after the DESC or ASC field. But nothing changes in my frontend...
Can somebody explain me this field please?
Code: Select all
<div style="margin-bottom:10px;">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td>
[CATNAME]<b>{CATNAME}</b> -><br>[/CATNAME]
{DATE:d.m.Y:DE}<br>
[TITLE]<a href="{ARTICLELINK}">{TITLE}</a>[/TITLE]
[SUB]<h3 style="margin:0 0 5px 0;">{SUB}</h3>[/SUB]
</td>
</tr>
<tr>
<td valign="top">
<div style="float:left; margin-right:6px;">
[IMAGE]<a href="{ARTICLELINK}">{IMAGE}</a>[/IMAGE]
[CAPTION]<div align="center">{CAPTION}</div>[/CAPTION]
</div>
[SUMMARY]{SUMMARY}[/SUMMARY]<br>
[MORE]<a href="{ARTICLELINK}">more...</a>[/MORE]
</td>
</tr>
</table>
</div>
insert this in your *.tmpl-file
after that the "Show the Categoryname"-Switch will/should work as expected
Erich