Comments (13)
From [email protected] on June 25, 2009 06:02:36
I believe txp:category throws the same error but I have not tested it to check...
from textpattern.
From r.wetzlmayr on June 26, 2009 02:44:07
I cannot reproduce this symptom. Need a tag trace for both variations.
Status:
from textpattern.
From [email protected] on June 26, 2009 14:00:46
Actually I was just trying different things when I saw the original bug error. If you look at my second example
above which uses a form="my-form", changing txp:category1 to txp:category outputs the wrong category. But -
I think this is more an error of logic rather than a bug.
from textpattern.
From [email protected] on June 26, 2009 14:03:29
Second example (the one with the form attribute that fails):
from textpattern.
From [email protected] on June 26, 2009 14:03:29
...p:comments_invite textonly="1" showalways="1" showcount="0" />
<txp:comments />
txp:if_comments_allowed
[txp:if_comments_allowed: false]
/txp:if_comments_allowed
txp:if_comments_preview
[txp:if_comments_preview: false]
/txp:if_comments_preview
/txp:if_section
<txp:if_section name="tennis-classifieds">
[<txp:if_section name="tennis-classifieds">: false]
/txp:if_section
/txp:if_individual_article
txp:if_article_list
[txp:if_article_list: false]
/txp:if_article_list
<txp:if_section name="tennis-jobs">
[<txp:if_section name="tennis-jobs">: true]
<txp:output_form form="subscriber_login" />
[SQL (6.8187713623047E-5): select Form from txp_form where name='subscriber_login']
[Form: subscriber_login]
/txp:if_section
<txp:output_form form="search" />
[SQL (6.103515625E-5): select Form from txp_form where name='search']
[Form: search]
<txp:site_url />
<txp:output_form form="rss_feeds" />
[SQL (6.0796737670898E-5): select Form from txp_form where name='rss_feeds']
[Form: rss_feeds]
<txp:section title="1" />
[SQL (5.9127807617188E-5): select title from txp_section where name='tennis-jobs']
<txp:feed_link flavor="rss" label="RSS" />
<txp:feed_link flavor="atom" label="Atom" />
<txp:output_form form="google_textads" />
[SQL (6.1988830566406E-5): select Form from txp_form where name='google_textads']
[Form: google_textads]
<txp:output_form form="text_link_ads" />
[SQL (7.0095062255859E-5): select Form from txp_form where name='text_link_ads']
[Form: text_link_ads]
txp:php
/txp:php
<txp:output_form form="text_link_ads_affiliate" />
[SQL (7.9154968261719E-5): select Form from txp_form where name='text_link_ads_affiliate']
[Form: text_link_ads_affiliate]
<txp:output_form form="footer" />
[SQL (5.9127807617188E-5): select Form from txp_form where name='footer']
[Form: footer]
txp:php
/txp:php
<txp:output_form form="google_analytics" />
[SQL (0.0001518726348877): select Form from txp_form where name='google_analytics']
[Form: google_analytics]
[ ~~~ secondpass ~~~ ]
-->
from textpattern.
From [email protected] on June 26, 2009 14:04:44
Example one (which works) - container tag:
from textpattern.
From [email protected] on June 26, 2009 14:04:44
..._comments_allowed>
txp:if_comments_preview
[txp:if_comments_preview: false]
/txp:if_comments_preview
/txp:article
/txp:if_section
<txp:if_section name="tennis-classifieds">
[<txp:if_section name="tennis-classifieds">: false]
/txp:if_section
/txp:if_individual_article
txp:if_article_list
[txp:if_article_list: false]
/txp:if_article_list
<txp:if_section name="tennis-jobs">
[<txp:if_section name="tennis-jobs">: true]
<txp:output_form form="subscriber_login" />
[SQL (8.5115432739258E-5): select Form from txp_form where name='subscriber_login']
[Form: subscriber_login]
/txp:if_section
<txp:output_form form="search" />
[SQL (6.1988830566406E-5): select Form from txp_form where name='search']
[Form: search]
<txp:site_url />
<txp:output_form form="rss_feeds" />
[SQL (5.8174133300781E-5): select Form from txp_form where name='rss_feeds']
[Form: rss_feeds]
<txp:section title="1" />
[SQL (5.6982040405273E-5): select title from txp_section where name='tennis-jobs']
<txp:feed_link flavor="rss" label="RSS" />
<txp:feed_link flavor="atom" label="Atom" />
<txp:output_form form="google_textads" />
[SQL (5.9127807617188E-5): select Form from txp_form where name='google_textads']
[Form: google_textads]
<txp:output_form form="text_link_ads" />
[SQL (6.7949295043945E-5): select Form from txp_form where name='text_link_ads']
[Form: text_link_ads]
txp:php
/txp:php
<txp:output_form form="text_link_ads_affiliate" />
[SQL (7.7962875366211E-5): select Form from txp_form where name='text_link_ads_affiliate']
[Form: text_link_ads_affiliate]
<txp:output_form form="footer" />
[SQL (5.9843063354492E-5): select Form from txp_form where name='footer']
[Form: footer]
txp:php
/txp:php
<txp:output_form form="google_analytics" />
[SQL (5.9843063354492E-5): select Form from txp_form where name='google_analytics']
[Form: google_analytics]
[ ~~~ secondpass ~~~ ]
-->
from textpattern.
From r.wetzlmayr on July 13, 2009 23:57:51
- What was the expected output / category?
- What was the actual output / category?
from textpattern.
From [email protected] on July 14, 2009 01:39:29
The expected output was a category called "Tennis Jobs". What displayed instead was a category called "Tennis
Classifieds".
from textpattern.
From r.wetzlmayr on July 14, 2009 01:58:08
I think we are watching slightly different "section" attributes at work here:
<txp:category1 link="1" title="1" section="tennis-classifieds" /> in form
"job_single" ( https://code.google.com/p/textpattern/issues/detail?id=6#c6 )
vs.
<txp:category1 link="1" title="1" section="tennis-jobs" /> in the container variant
( https://code.google.com/p/textpattern/issues/detail?id=6#c5 ).
Labels: Priority-Low
from textpattern.
From [email protected] on July 14, 2009 13:04:26
Hi Robert, not sure if I have been a little unclear in my description. My first post above stands and I do see an
error in the category link outputted when using the "job_single" form attribute.
What is displayed on the screen is the correct name of the category, but the link outputted is /tennis-
classifieds/?c=Tennis-Jobs-USA instead of /tennis-jobs/?c=Tennis-Jobs-USA.
The following is outputted when using txp:article in container variant: /tennis-jobs/?c=Tennis-Jobs-USA
I can give you a login if you like to check it out ;-)
from textpattern.
From r.wetzlmayr on July 14, 2009 21:17:39
This is the expected behaviour as in case #1 you use <txp:category1 ...
section="tennis-classifieds" />, while in case #2 you use <txp:category1 ...
section="tennis-jobs" />.
NB: The section atrributes are different and thus result in differnt links.
from textpattern.
From r.wetzlmayr on July 26, 2009 06:14:41
Cannot reproduce on fresh install, cannot fix on affected site. Looks like a heisenbug.
Status: Invalid
from textpattern.
Related Issues (20)
- plugin edit panel is blank HOT 8
- Admin -> Users throws `Uncaught mysqli_sql_exception: Unknown column` error on `dev` HOT 1
- detect-missing-adblocker HOT 1
- Invalid HTML in the `search_input.txp` form HOT 4
- admin js dropdown code for menu missing from recent commit HOT 2
- Bug: txp:article listform attribute overrides form attribute in individual article view on current 4.9.0-dev. HOT 14
- Error when accessing Preferences panel HOT 1
- XSS in Previews HOT 9
- PHP 8.3 linklist with label attribute prevents page loading HOT 24
- wrong category 2 assigned to Welcome article HOT 1
- Update HISTORY and/or README.md that Textpattern will not run as expected with PHP 8.3.0 under some circumstances. HOT 2
- Prep work and actions for MySQL 8.3 support
- Progressively get rid of MD5 HOT 2
- jQuery 4.0.0 is coming soon HOT 2
- How to customize <title></title> HOT 1
- how to install EDITOR HOT 2
- Safari 15.7 / iOS 15 preview text view not loading HOT 2
- Show spam form action (or rather page URL) is not updated on clear search HOT 6
- Function strftime() has been DEPRECATED as of PHP 8.1.0 but is still used in safe_strftime HOT 8
- Textpattern 4.9.0 release flight plan HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textpattern.