Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2004-09-29 21:17:39

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

Re: [plugin] [ORPHAN] ob1_title

Fixed.
Now supports any name set through the spc_section_alias plugin.

Last edited by obeewan (2004-09-29 21:22:08)


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

#26 2004-09-29 22:26:40

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

Re: [plugin] [ORPHAN] ob1_title

<del>Hmm .. I forgot to fix the default output “bug”. I’ll check up on that later.</del>

<ins>Later is now. Fixed.</ins>

Last edited by obeewan (2004-09-29 22:34:28)


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

#27 2004-09-30 09:18:38

Boby Dimitrov
Member
From: Sofia, Bulgaria
Registered: 2004-09-27
Posts: 76
Website

Re: [plugin] [ORPHAN] ob1_title

Ah, thanks! Works just fine!

A side question – is there a way to display:
Sitename – Category – Articletitle
When browsing a single article?

Offline

#28 2004-09-30 10:18:52

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

Re: [plugin] [ORPHAN] ob1_title

I am thinking of in the upcoming release have a way for the user to set their own order.

Boby,

That should be doable, try:
<code><txp:ob1_title showcategory=“1” /></code>


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

#29 2004-10-01 10:36:23

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 741

Re: [plugin] [ORPHAN] ob1_title

obeewan, thanks for the plugin

I’ve got the spc_section_alias plugin installed and working on my pages. But ob1_title is displaying just the section, not the alias.

is there an attribute for having the alias displayed?

I have a “section-prefix” form, with e.g.

<code><txp:spc_section_alias
section=“default”
name=“this is the home page”
description=“page home this is” /></code>

thanks

Offline

#30 2004-10-01 12:06:52

Boby Dimitrov
Member
From: Sofia, Bulgaria
Registered: 2004-09-27
Posts: 76
Website

Re: [plugin] [ORPHAN] ob1_title

> compooter wrote:
> If this is used on a homepage with showsections, there is no way to keep it from outputting:
>“Site title [separator] default

Hm, my problem is when I’m looking at the default (home) page, I get this as a title:
“Site title [separator] “ (separator is “-”)

Is there a way to not show this trailing separator, as it just doesn’t look good. “My blog – Mozilla Firefox” is better than “My blog – - Mozilla Firefox”, imo :)

Offline

#31 2004-10-01 16:15:55

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

Re: [plugin] [ORPHAN] ob1_title

nardo,

do you use the showsection attribute?
Ex:
<code><txp:ob1_title showsection=“1” /></code>


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

#32 2004-10-01 17:28:07

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

Re: [plugin] [ORPHAN] ob1_title

Boby,

I am not able to reproduce the error so I have some followup questions:

  • Do you use the default template for more then one section?
  • What does your call to the plugin look like?

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

#33 2004-10-02 02:33:36

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 741

Re: [plugin] [ORPHAN] ob1_title

obeewan, this is the code I have in my form “html-head” :

<code><title><txp:ob1_title showsection=“1” separator=” : “ /></title></code>

also I get the same thing as boby – and I use the default template for more than one section

cheers, nardo

Offline

#34 2004-10-02 07:30:57

Boby Dimitrov
Member
From: Sofia, Bulgaria
Registered: 2004-09-27
Posts: 76
Website

Re: [plugin] [ORPHAN] ob1_title

obeewan, in the head of my default page I have <pre><title><txp:ob1_title showsection=“1” /></title></pre>

Also, I use this default page for almost all my sections (except “about”). This “Sitename separator “ problem appears only on the home page – when no section is selected.

I kinda resolved the problem by setting a name for the default section with the section alias plugin like this <pre><txp:spc_section_alias section=“default” name=“put section name here” /></pre>

Last edited by Boby Dimitrov (2004-10-02 07:31:23)

Offline

#35 2004-10-02 17:31:31

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

Re: [plugin] [ORPHAN] ob1_title

Hmm .. I’ll release an update tomorrow that if section is default, no output is done.


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

#36 2004-10-03 21:59:09

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

Re: [plugin] [ORPHAN] ob1_title

The update has been released and tested. Find it in the download link in the first post or on my website.


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