Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-01-13 09:55:02

bashirnoori
Member
From: Afghanistan
Registered: 2012-10-02
Posts: 84

Is there any plugin to show image + text of article

Hello,
I’m designing a news portal website, now i need a plugin or extension to show a specific category/section it’s image+intro text of each article.
Like this:

| pic | Article Title Here
Date: 11 nov 2012
Article intro text goes here…

| pic | Article Title Here
Date: 11 nov 2012
Article intro text goes here…

| pic | Article Title Here
Date: 11 nov 2012
Article intro text goes here…

Last edited by bashirnoori (2013-01-13 09:58:02)

Offline

#2 2013-01-13 10:34:50

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,547
Website GitHub Twitter

Re: Is there any plugin to show image + text of article

Hi Nashir

You dont need plugin for that.

In your page you have to put a code like this (if you filter article using section):

<txp:article_custom section="yoursection" limit="5">
<txp:article_image />
<txp:title />
<txp:posted />
<txp:excerpt />
</txp:article_custom>

Cheers

Offline

#3 2013-01-14 09:28:08

bashirnoori
Member
From: Afghanistan
Registered: 2012-10-02
Posts: 84

Re: Is there any plugin to show image + text of article

Hi Rabah, Thank you for your cooperation :-)
Could you please add the link of each title, that should open the exact article.

One thing else: I’ve installed hak_tinymce editor, and adding images through that ( <img src….> ) I think that’s impossible to display that image ?

Offline

#4 2013-01-14 10:09:40

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,547
Website GitHub Twitter

Re: Is there any plugin to show image + text of article

Hi

here is the code:

<txp:article_custom section="yoursection" limit="5">
<txp:article_image />
<txp:permlink><txp:title /></txp:permlink>
<txp:posted />
<txp:excerpt />
</txp:article_custom>

The code above expect that the image ID is put into article_image field (look at left column of write page, there is some plugins that let you insert image in that field like bot_image_upload

Cheers

Offline

Board footer

Powered by FluxBB