Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2008-04-01 16:18:07

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: Feedback on the Textpattern 4.0.6 release

ruud,

thanks for bailing me out – i’d tweaked my local version after compiling and hadn’t noticed that it was different from the svn repo version.


And then my dog ate my badger, and the love was lost.

Offline

#92 2008-04-15 01:38:31

sirNemanjapro
Member
From: Čačak, Serbia
Registered: 2007-12-08
Posts: 59
Website

Re: Feedback on the Textpattern 4.0.6 release

I dont get it. Dose asy_sitemap should look like this?

if (@txpinterface == ‘admin’) { add_privs(‘asy_sitemap’, ‘1’); register_tab(“extensions”, “event”, “tab name”); }


“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )

Offline

#93 2008-04-15 01:51:44

sirNemanjapro
Member
From: Čačak, Serbia
Registered: 2007-12-08
Posts: 59
Website

Re: Feedback on the Textpattern 4.0.6 release

I got it. :)
Solved.


“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )

Offline

#94 2008-04-22 13:29:42

mbravo
New Member
Registered: 2005-08-11
Posts: 8

Re: Feedback on the Textpattern 4.0.6 release

I have upgraded a 4.0.5 installation to 4.0.6 and suddenly got a problem with out-of-context txp:link_to_prev on default page (front page). It worked in 4.0.5 but broke in 4.0.6. When in Live mode, the navigation header just stops working, but if I enable testing mode, I see a Textpattern notice at the top about txp:link_to_prev being used outside of article context.

Is this supposed to happen with the upgrade? Any suggestions on the way to fix it, or work around it?

I’m using the Widescreen template by James Muspratt at my photoblog here – http://podorogenarabotu.spb.ru/

Many thanks in advance, and thanks for all the maintenance work that’s going in the upgrades!

Offline

#95 2008-04-22 14:13:32

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

The notice/warning is correct: link_to_next/prev should be used in article context, not in article list context.
You can fix this by putting those tags inside a <txp:if_individual_article> container tag.

Offline

#96 2008-04-22 15:20:10

mbravo
New Member
Registered: 2005-08-11
Posts: 8

Re: Feedback on the Textpattern 4.0.6 release

ruud wrote:

The notice/warning is correct: link_to_next/prev should be used in article context, not in article list context.
You can fix this by putting those tags inside a <txp:if_individual_article> container tag.

Thank you, this worked as intended, to get rid of the warning notice! 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), but it’s not for this thread I guess.

Offline

#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

Board footer

Powered by FluxBB