Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#25 2006-04-11 16:30:09
- wanni
- Archived Plugin Author
- Registered: 2005-11-11
- Posts: 32
Re: jad_metadata
I like this plugin very much, thanks. I did a little tweaking so that it uses the article-text if no excerpt is present. After
<pre>
$the_excerpt = trim(strip_tags($res_excerpt0[“excerpt_html”]));
</pre>
insert
<pre>
if (strcmp($the_excerpt, “”) == 0) {
$res_excerpt = safe_rows(“body_html”, “textpattern”, “id=’$id’”);
$the_excerpt = trim(strip_tags($res_excerpt0[“body_html”]));
}
</pre>
Offline
Re: jad_metadata
I would use jad_metadata immediately if it a) had a parameter to not echo the meta-keywords, because I am using txp:meta_keywords already or b) have a parameter to use the keywords filed instead of a custom field.
Any chance to get that done?
Another feature which is missing is some kind of ‘text before excerpt’ parameter so that you can have a leading standard info before the excerpt starts.
PS: Does somebody have an idea why TXP doesn’t have something already built-in like txp:meta_description_from_excerpt?
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#27 2006-10-24 21:22:22
- Prax
- Member
- From: Huntsville, AL
- Registered: 2006-09-27
- Posts: 24
Re: jad_metadata
With the following code in your header and 2 custom fields set in advanced preferences (I use the first two fields, labeled: description and metakeywords) no plug-in is needed. Also, your page wont have empty tags (description=”“ and keywords=”“) if the fields are empty.. it just wont have the meta tags at all.
<txp:if_individual_article>
<txp:if_custom_field name="description">
<meta name=“description” content=”<txp:custom_field name="description" />" />
</txp:if_custom_field>
<txp:if_custom_field name="metakeywords">
<meta name=“keywords” content=”<txp:custom_field name="metakeywords" />" />
</txp:if_custom_field>
</txp:if_individual_article>
Just an option. I'm aware that this plug-in does more for those that want it.
Offline
Re: jad_metadata
Markus, did you manage to get this plugin working with your keywords field?
I’m now using tru_tags for my tagging, which as you know uses the ‘keywords’ field.
I don’t really want to have the overhead of maintaining a custom field just to use this
plugin.
What other alternatives are there?
Offline
Re: jad_metadata
@sotoshi: I am also using tru_tags on my site and can only recommend it.
Btw: With TXP 4.0.4 and the newest tru_tags version it is also possible to add keywords (and content) via form to the RSS feed.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: jad_metadata
Cheers Markus! I know about tru_tags and the RSS feed but one thing I’m struggling with, and this is so off topic,
is how to get pictures and category names showing up in Feedburner feed?
Anyway, are you having any success with the jad_metadata plugin in conjunction with tru_tags
and the keyword field?
Or, is there a more flexible plugin for displaying desc and keywords in the head file?
Thanks in advance.
Offline
Re: jad_metadata
I have written an article on performancing.com about creating a individual meta-description in TXP and it (or a part of it) is also published in the examples section of this forum. In the comments to that thread are also some other solutions.
Sorry, I am busy right now, so I don’t have time to find the URLs right now.
Re. OT: Pictures must have absolute URLs. Tags (and categories) are included from the keywords field by tru_tags. Look at my feed.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#32 2007-04-27 14:04:48
- swizzy
- Member
- Registered: 2007-03-05
- Posts: 13
Re: jad_metadata
How do i input the keywords via the Keywords field instead of a custom field
Offline
Re: jad_metadata
swizzy wrote:
How do i input the keywords via the Keywords field instead of a custom field
Just add <txp:meta_keywords />
in the head… normally in the presentation tab
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#34 2007-04-28 04:29:52
- swizzy
- Member
- Registered: 2007-03-05
- Posts: 13
Re: jad_metadata
colak wrote:
Just add <txp:meta_keywords />
in the head… normally in the presentation tab
No.. i mean within a plugin.. how do I call the keyowrds input when editing a plugin
Offline
Re: jad_metadata
@swizzy: If you start programming TXP plug-ins you should check out the development boards here. This thread here is supposed to support only one plugin (jad_metadata).
If you have found a plug-in which nearly fulfills your needs you can play around with the source code.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline