Giter Site home page Giter Site logo

Comments (13)

 avatar commented on May 18, 2024

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.

 avatar commented on May 18, 2024

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.

 avatar commented on May 18, 2024

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.

 avatar commented on May 18, 2024

From [email protected] on June 26, 2009 14:03:29

Second example (the one with the form attribute that fails):

from textpattern.

 avatar commented on May 18, 2024

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.

 avatar commented on May 18, 2024

From [email protected] on June 26, 2009 14:04:44

Example one (which works) - container tag:

from textpattern.

 avatar commented on May 18, 2024

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.

 avatar commented on May 18, 2024

From r.wetzlmayr on July 13, 2009 23:57:51

  • What was the expected output / category?
  • What was the actual output / category?

from textpattern.

 avatar commented on May 18, 2024

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.

 avatar commented on May 18, 2024

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.

 avatar commented on May 18, 2024

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.

 avatar commented on May 18, 2024

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.

 avatar commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.