Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2007-08-16 14:11:57
- swati.miniyar
- Member
- Registered: 2007-08-06
- Posts: 39
Re: bos_author - author url customization...
i want to display authors information when i clicked on authors name.for that i am using bos_author plugin.
but my problem is-clicking on any author it always gives me a information of a author say having name=“abc”..
i am having 4 authors with thier bio defined in article.
i am using section author for this and i am displaying authors info on one page using this code—
<txp:article_custom section=“author” limit=“1” form=“about-us”/>
titles and author-name are same for all articles in author section .. iv also used
<txp:bos_author section=“author” />
help please.
Last edited by swati.miniyar (2007-08-16 14:15:33)
Offline
Re: bos_author - author url customization...
Uhm… Your usage of article_custom and bos_author looks weird, and I don’t fully grasp them. I don’t use them that way.
Let me say that Bos_author is only meant to be used inside an article (i.e., after the title, before body, or after the body…). Anywhere in the article form.
To list your 4 authors in any part of the site, you should use article_custom with section=“author” without the limit option, and without referring to my plugin in form. Title and permlink should be enough.
To list the author name and link it to the bio page in their individual articles you should use bos_author section=“author” (or whatever) in the individual article form only.
I can’t see a reason to use that article_custom with limit=“1” anywhere, from my point of view, but if I miss something let me know.
(added: In other words, maybe I don’t understand what are you trying to accomplish, exactly)
Z-
Last edited by Zanza (2007-08-16 14:43:38)
Offline
#15 2007-08-16 14:47:36
- swati.miniyar
- Member
- Registered: 2007-08-06
- Posts: 39
Re: bos_author - author url customization...
i am using <txp:bos_author section=“author” /> in a form where i am dispalying full article .It means along with the article its authors name will be displayed.
My page template “archive-list” uses this from.
Now,when i click on authors name ..i want its information should be displayed in some other page-“author link”.
So on this page i have written
<article_custom with limit=“1” section=“author”/> as author section uses this page..
But my problem is if i click on any author..it gives me bio of first author always..
My question is..How shold i dispaly author-abc’s info if i click on author “abc”?
Please help me out……..
Offline
Re: bos_author - author url customization...
swati.miniyar wrote:
i am using <txp:bos_author section=“author” /> in a form where i am dispalying full article .It means along with the article its authors name will be displayed.
My page template “archive-list” uses this from.
Do you use bos_author in the individual article or in an article list? Your explanation sounds confusing to me, because first you say that you’re using the tag in the full article, then you say “archive-list” page…
Now,when i click on authors name ..i want its information should be displayed in some other page-“author link”.
So on this page i have written
<article_custom with limit=“1” section=“author”/> as author section uses this page..
Simply use bos_author section=“author” in the form, where you want the name linking to the bio. And forget article_custom for this usage. It doesn’t make sense. Try and let me know, or answer my question above.
Z-
Offline
#17 2007-08-16 15:35:03
- swati.miniyar
- Member
- Registered: 2007-08-06
- Posts: 39
Re: bos_author - author url customization...
actually i am using a form to dispaly full article with its author name..
for this i am using a “default form “..on this form to display authr name-i am using <txp:bos_author section=“author”/>
when i click on this author name it should go to a page (archive_list) where i want to display that authgors info..
What code shpuld i write to link aaauthors name with its bio..I was using <article:custom section=“author”/> ..i have tried it with <txp:article /> also..but have not got proper results..
Offline
Re: bos_author - author url customization...
The problem is: why do you use article_custom to display a full article?? With limit=“1” it will show always the first article, from the first author…
Use a simple article tag. no limit. No section=“author”. In the article form you put bos_author section=“author”.
Let me know if this solve.
Z-
Last edited by Zanza (2007-08-16 17:14:01)
Offline
#19 2007-08-17 04:26:05
- swati.miniyar
- Member
- Registered: 2007-08-06
- Posts: 39
Re: bos_author - author url customization...
noooooooo.still its not solving my problem…what should i do?
for 1st author its showing properly .but or 2nd ,3rd and 4th author its showing always 2 author’s bio..
Pleaaaaaaase help me out..
Offline
Re: bos_author - author url customization...
I can’t help since I don’t understand. What does “showing always 2 author bio” mean? I thought it showed always the first autor bio. Has then something changed?
Can you paste the code you are using now (without article_custom?)?
If you also have a url I can give a look, because your code usage sound strange to me and I suspect we are not thinking about the same thing.
Z-
Last edited by Zanza (2007-08-17 10:41:07)
Offline
#21 2007-08-17 10:54:43
- swati.miniyar
- Member
- Registered: 2007-08-06
- Posts: 39
Re: bos_author - author url customization...
it means its always showing 2 nd authors bio whether clicked on 2 nd ,3rd or 4th author name..
i’ll give u a more detailed explaination…
To dispaly any full article i am using default form.While dispalying full article,i want to show its author name,its posted date along with body..
so i have written
<txp:bos_author section=“author”/>
<h2 style=“margin:0px; padding:0px; border:none;”>
<txp:title/>
</h2>
</txp:php>
<div class=“postInfo”>
<strong><txp:posted/></strong>
<txp:body/>
</div>
this article i am showing on a page template—“archive”
when i click on authors name of this article ..i want to show that authors information..
but that information (of author) should be displayed on page template “author_ link”
so on this page i have written code like this…
<txp:if_sectio name=“author”>
<txp:article form=“about_us”/>
</txp:if_section>
in about form i am showing title and body of the artilce…not anything else..
By problem is..
i am getting 1st authors info..if i click on 1st author name..
but when i click on 2 nd or 3rd or 4th authrs name it always showing bio of 2 nd author …
how to link the bios of all these authors to their names correctly…
sorry for large explaination..but i am searching for this from yeserday..but still not getting any appropriate solution..
please help me..
Offline
Re: bos_author - author url customization...
Your way of doing now looks correct. The problem must be somewhere else in the middle. Some ideas:
- Are the article author bio corrected published, if you access them from typing the correct url?
- Are the articles all assigned to the appropriate author?
- Are the name of the author proprerly written?
- Have you tried to change the name of author section? Since this is also the default name txp use for default author listing, I prefer to change it to “contributors“or anything else.
This is working for me and other sites, so the problem need to be caught somewhere. If you could provide an url then it would be great.
Z-
Offline
Re: bos_author - author url customization...
I just recovered this from the wayback machine. I haven’t tested it yet.
# bos_author v1.0
# Simple replacement for the <txp:author />. You can customize the section url to which every author name point to, with author name encoded along the TXP convention ( - instead of + for spaces)
# Maurizio Boscarol
# http://www.zanzareazanzibar.it/
# ......................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# ......................................................................
YTo5OntzOjc6InZlcnNpb24iO3M6MzoiMS4wIjtzOjY6ImF1dGhvciI7czoxNzoiTWF1cml6
aW8gQm9zY2Fyb2wiO3M6MTA6ImF1dGhvcl91cmkiO3M6MzE6Imh0dHA6Ly93d3cuemFuemFy
ZWF6YW56aWJhci5pdC8iO3M6MTE6ImRlc2NyaXB0aW9uIjtzOjE5MjoiU2ltcGxlIHJlcGxh
Y2VtZW50IGZvciB0aGUgPHR4cDphdXRob3IgLz4uIFlvdSBjYW4gY3VzdG9taXplIHRoZSBz
Z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YWFlNTQ5Y2Y3M2Fl
OGUiO30=
Offline
Re: bos_author - author url customization...
Wow, I’m not sure this is needed anymore, nor that it’s working, but it’s nice to see this coming from the past, thanks… :)
Offline