Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-02 03:01:13

Champak
Member
Registered: 2006-01-31
Posts: 56

Breaking after tag problem

There is an automatic line break between tags, I don’t want that. How do I have a tag come in right behind another tag.

Ex. I want the following tags to print out in proper format like:
<code><txp:excerpt /><txp:permlink>text</txp:permlink></code>

and not like the following which is how it is happening:
<code><txp:excerpt />
<txp:permlink>text</txp:permlink></code>

Help pease.

Last edited by Champak (2006-02-02 03:01:52)

Offline

#2 2006-02-02 12:27:26

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

Re: Breaking after tag problem

Your “excerpt” will be wrapped in a “p” tag, which is a block-level element, so the next item, whatever it is, will drop below it. You will need to place the link inside a named “p” tag such as <code><p class=“linktext”><txp:permlink>text</txp:permlink></p></code> and then tell it in your CSS to <code>display: inline;</code> which I think should do the business.


Stuart

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

Offline

#3 2006-02-09 19:06:09

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

Re: Breaking after tag problem

I have a slightly different issue I need to

<txp:permlink><txp:title />: <txp:excerpt /></txp:permlink>

and have the whole thing display inline (no tag wrapped around the excerpt. I tried to add a class to the excerpt and define the class as display: inline; but that didn’t work.

The reason, if anyone’s interested, is that my “articles” have multiple dates associated with them, which need to be displayed. The best idea I could think of was to put the dates in the excerpt and display it this way. Of course if I can’t defeat the P tag round the excerpt it’s not going to fly.

Last edited by alesh (2006-02-09 19:06:24)


Yes, I have tried turning it off and on.

Offline

#4 2006-02-09 19:45:31

Champak
Member
Registered: 2006-01-31
Posts: 56

Re: Breaking after tag problem

It didn’t work for me either, I just grabbed the striptag plug and wrap it around the excerpt call.

Last edited by Champak (2006-02-09 19:45:43)

Offline

#5 2006-02-09 19:53:08

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

Re: Breaking after tag problem

You can also turn off Textile for the excerpt (advanced options in the write screen).

Offline

#6 2006-02-09 20:22:31

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

Re: Breaking after tag problem

ok… i’m doing this for a whole section, and I can’t turn off textile for every single article…

as for striptags, can someone tell me where go get it . . . the only version I find is GZIPed, and I can’t get GZip to work it’s driving my crazy – since when do plugins need to be encrypted with command-line software??


Yes, I have tried turning it off and on.

Offline

#7 2006-02-10 03:57:29

Champak
Member
Registered: 2006-01-31
Posts: 56

Re: Breaking after tag problem

http://forum.textpattern.com/viewtopic.php?id=8255

Offline

#8 2006-02-10 14:54:12

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

Re: Breaking after tag problem

Yeah . . . that’s the one I was talking about. The GZIP gave me fits (I’ve got it now). Why someone would feel the need to compress a file that’s <1 KB, and in a format most people can’t open, is beyond me.


Yes, I have tried turning it off and on.

Offline

Board footer

Powered by FluxBB