Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: A way to remove an image from an excerpt?
iblastoff wrote:
you can’t throw a txp tag within php like that.
Yeah I know, but thought I would try it out to see what the error was ;-)
Offline
Re: A way to remove an image from an excerpt?
I meant to check if we have excerpt, than wrap it with <span>. Something like this:
<txp:if_excerpt>
<span class="noimg"><txp:excerpt /></span>
<txp:else />
<txp:body />
</txp:if_excerpt>
But it’s too common solution – i don’t know the way you use excerpt :)
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: A way to remove an image from an excerpt?
Perfect! Thanks! I ended up with this in the form:
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<span class="noimg"><txp:excerpt /></span>
And the style sheet:
span.noimg img {
display: none;
}
Offline