Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-01 11:54:17

damini
New Member
Registered: 2007-10-01
Posts: 6

How to add some text before article

Hi there

I want to add one text before my article. so in my header form I want to check that article’s id or name, and on particular article I want to add some text before its heading. Please let me know how to do that.

Thanks

Offline

#2 2007-10-01 15:42:34

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How to add some text before article

txp:if_article_id. Use it in an article form, or, if you need to use it on the page, it will probably work if you wrap it in <txp:if_individual_article> tags.

Offline

#3 2007-10-01 15:47:21

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: How to add some text before article

Not sure, if I understood you correctly, and not clear what kind of text you want to display.
Static, or text coming from another Article ?

However, you can customize you Article Forms anyway you like:

Example:

<!— Your static Text —>

<p class=“intro”>Some static text</p>

<!— Article output —>
<h2><txp:permlink>
<txp:title />
</txp:permlink></h2>

<txp:body />

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#4 2007-10-04 13:19:51

damini
New Member
Registered: 2007-10-01
Posts: 6

Re: How to add some text before article

Thanks for help but still I don’t understand it..

I want to put some static scrolling text…I mean maruee..so my website has breadscrumb..then article name and then text of that article. I want to put one scrolling static text just before title of the article.. But it is appearing on all the page and I want to display only on one page…
check this link

http://www.bodysmooth.co.uk/laserliposuction-smartlipo

I want to display text just above “SMARTLIPO” heading…

so to do this I want to check if article is for smartlipo display text….

plz let me know if you still want some more things to know…

Offline

#5 2007-10-04 16:22:17

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How to add some text before article

In your article form, just above <txp:title />, add

<txp:if_article_id id="here the id of your 'smartlipo' article">
here your code for the static scrolling text
</txp:if_article_id>

You can find the id in the ‘articles’ tab, left column.

Offline

Board footer

Powered by FluxBB