Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#46 2004-10-15 18:37:00
- spchampion
- Archived Plugin Author
- Registered: 2004-06-10
- Posts: 62
Re: [plugin] [ORPHAN] ob1_title
obeewan,
I call your plugin from the page template like this:
<pre>
<code>
<txp:ob1_title showsection=“1” separator=” -> “ />
</code>
</pre>
Here’s an alias entry from my plugin:
<pre>
<code>
<txp:spc_section_alias section=“news” name=“News” title=“The latest news about the RTC.”
description=“News, updates, and announcements about the RTC project and its research.” id=“newsnav” />
</code>
</pre>
I’m using version 1.32 of your plugin and 0.4.1 of mine.
Last edited by spchampion (2004-10-15 18:38:16)
Offline
Re: [plugin] [ORPHAN] ob1_title
I’ll look into it .. I’m not having that much time currently so it will have to wait but I won’t forget it :)
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [plugin] [ORPHAN] ob1_title
hi guys… just wondering, but is it supposed to not be displaying “default” on the main page, as of version 1.32?
and if i need to fix that on my own (certainly do not mind that), then do i just follow Compooter’s instructions from the first page?
thank you for this plugin, btw, obeewan! i’m a big fan of your plugins :)
*edit: i added the spc_section_alias plugin, and now “default” doesn’t show, but neither do the section names… :-/
where on the page should i put <code><txp:output_form form=“section_prefix” /></code>?
and here’s what i have: <code><txp:ob1_title separator=” :: “ showsection=“1” showcategory=“1” searchcriteria=“1” searchword=“on” /></code>
it’s printing “ferrydust :: articlename” if on an individual-article page, and “ferrydust” if on any main/list/section page.. it is printing category names, but not section names…
any ideas as to what i’m doing wrong? thank you…
Last edited by alicson (2004-11-01 04:24:41)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#49 2004-11-01 07:59:25
- davidm
- Member

- From: Paris, France
- Registered: 2004-04-27
- Posts: 719
Re: [plugin] [ORPHAN] ob1_title
It’s a no brainer, I am installing this plugin right now !
A nice plugin to improve positionning in the search engines :-)
It will also save the need for multiple pages with these “context sensitive” titles :-))
THX !
.: Retired :.
Offline
Re: [plugin] [ORPHAN] ob1_title
Don’t tell me I haven’t updated the plugin properly yet?
Sheesh .. I’ll look into it in about 11 hours when I get home from work .. Stay tuned and my deepest apologies for this f*ckup.
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [plugin] [ORPHAN] ob1_title
> alicson wrote:
> any ideas as to what i’m doing wrong? thank you…
I am having the exact same problem. Take, for example, this page.
I tried copy and pasting a bunch of possible settings out of this thread before I settled on:
<code><txp:ob1_title order=“article” separator=” :: “ showsection=“1” /></code>
But none of them seemed to work.
I have spc_section_alias 0.5 and ob1_title 1.31 (or is it 1.32) installed and activated.
Offline
Re: [plugin] [ORPHAN] ob1_title
Just to make sure:
You are using the <txp:ob1_title /> tag after you have done the section alias’ I hope?
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [plugin] [ORPHAN] ob1_title
Copied right out of the template:
<code><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<txp:output_form form=“section_aliases” />
<html xmlns=“http://www.w3.org/1999/xhtml”>
<head>
<title><txp:ob1_title order=“article” separator=” :: “ showsection=“1” /></title></code>
Excerpt from section_aliases:
<code><txp:spc_section_alias section=“txp” title=“Textpattern” name=“Textpattern” description=“A flexible, elegant, easy-to-use content management system” /></code>
Last edited by michaelkpate (2004-11-17 00:25:49)
Offline
Re: [plugin] [ORPHAN] ob1_title
michaelkpate,
Ok good. I just felt I had to make sure. I was planning to investigate further in the plugin when I get back home (in about 30 mins an hour) so I’ll see what I’ll find.
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [plugin] [ORPHAN] ob1_title
Updated to version 1.4 which fixed the bug aswell as I did some codecleaning in the process and gave me some ideas for the version 2.0 that’s on it’s way.
Test and see if it helps and give me feedback if I created new bugs :)
Edit: Holy schmoly. New bugs found. Gagh! I shall return shortly!
New edit: Was not the plugin that bugged, something else made a mess, haven’t found what yet (on my site that is).
Note: The thing that created the bug was actually Textile of my advanced search article. Something made it go over to code and then made a mess, still haven’t found what made Textile break but just felt I should add a little note here =)
Last edited by obeewan (2004-11-17 15:38:23)
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [plugin] [ORPHAN] ob1_title
Works perfectly now with 1.4. Thanks!
Offline
Re: [plugin] [ORPHAN] ob1_title
michaelkpate,
You’re welcome.
everyone,
I am thinking of re-writing the syntax for the upcoming 2.0 release to make it even easier to customize and choose order etc.
The new attribute attribute would work like this:
nonameyetforthisattribute=“site,Category,title,SECTION”
Would result in, unchanged sitename + separator + uppercase first letter in categoryname + separator + unchanged title + separator + uppercase sectionname.
What you all think?
Other ideas that you think needs implemented in this plugin, write a line :)
Last edited by obeewan (2004-11-17 03:11:35)
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [plugin] [ORPHAN] ob1_title
Great idea, obeewan. I’m already enjoying the current version, but this would make it really easy to configure.
Offline
Re: [plugin] [ORPHAN] ob1_title
Yeah, cutting the attributes from ten to four most often helps the user :)
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [plugin] [ORPHAN] ob1_title
obeewan – I’ve been using this for a while and its been a great help. I don’t know if you’re considering something like this for your next version but I modified the plugin a bit so I could display the category names that an article is assigned to when viewing that article.
You can see it in use on my site and I did a little writeup of my changes as well.
Thanks for a great plugin!
Offline