Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

article form defined in write tab (modified module) has precedence above form en listform in in article tag #41

Closed
ghost opened this issue Oct 4, 2014 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 4, 2014

From plam....@gmail.com on September 08, 2009 00:31:28

What steps will reproduce the problem? ------------------------------------

  1. choose a module for article in write tab
  2. use this in page layout:
    <txp:article limit="10" form="article" listform="article_listing />
    or <txp:article limit="10" form="article" />
    or <txp:article limit="10" listform="article_listing />
    or <txp:article limit="10" />
  3. In all cases, no matter which (list)forms are used in the page tag, the
    articles with a form specified in the article context (even if the default
    form is chosen) are displayed with that form. What is the expected output? What do you see instead? -----------------------------------------------------
    I expect that all articles should be displayed with the specified listform
    if there is no individual_article. What version of the product are you using? On what operating system? --------------------------------------------------------------------
    cms: textpattern 4.2
    os: windows xp Please provide any additional information below. -----------------------------------------------
    No matter what I do (I tested it in a lot of contexts) the following
    precedence is used when displaying an article in article list:
  • article form
  • tag listform
  • tag form

Work around

Instead of a modified module use a custom_field for defining the article
form and redirect it using the default article form if it is an
individual_article

Original issue: http://code.google.com/p/textpattern/issues/detail?id=37

@ghost ghost added imported labels Oct 4, 2014
@ghost
Copy link
Author

ghost commented Oct 4, 2014

From mani...@gmail.com on September 07, 2009 18:30:12

Try adding allowoverride="0".

More info here: http://textpattern.net/wiki/index.php?title=article#Attributes

@ghost
Copy link
Author

ghost commented Oct 4, 2014

From r.wetzlmayr on September 07, 2009 21:14:37

Works as intended.

Status: Invalid

@ghost
Copy link
Author

ghost commented Oct 4, 2014

From plam....@gmail.com on September 08, 2009 04:07:46


allowoverride="boolean"
Whether to use override forms for the generated article list.

Default: 1 (yes).

Maybe I'm stupid and understood that other forms are overridden by the tag-att
listform and indeed allowoverride="0" works for the article list, but for an
individual article the article form is overridden by the tag form.

I solved it in this way:

txp:if_individual_article
<txp:article form="xxxx_article" [ allowoverride="1" ] />
<txp:else />
<txp:article listform="article_listing" limit="15" allowoverride="0" />
/txp:if_individual_article

Maybe a better explanation in the tag reference should be desirable.

Anyway thanks for the tip...

@ghost
Copy link
Author

ghost commented Oct 4, 2014

From plam....@gmail.com on September 08, 2009 04:14:25

Btw, xxxx-article is the default form for a section..

@ghost ghost closed this as completed Oct 4, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants