Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-11-19 03:55:42
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
anchor tags around an excerpt - invalid code - workaround?
this is what I’m trying to do on the home page:
<txp:permlink><txp:excerpt /></txp:permlink>
i.e. link the whole excerpt to the article… but it doesn’t play well with the formatting within the excerpt… as the validator says,
you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
stripping html from the excerpt is not an option as I want to have paragraphs and some formatting within excerpts…
any ideas?
Offline
Re: anchor tags around an excerpt - invalid code - workaround?
Nardo,
It is wrapped in < p > tags, so it won’t validate:
See my solution here
You could accomadate this to suit you with a little work.
Obviously you don’t need the rollover functions.
?
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline