Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-18 10:29:09

Deep
Member
From: India
Registered: 2005-05-29
Posts: 22
Website

How do I remove extra line breaks in code (from top)?

Hi,
I am using txp on my website web1.in , I am using plugin ob1_if_section to generate conditional tags.
Now because of this, txp leaves line breaks for each line..this happens because output of plugin is stored in php variable so it does not show anything on code and leaves blank space.. (I am uisng it to generate meta tags and background image for header)

Anyone knows how to fix it? Currently it is leaving around 10 blank line breaks..

Thanks
Deep



[b]Deep Ganatra[/b]
[url=http://www.web1.in]Web Solutions India[/url]

Offline

#2 2005-10-18 14:39:46

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: How do I remove extra line breaks in code (from top)?

Any reason why you are using the plug-in instead of the TXP tags?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2005-10-18 14:42:46

Deep
Member
From: India
Registered: 2005-05-29
Posts: 22
Website

Re: How do I remove extra line breaks in code (from top)?

> thebombsite wrote:

> Any reason why you are using the plug-in instead of the TXP tags?

Basically I need to call differnt class for header image for different section and also I need to use different meta tags, page title for diff pages so I am getting section name and according to the section assignging value through php variable..

Any other way to do it.?

Deep



[b]Deep Ganatra[/b]
[url=http://www.web1.in]Web Solutions India[/url]

Offline

#4 2005-10-18 15:13:11

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: How do I remove extra line breaks in code (from top)?

<code><txp:if_section name=“SectionName”><txp:else /></txp:if_section></code>. Same goes for categories. What revision are you using?

Last edited by thebombsite (2005-10-18 15:14:33)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#5 2005-10-18 17:27:21

Deep
Member
From: India
Registered: 2005-05-29
Posts: 22
Website

Re: How do I remove extra line breaks in code (from top)?

> thebombsite wrote:

> <code><txp:if_section name=“SectionName”><txp:else /></txp:if_section></code>. Same goes for categories. What revision are you using?

aah I suck…never knew about it..I am using latest version of txp….

Regards
Deep



[b]Deep Ganatra[/b]
[url=http://www.web1.in]Web Solutions India[/url]

Offline

#6 2005-10-18 19:17:03

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: How do I remove extra line breaks in code (from top)?

When 4.0.2 becomes available you will also be able to use comma-separated lists too like <code><txp:if_section name=“Section1,Section2,Section3”><txp:else /></txp:if_section></code> again for categories as well.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#7 2005-10-18 20:28:11

Deep
Member
From: India
Registered: 2005-05-29
Posts: 22
Website

Re: How do I remove extra line breaks in code (from top)?

Thats cool, I am gonna try it tmrw and see if it can fix my problem :)

Thanks for the help…

Regards
Deep



[b]Deep Ganatra[/b]
[url=http://www.web1.in]Web Solutions India[/url]

Offline

#8 2005-10-18 20:32:00

kalius
New Member
From: Madison, WI
Registered: 2005-07-21
Posts: 8

Re: How do I remove extra line breaks in code (from top)?

Removing line breaks in your page(s) and form(s) will help.

txp:lalala
hello
/txp:lalala

to txp:lalala hello /txp:lalala , And so on.

Last edited by kalius (2005-10-18 20:32:51)

Offline

#9 2005-11-09 13:32:45

Deep
Member
From: India
Registered: 2005-05-29
Posts: 22
Website

Re: How do I remove extra line breaks in code (from top)?

Hi,
I am sorry to update so late, but I just added default txp conditional tags but still it shows me line breaks on top.
Can anyone has idea about it?

Thanks
Deep



[b]Deep Ganatra[/b]
[url=http://www.web1.in]Web Solutions India[/url]

Offline

Board footer

Powered by FluxBB