Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-14 22:46:33

decode
New Member
From: Italy
Registered: 2008-02-14
Posts: 8

Switching article title as permalink or plain text for every post.

Hi all.

I have made my portfolio site in TXP. It’s style is very minimalistic: the works are listed on the frontpage as a conological (montly) index. I would like to be able to “switch on and off” the article title being displayed as a link for every post individually and to post it as text only, so that I can list events or works that I don’t really want to write a dedicated post for. For example: when I list an event I don’t want to associate an article with it, but only the title of it. For now, if you look on my page, there are posts that are “empty”.

Is there a way to accomplish this, plugin or custom-field-hack?

I know I’m missing something.

Thank you.

Last edited by decode (2008-02-14 22:47:53)

Offline

#2 2008-02-14 23:25:24

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

Re: Switching article title as permalink or plain text for every post.

You could use a custom field. Name it for example ‘link’. Enter ‘yes’ or ‘no’ (or leave empty if no permlink required). In your article form:

<txp:if_custom_field name="link" val="yes">
<txp:permlink><txp:title /></txp:permlink>
<txp:else />
<txp:title />
</txp:if_custom_field>

Offline

#3 2008-02-15 12:59:33

decode
New Member
From: Italy
Registered: 2008-02-14
Posts: 8

Re: Switching article title as permalink or plain text for every post.

I see.
Perfect. It works like a charm. Straightforward and simple.

Thank you very much.

Offline

Board footer

Powered by FluxBB