Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#136 2007-09-04 08:46:31

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

Re: [plugin] [ORPHAN] ob1_title

Here’s what I use spc_section_alias for…

I don’t use categories for my posts, I use sections. This plugin allows attaching several attributes to sections:
  • section name = food, which becomes a part of the URL, for example domain.com/food/, as you said.
  • section real name = Eating out, which is what shows as a link text. It can be input in the Sections part of the admin.
  • section link title = Reviews of romantic restaurants – that sets the link title for each section.
  • section description = I’m visiting all places romantic, where you can have a quiet, private dinner and writing a review afterwards. Feel free to comment or suggest other venues!
  • section group = (number) – it allows showing only selected sections in navigation, for example

When a certain section is opened, say domain.com/food/, I show the section name and description at the top, before all posts in that section.

Also, I have special sections, like /about, /last for last comments list, /tags for tag cloud, that I don’t want to show via the spc_section_alias_iterate tag, so I set them to group=2, while the “regular” sections are group=1. This allows for a proper separation.

So that’s it… When I was redoing the blog some (plenty) of time ago, spc_section_alias was the only way to go and I don’t really see a way to do this now, without the plugin.

The main “bug” in my hacked v2.2 ob1_title is that sections, defined as group=2 (or any number, other than 1) don’t show proper titles (real names), because the group parameter is hardcoded.

Hope that makes any sense… :D

Last edited by Boby Dimitrov (2007-09-04 08:46:52)

Offline

#137 2007-09-06 12:39:25

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

Re: [plugin] [ORPHAN] ob1_title

So for me to make you happy you need to be able to use the scp_section_alias plug in and that needs another attribute to specify a groupnumber or can that be grabbed through the plug in if the section name is specified?

Do note that I am currently working on my advanced search but I’ll take a look at this soon enough.


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

#138 2007-09-12 07:46:44

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

Re: [plugin] [ORPHAN] ob1_title

Well, I wasn’t actually placing a request in such explicit manner… I was just asking if there is any support for _scp_section_alias _ and more specifically – the group parameter.

If you add those, I’ll be very happy indeed, as I can dump my hacked 2.2 ob1_title :)

Thanks in advance!

Last edited by Boby Dimitrov (2007-09-13 07:18:39)

Offline

#139 2007-09-13 05:28:22

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

Re: [plugin] [ORPHAN] ob1_title

As I said earlier. I’ll look into it after the advanced search and googlenav (aswell as small mod on the changecase).
But you need group right? Hmmm .. I wonder if it’s possible to use tags on the parameters, like

<txp:ob1_title scp_group="<txp:scp_section_alias_group/>"/>

(or however the group plugincall 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

#140 2007-09-13 07:52:44

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

Re: [plugin] [ORPHAN] ob1_title

I’ve looked at the pages/forms in my blog now and it turns out the last time I tried to deal with this matter I’ve left only one ob1_title call:

<title><txp:ob1_title order="%article{%section{%sitename" separator=" » " /></title>

This obviously makes the HTML title that is displayed in the title bar of the browser. The problem is that sections in groups other than 1 (which I hardcoded in ob1_title) don’t have a proper title, for example “tags » sitename”, instead of “My tag cloud » sitename”.

So the easiest thing to do is to allow ob1_title to get titles for each section, regardless of what group is set via spc_section_alias.

Thanks.

Offline

#141 2007-09-13 11:17:36

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

Re: [plugin] [ORPHAN] ob1_title

So no need for group then? Makes it easier and won’t clutter it up so much. Lovely.


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

#142 2007-10-13 12:10:53

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

Re: [plugin] [ORPHAN] ob1_title

Updated to v4.1

See first post for details.

v4.1 [2007-10-13]

New feature

  • Added slogan to order attribute.

Note

  • All order attributes have had their % signs removed since I do not use them anymore. So if you update, make sure you change the attributes contents. (Ex. %article is now article).

No support for spc_section_alias since Stantons webserver crashed I can’t get ahold of a version to test out the scenarios explained above.

Last edited by obeewan (2007-10-13 12:11:51)


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

#143 2008-04-16 19:35:00

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: [plugin] [ORPHAN] ob1_title

Is there a way you can modify this plugin so there can be an attribute on status of article? right now the plugin shows an article title of any status. I want to be able to show only live article titles.

Also, I get an error when on search query page.

Last edited by Ruhh (2008-04-17 16:09:49)


<txp:Ruhh />

Offline

#144 2008-05-14 13:34:32

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

Re: [plugin] [ORPHAN] ob1_title

So what should the plugin display instead of the title on “non-live” articles? I think there could be some if_status plugin to use instead.

Also, I get an error when on search query page.

What is the error on the query page and how do you use the plugin when it happens?


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

#145 2008-05-14 21:10:30

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: [plugin] [ORPHAN] ob1_title

On “non-live” articles, display nothing but the site name. Only the article titles would show if on “live” articles.

There’s an if_status plugin?

I can’t remember the error because I don’t use it anymore but if the plugin is to be modified, I would use it.

EDIT: I think I am going to stick with the if_section tag in the title.

Last edited by Ruhh (2008-05-14 23:03:24)


<txp:Ruhh />

Offline

#146 2009-08-03 15:16:44

pompilos
Member
From: Spain
Registered: 2005-06-07
Posts: 114
Website

Re: [plugin] [ORPHAN] ob1_title

Hello, Henrik. I have upgraded to the 4.1 version of the plugin and I have lost the posibility of using this simple conditional tag:

<title>
<txp:ob1_title order="<txp:if_individual_article>article<txp:else />section</txp:if_individual_article>,sitename" />
</title>

It worked fine in version 2.2 (with “%” sign), but it doesn’t with the new version, as you can see in Departamentos. I didn’t save the old version of the plugin so that I can’t downgrade. Any idea?

Last edited by pompilos (2009-08-03 15:24:44)

Offline

#147 2009-08-03 15:40:03

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: [plugin] [ORPHAN] ob1_title

Use single quotes for tags within tags.


Code is topiary

Offline

#148 2009-08-07 10:55:57

pompilos
Member
From: Spain
Registered: 2005-06-07
Posts: 114
Website

Re: [plugin] [ORPHAN] ob1_title

Ooops! Sorry, jsoo, for such a simple question. I thought I had tested the solution you give and that it didn’t work, but obviously I made some mistake. It works well with single quotes. Bye and thaks.

Offline

#149 2011-02-18 21:02:11

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

Re: [plugin] [ORPHAN] ob1_title

Does anyone have a copy of 4.1 handy. The latest one I seem to have downloaded is 2.2.

Offline

#150 2011-02-21 09:15:31

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: [plugin] [ORPHAN] ob1_title

here it is:
http://pastebin.com/9j7uQxwa


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

Board footer

Powered by FluxBB