Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-08-11 14:43:57

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

[wiki] <txp:keywords />

After some testing, I was able to use keywords like this in a misc form, not article form:

<meta name=“keywords” content=”<txp:keywords />”>

The keyword tag doc says at the end of the opening paragraph that the keywords tag “Should be used in an article form.

So is recommended (functioanally speaking) that it’s used in an article form, or was that sentence just written under the expectation most people would use it in an article form specifically?

If what I’ve done is acceptable use, then that sentence should be nixed, and other examples of use are needed.

Offline

#2 2011-08-11 15:38:46

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: [wiki] <txp:keywords />

Destry wrote:

The keyword tag doc says at the end of the opening paragraph that the keywords tag “Should be used in an article form.

Mary extends that in Textpattern Solutions:

Can also be used within a page if it is wrapped within an if_individual_article tag.

That sentence should simply be added to the wiki.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2011-08-11 16:12:55

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: [wiki] <txp:keywords />

My understanding is that anything that will work in an article form can also be used on a page template provided it is enclosed by article tags. Stealing from the article example:

<txp:article>
...contained statements...
</txp:article>

Since that ability was only added in 4.0.7, legacy references probably still remain.

Offline

#4 2011-08-11 16:43:52

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [wiki] <txp:keywords />

michaelkpate wrote:

it is enclosed by article tags.

Or placed to article context. On an individual article page the article data is available even without calling article tags.

Offline

#5 2011-08-11 16:45:13

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [wiki] <txp:keywords />

Thanks guys. Keywords page updated, and a second example added. Make sure it’s honest. Both snippets used in example 2 work for me when tested.

Offline

#6 2011-08-11 22:21:30

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

Re: [wiki] <txp:keywords />

Destry wrote:

Keywords page updated

And the same goes for all article related tags, i.e. tags that represent or refer to columns in the textpattern table.

I don’t have time to update the other tag pages right now, but I’ll try and do some in the weekend.

Offline

#7 2011-08-12 13:15:59

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [wiki] <txp:keywords />

Questions:

  1. Does a default Txp search form search on the keywords field?
  2. Is there an out-of-box way to make the keywords output as links, each going to a list of articles that are assigned those keywords?

Offline

#8 2011-08-12 14:25:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,193
Website GitHub Mastodon Twitter

Re: [wiki] <txp:keywords />

  1. Does a default Txp search form search on the keywords field?

Hi Destry wet_haystack will be of help.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#9 2011-08-12 15:05:02

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [wiki] <txp:keywords />

Thanks, Yiannis!

So the answer to that one is “no”, I take it. :)

I’m trying to learn all ends of the earth on this tag so I can edit the doc page fully. The second question would lead to another (more sophisticated) tag example in the page. (And I’d make use of it too.) :)

But, no doubt wet_haystack and smd_tags would be good plugin mentions in that page at the end (a new trend for the tag docs).

Offline

#10 2011-08-13 00:28:07

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [wiki] <txp:keywords />

Destry wrote:

So the answer to that one is “no”, I take it. :)

Yes, core doesn’t do either as a out-of-the-box feature. You will need a plugin to perform needed searches and output links. Tru_tags or smd_tags for example.

Does a default Txp search form search on the keywords field?

TXP has hidden searchable_article_fields preference option that can be used to extend the searches to different fields, including keywords. As Yiannis already mentioned, the wonderful wet_haystack can be used to modify the preference from an admin-side interface. Robert’s plugin will also create needed indexes to match the changed preference.

The searching method will be the same as for all other field. It might be bit of hit or miss. Depends how you want the words/tags to be matched.

Offline

#11 2011-08-13 18:57:34

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: [wiki] <txp:keywords />

I just went in and added a new section called “Related Plugins” to the bottom of the page. There is a lot of functionality available out there but no one central place to actually find anything out other than searching the resources and tips and doing a great deal of parsing of the results.

I am curious to see if anyone thinks this is a good and/or bad idea.

Offline

#12 2011-08-13 19:24:34

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [wiki] <txp:keywords />

^^ the risk is that the tag reference becomes a big advertising space for plugins and because there are a lot of competing plugins, how objective are people when mentioning a plugin there.

Offline

Board footer

Powered by FluxBB