Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#26 2006-05-22 13:03:13

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

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

#28 2007-03-10 11:31:59

shotoshi
Member
Registered: 2005-10-08
Posts: 48
Website

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

#29 2007-03-10 11:54:05

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

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

#30 2007-03-10 12:01:46

shotoshi
Member
Registered: 2005-10-08
Posts: 48
Website

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

#31 2007-03-10 12:22:30

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

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

#33 2007-04-27 15:30:50

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

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

#35 2007-04-28 11:52:30

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

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

Board footer

Powered by FluxBB