Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
A title for the main article and another on for the excerpt ... how?
I did asked the same question years ago but maybe there is a new and better way to do it. Is there? Core, plugin?
Last edited by RedFox (2018-02-10 19:45:46)
Offline
Re: A title for the main article and another on for the excerpt ... how?
A custom field would be my first choice.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: A title for the main article and another on for the excerpt ... how?
Or you could add the title within the excerpt if it makes sense to your brief.
Something like
h2. Excerpt title
Excerpt here
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: A title for the main article and another on for the excerpt ... how?
That’s a nice one Yiannis … :)
For now a custom field it will be. Thanks to you both.
<txp:if_custom_field name="Alt_Article_Title">
<h1 itemprop="name"><txp:custom_field name="Alt_Article_Title" /></h1>
<txp:else />
<h1 itemprop="name"><txp:title /></h1>
</txp:if_custom_field>
Last edited by RedFox (2018-02-12 09:50:38)
Offline
Re: A title for the main article and another on for the excerpt ... how?
phiw13 wrote #309183:
A custom field would be my first choice.
Seconded. I’ve recently started to cram more than one thing into custom fields and then extract the information using variable
. I’m sure I can use yield
for some of this, too.
Offline
Re: A title for the main article and another on for the excerpt ... how?
Show us some code Pete … :o
Offline
Re: A title for the main article and another on for the excerpt ... how?
RedFox wrote #309208:
Show us some code Pete … :o
This may be useful: get the value of a custom field in a variable
Offline