Articlelisting without menu

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
tigger
Posts: 25
Joined: Thu 3. Mar 2005, 11:05

Articlelisting without menu

Post by tigger »

Hi all.

Ich want to make a news-system with phpwcms. My Problem is: When I create more than one article phpwcms creates links with the article-name and links it to the content.
What I want is: No Link, Just the Article-Name and under it the content text. I tried to edit the template file, but didnt know what replacement tag to use for the article-content.
Hope anyone can help.

mfg
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi tigger,

have you seen this:
/phpwcms_template/inc_cntpart/articlesummary/list/sample.tmpl

http://www.phpwcms-docu.de/creating_articles.phtml
docu wrote:template article listing / display full article (optional):
Here you can choose a template for article and summary. Choose for a test the sample.tmpl in the dropdown menues. You will find the template for article listing in /phpwcms_template/inc_cntpart/articlesummary/list and for the full article /phpwcms_template/inc_cntpart/articlesummary/article.
regards Knut :D
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
tigger
Posts: 25
Joined: Thu 3. Mar 2005, 11:05

Post by tigger »

Looks like http://wcms.reggit.de/index.php?id=10,0,0,1,0,0
Should look like http://www.sgm-moosburg.de/volleyball/ this

if someone doesnt understand my bad english ;)

mfg
tigger
Posts: 25
Joined: Thu 3. Mar 2005, 11:05

Post by tigger »

Yes i saw the template, but as i wrote above i dont know the replacement tag for the content of the article.
TITLE = article title
SUB = article subtitle
SUMMARY = article summary text
IMAGE = summary image (only the <img src="..."> tag)
ZOOMIMAGE = if the image is click-zoomable (<a href...><img...></a>)
CAPTION = summary image caption
ARTICLELINK = url to full article
MORE = the "more..." text/image like defined in template_defaults
BEFORE = show before listing entry
AFTER = show after listing entry
SPACE = show this between listings
DATE = show article date {DATE:FORMAT:LANG} or {DATE:FORMAT}
EDITOR = name of editor
ARTICLEID = ID of list entry

the template tells me that i have these options, that isnt what i need :(
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Have a look into the file config/phpwcms/conf.template_default.php
section: // article listing with summary

regards Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
tigger
Posts: 25
Joined: Thu 3. Mar 2005, 11:05

Post by tigger »

im sorry but dont get it. In my oppinion the config file doesnt really help me Oo
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Ich verstehe dein Problem nicht so ganz.
Die z.Bsp. sample.tmpl beherbergt doch simples HTML mit den entsprechenden Platzhaltern.
Daraus läßt sich doch alles mögliche bauen.

Was verstehst du denn nicht?

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
tigger
Posts: 25
Joined: Thu 3. Mar 2005, 11:05

Post by tigger »

Deutsch, sehr gut ;)

Das problem ist dass die template file nur den header editiert. Ich will aber den content part editieren.
Ein beispiel:
<div>
[TITLE]<h1 style="margin:0 0 5px 0;">{TITLE}</h1>[/TITLE]
[SUB]<h3 style="margin:0 0 5px 0;">{SUB}</h3>[/SUB]
<p style="margin:0">[IMAGE]<span style="float:left;margin:2px 5px 8px 0;">{IMAGE}[CAPTION]<br>{SPACER:1x3}<br>{CAPTION}[/CAPTION]</span> [/IMAGE]
<strong>{DATE:Y-m-d:EN}</strong>{SUMMARY}</p>
</div>
<!--
HIER steht der Inhalt
-->
<!--
Hier soll dann zB nen Strich hin damit man sieht, dass die nächste news anfängt
-->

Und nun hab ich das Problem dass ich nicht weiss wie ich den Strich in das Template einfüg, da mir die variable für den content fehlt.
So da ich im erklären extrem schlecht bin noch ein beispiel wies dann aussehn soll:
http://www.marceau-unlimited.com/phpwcms/

der hat auch jeden artikel untereinander gelistet, und optisch getrennt. ich raff aber bei phpwcms nicht wie ich das mach.
Is klar was ich mein? ansonsten muss ich nochmal ran ;)

mfg
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

<div style="border-bottom: 1px solid #cccccc;">

[TITLE]<h1 style="margin:0 0 5px 0;">{TITLE}</h1>[/TITLE]
[SUB]<h3 style="margin:0 0 5px 0;">{SUB}</h3>[/SUB]
<p style="margin:0">[IMAGE]<span style="float:left;margin:2px 5px 8px 0;">{IMAGE}[CAPTION]<br>{SPACER:1x3}<br>{CAPTION}[/CAPTION]</span> [/IMAGE]
<strong>{DATE:Y-m-d:EN}</strong>{SUMMARY}</p>

</div>

Hast du das mal versucht.... für das listing-Template ?
tigger
Posts: 25
Joined: Thu 3. Mar 2005, 11:05

Post by tigger »

Jain ;) Wenn ich das mach sieht das wie folgt aus:
http://wcms.reggit.de/index.php?id=10,0,0,1,0,0
Soweit, so gut. Wäre jetzt More noch der Inhalt von dem Artikel würde es passen. leider ist es halt da und das stört mich an der ganzen sache.

mfg
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

z.Bsp.: <!--[MORE]<a href="{ARTICLELINK}">{MORE}</a>[/MORE]//-->
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

so wie du dir das denkst, funktioniert das aber eben nicht nicht....
Hier werden auf einer virtuellen Seite nur die Summaries aufgeführt und per more... weitergeleitet.

Oder du schreibst dir ein template "ohne more" und packst den kompletten Inhalt in den Summarybereich. Wenn's nur Text und Bilder sind, geht das auch :idea:


Wenn du mehrere Beiträge komplett in eigenen Kästen untereinander haben möchtest... dann schreib doch einfach mehrere Contentparts.... innerhalb des selben Artikels...

die kannst du doch auch mit HTML-CPs einrahmen und dort den code für die Rahmen eintragen... sieht am Ende genauso aus, wie du's haben willst....

Hast du dir eine Musterseite angelegt kannst du den immer wieder kopieren und nur den Dummyinhalt austauschen :idea:
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

@tigger,

hier ein kleine Hilfe für dich:

Code: Select all

www .mz.ja-nek .de/test2_8_2.phtml
Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
tigger
Posts: 25
Joined: Thu 3. Mar 2005, 11:05

Post by tigger »

Hmm erstmal danke für eure Hilfe.

Warum ich keine News aus mehreren Content Parts haben will ist ganz einfach: Dumme benutzer ;)
Letzten endes sollen viele Benutzer hier news eintragen können und da kann ich nicht anfangen content parts zu kopieren und zu editieren usw. darum wollt ich das halt umgehn indem ich das möglichst einfach gestalt.

Naja gut werd ich dann wohl mit Summary machen müssen :(

mfg
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Naja gut werd ich dann wohl mit Summary machen müssen
Einfacher geht es doch nicht. Du hast Wysiwyg und ein Bild.
Die Ausgabe formatierst du entsprechend.
In der 1.2.7 kannst du auch für die betreffende Ebene die CPs abschalten.
Das Einzige was vielleicht stört, ist das Selektieren des richtigen Templates. Das kann noch nicht autom. voreingestellt werden. Gibt aber glaube ich einen Hack.

Ich weiß immer noch nicht genau, was du dir vorgestellt hast. :?: :?:

Auf der Seite http://www.marceau-unlimited.com/phpwcms/ scheint ein verändertes News-System zu laufen, oder ein umgebautes Gästebuch. Keine Ahnung. Musst du mal den Autor antriggern.

Gruß Knut :D
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply