Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#85 2005-06-05 20:44:58

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_title

That is what happend if you use the name article on a section. Ohwell, I’ve fixed it and now you type like this instead:
<code>txp:ob1_title order=”%article,%section,%sitename” /</code>

So now you can have sections called section, sitename and category if you want (which wasn’t possible either before).

Neat huh? :)


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

#86 2005-06-05 20:53:03

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] ob1_title

Well I never. Who can we blame for that one then?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#87 2005-06-05 20:58:10

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_title

Blame Dean hehehe ..

Nah, was my own silly misstake not to think that TXP comes pre-installed with a section called article. Doh!


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

#88 2005-06-05 21:09:26

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] ob1_title

All installed and working perfectly thank you. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#89 2005-06-05 21:21:15

Daragh
Member
From: Toronto Canada
Registered: 2004-05-26
Posts: 60
Website

Re: [plugin] [ORPHAN] ob1_title

obeewan, are you going to add variables like showsitename and showsection back in? Here’s hopin’ you are…

Offline

#90 2005-06-05 21:46:50

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] ob1_title

It’s already there Daragh – just use order=”%article,%section,%sitename” – use the ones you want in the order you want, comma separated.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#91 2005-06-05 21:51:30

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_title

Daragh,

As thebombsite allready notes, they are there, just that you now have a new syntax of how the plugin works. Meaning, if you don’t have %category in the order attribute, no categorynames will be displayed. Same for all of them ofcourse, not in order = don’t show.
And please everyone, if you think the documentation for the plugin is not sufficient to explain the usage, please advice how to make it clearer.

Thanks.

Last edited by obeewan (2005-06-05 21:52:33)


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

#92 2005-06-06 14:06:20

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] ob1_title

Excellent Obeewan works great except for one little problem.

If I use <code>order=”%article,%category”</code> (notice no %section) and I am on a section frontpage.

I get the following error message: Warning: join() [function.join]: Bad arguments. in D:\dev\sites\cepa\public_html\textpattern\lib\txplib_misc.php(352) : eval()’d code on line 128

Last edited by tinyfly (2005-06-06 14:06:45)

Offline

#93 2005-06-06 16:58:32

Daragh
Member
From: Toronto Canada
Registered: 2004-05-26
Posts: 60
Website

Re: [plugin] [ORPHAN] ob1_title

Aha! Works like a charm. Sorry, I have a habit of not reading instructions very carefully.

Offline

#94 2005-06-06 19:10:59

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

Re: [plugin] [ORPHAN] ob1_title

Installed the new version, read the documentation and changed the calling routine to order=”%article,%section,%sitename” separator=” :: “ from order=“article” showsection=“1” separator=” :: “, and then sat back and admire how smoothly the change occured.

Thanks.

Offline

#95 2005-06-07 16:24:18

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_title

tinyfly,

I’ll look into when I get back home from work. If there is a problem expect it to be solved later this evening (CET).

Daragh,

No worries, I should maybe write abit more regarding the change of syntax. We’ll see.

michaelkpate,

Thanks, always nice to hear that something works as intended. Or maybe it doesn’t (see tinyfly’s post) but then I’ll fix it anyway :)


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

#96 2005-06-07 19:01:11

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_title

Update to 2.2 that removes the bug that tinyfly spotted.

However now it returns blank if nothing has been set that it can use.


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

Board footer

Powered by FluxBB