Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[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
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
Offline
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
Re: [wiki] <txp:keywords />
Questions:
- Does a default Txp search form search on the keywords field?
- 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
Re: [wiki] <txp:keywords />
- 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
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
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
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
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