Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
End mark at end of body?
I’d like to add a special character (for example, a tilde) at the very end of each blog post similar to how magazines put an icon at the end of an article (an end mark?). For exampe, a blog post would end like this:
… with her fellow volunteers. ~
I suspect this has been explained in either the documentation or here in the forum. Where should I be looking for a solution?
Last edited by mistersugar (Today 01:40:09)
Offline
Re: End mark at end of body?
mistersugar wrote #339572:
I suspect this has been explained in either the documentation or here in the forum. Where should I be looking for a solution?
not sure if this is what you have in mind? But I end all my posts with a special char:
https://bicilogic.com/article/retro-cyclists
you could use
<div class=“post-footer”>˜</div> ensuring there is no line break, using css, after the post.
I did it over 10 years ago and there may be more elegant solutions
…. texted postive
Offline
Re: End mark at end of body?
Do you consider that endmark part of the content or is it strictly presentational?
In the first case you could add it as part of your article form template. In the latter case, CSS generated content is your friend, e.g.
article::after {
content: '~';
display: block; /* add if you want the endmakr on its own line */
}
Replace article
with the container that wraps around the body of your article.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Offline
Re: End mark at end of body?
Thanks for the answers bici and phiw13.
I’m actually trying to do both of these.
Using CSS makes sense for the character that I want to show below each post (or in between two posts if an article list). I appreciate the tips.
Adding a character to the very end of a post seems harder: I want it to be inside of the txp:body tag but is that possible?
Offline
Re: End mark at end of body?
mistersugar wrote #339576:
Adding a character to the very end of a post seems harder: I want it to be inside of the txp:body tag but is that possible?
I don’t think so. <txp:body />
just takes the content of what you write in the textarea. It has no attributes, according to the documentation.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: End mark at end of body?
phiw13 wrote #339577:
I don’t think so.
<txp:body />
just takes the content of what you write in the textarea. It has no attributes, according to the documentation.
That’s what I figured. Late here so calling it a night. Thanks for being online to help!
Offline
Pages: 1