Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
Re: [plugin] [ORPHAN] ob1_title
obeewan, are you going to add variables like showsitename and showsection back in? Here’s hopin’ you are…
Offline
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
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
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)
Refresh Dallas and other Refreshing Cities.
Offline
Re: [plugin] [ORPHAN] ob1_title
Aha! Works like a charm. Sorry, I have a habit of not reading instructions very carefully.
Offline
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
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
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