Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
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
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><<< 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 >>></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><<< Neuer</txp:newer>
<txp:link_to_home>Home</txp:link_to_home>
<txp:older>Älter >>></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
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
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
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
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
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
Re: Feedback on the Textpattern 4.0.6 release
merz1, it’s from asy_sitemap.
Offline
#104 2008-05-27 17:33:30
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
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
Offline