Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#97 2008-04-22 15:27:14

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Feedback on the Textpattern 4.0.6 release

To solve the pagination ‘problem’ in an article and in an article list here is the code I use:

<txp:if_individual_article>
<p><txp:chh_if_data><txp:link_to_next>&lt;&lt;&lt; Neuer</txp:link_to_next></txp:chh_if_data> 
<txp:link_to_home>Home</txp:link_to_home
<txp:chh_if_data><txp:link_to_prev>Älter &gt;&gt;&gt;</txp:link_to_prev></txp:chh_if_data></p>

<txp:else />

<txp:chh_if_data><h2>Seite <txp:page_url type="pg" /></h2></txp:chh_if_data>
<h4>Blättern:</h4>
<p><txp:newer>&lt;&lt;&lt; Neuer</txp:newer> 
<txp:link_to_home>Home</txp:link_to_home> 
<txp:older>Älter &gt;&gt;&gt;</txp:older></p>

</txp:if_individual_article>

txp:chh_if_data is optional (search for explanation…)

I think a translation is not necessary. If Yes, well, shoot a message…

Last edited by merz1 (2008-04-22 15:29:00)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#98 2008-04-22 15:46:58

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Feedback on the Textpattern 4.0.6 release

> Now I have to think about how do I reference the previous article outside of article context (need to link to it from navigational header on first/current page), …

You want to link to single next/previous articles from an article list?

  • That sounds like a pretty complicated use of different multiple txp:article tags :)
  • You have to play around with ‘limit’, ‘pageby’ and ‘offset’.
  • Plus some extra DIVs and/or classes to design the output.
<txp:article form="home" sort="Posted desc" limit="1" pageby="10" />
<txp:article form="home_link_older" sort="Posted desc" limit="1" offset="1" pageby="10" />

<txp:article form="home_link_newer" sort="Posted desc" limit="1" pageby="10" />
<txp:article form="home" sort="Posted desc" limit="1" pageby="10" />
<txp:article form="home_link_older" sort="Posted desc" limit="1" offset="2" pageby="10" />

<txp:article form="home_link_newer" sort="Posted desc" limit="1" offset="1" pageby="10" />
<txp:article form="home" sort="Posted desc" limit="1" pageby="10" />
<txp:article form="home_link_older" sort="Posted desc" limit="1" offset="3" pageby="10" />

Add the appropriate design and this draft might lead you somewhere…

The logical beauty of textpattern :-)

Last edited by merz1 (2008-04-22 16:03:54)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#99 2008-05-27 10:17:31

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Feedback on the Textpattern 4.0.6 release

After admin login I get the following error message one time:

Notice: Undefined index: view in (…)/textpattern/lib/txplib_misc.php(574) : eval()’d code on line 25
Notice: Undefined index: view in (…)/textpattern/lib/txplib_misc.php(574) : eval()’d code on line 88

Any idea?


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#100 2008-05-27 10:18:59

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Feedback on the Textpattern 4.0.6 release

probably a plugin. Try disabling them on by one.

Offline

#101 2008-05-27 14:49:19

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Feedback on the Textpattern 4.0.6 release

I was just wondering that it only happens after the login. I think it is not worth the effort to try all plugins.

TXP Feature request: A switch to disable all the activated plugins and remembering which plugins were activated to rollback later.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#102 2008-05-27 15:04:13

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Feedback on the Textpattern 4.0.6 release

Request denied. Adding a multi-select option (similar to articles) is very likely to happen, but no memory.

Offline

#103 2008-05-27 15:11:19

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Feedback on the Textpattern 4.0.6 release

merz1, it’s from asy_sitemap.

Offline

#104 2008-05-27 17:33:30

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Feedback on the Textpattern 4.0.6 release

Thanks Ruud :( But everybody has to admit that my RFE is very smart for testing purposes :)
Thanks Jon for the info :)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#105 2008-05-27 18:22:30

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Feedback on the Textpattern 4.0.6 release

merz1: I’ve already requested a similar feature some weeks ago, and if you read the thread, there is a clever solution


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#106 2008-06-03 16:13:36

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Feedback on the Textpattern 4.0.6 release

> preference setting Use Plugins (yes/no)

Yes, and the advantage of that preference, is that if you have a mix of enabled and disabled plugins, you can switch plugins off and then enable them again, without having to specify which plugins should stay disabled.

Wow. I didn’t know that too. Thanks for the hint maniqui!


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB