Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-05-06 20:49:05

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

how do i detain txp from displaying articles in single mode.

hello dear reader.

my problem is, that i want to categorize several articles. some do have the same title like the category itself
so when i call the section/category txp puts out section/article (what ends up in single mode),
without putting out the other articles from that same category.

i use clean urls and i dont want to put urls like
/section/?c=category-title

i want that clean
/section/category

i tried this plugin:
gbp_permanent_links

but when i activate it, the server keeps telling
Parse error: syntax error, unexpected $end in url/textpattern/lib/txplib_misc.php(570) : eval()’d code on line 1905
The above errors were caused by the plugin:gbp_permanent_links

maybe im missing something very easy, i just dont know.. any ideas?
thx for help.

Offline

#2 2009-05-06 22:52:35

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: how do i detain txp from displaying articles in single mode.

never mind… it works…

here is an example:
http://dev.ssc-group.net/artists/belleruche
http://dev.ssc-group.net/artists/?c=belleruche

i want priority on that article list, not the individual article..

oh! and cheeeers on my beta status :D

Last edited by jens31 (2009-05-07 00:09:52)

Offline

#3 2009-05-07 09:27:34

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: how do i detain txp from displaying articles in single mode.

aaaahh.

guess you can put out <txp:related_articles /> and make it use an article form..
sweeet :)

Offline

#4 2009-05-07 09:55:38

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,733
Website

Re: how do i detain txp from displaying articles in single mode.

It’s difficult to tell without further information – it could be working properly: if you are using the same form for article_list view as for individual_article view and you only have one article in that category (or have limited it to show only one article using limit="1") it may simply produce exactly the same output. What does your txp:article tag look like? To test, try specifying different forms for form="my-individual-article-view-form" and listform="my-category-view-form" and remove any limit attribute for the time being. Then assign two articles to that category and see if the output differs.

PS: BTW: Check your spelling, your button should read “Submit Inquiry”.


TXP Builders – finely-crafted code, design and txp

Offline

#5 2009-05-07 12:42:15

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: how do i detain txp from displaying articles in single mode.

May I recommend something. From design aspect, it would prolly be better to change the way markup hides link texts and represent the image instead. Currently you are using:

color: transparent;

But I would recommended to use something that is cross-browser and does really hide the text. Where I see, it is really annoying when the text is viewable by highlighting it, plus auto-correct, search highlighters, translators, mousehover, in-line find and all those things do make the nav look messy (as those do make the text seeable instead of just highlighting the actual link).

I would personally recommend:

text-indent: -9000px;

Which moves the text outside of the nav block.

Last edited by Gocom (2009-05-07 12:48:20)

Offline

#6 2009-05-07 13:03:58

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: how do i detain txp from displaying articles in single mode.

holler.

@jakob
i know, that there are different modis to display the articles. thats how i found out, that txp switches into individual_article mode.
but when you are in that mode, you cant call the other articles from that same category unless you use txp:related.
i do have a special form for the very first articles, which includes all the images, files etc.
afterwards i call the other articles, which might have the same category, if any.
but in individual mode, you can’t. i guess my problem is more link related, than article related. but as i mentioned:
it works now with related_articles. thats everyting i wanted :)

@gocom
thats right, my solution isnt cross-browser compatible. ill try your hint. thx.

cheers

Offline

Board footer

Powered by FluxBB