JAMWiki
  1. JAMWiki
  2. JAMWIKI-4

Templates that generate section headings break page section editing

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      If a template generates a wiki heading then including that template in a topic breaks section editing. For example:

      1. Create a template that contains the wiki text "== Section 1 =="
      2. Include that template in a topic with other section headings.
      3. Try to click the "edit" link for a section - it won't work properly.

      The http://jamwiki.org/wiki/en/Latest_News page is an example of this problem.

        Activity

        Hide
        Ryan Holliday
        added a comment -

        From jamwiki.org:

        This appears to be a known issue (cp. [[User:wrh2|here]]): "Template inclusion breaks section edit links (numbering off). Update: for now I've disabled section editing on pages that use template inclusion. This isn't a long-term solution, but thus far I haven't come up with a good way to handle this issue." Not being able to edit individual sections created from templates renders the whole template concept unusable for us. We need something like a form which shall be used by many different (technically unexperienced) users; editing the entire page and using variables is a lot less intuitive than just clicking a section's "Edit" link.

        Disabling section editing for template generated pages entirely would be a (not too beautiful) workaround (cp. [Feedback#<nowiki>__NOEDITSECTION__</nowiki> not working]). --[[User:tapaya|tapaya]] 30-Mar-2009 02:36 PDT

        : This is actually a really tough bug to solve cleanly - the only workarounds I've come up with have been some pretty ugly hacks to the parsing code. The [[Latest News]] page on jamwiki.org suffers from the same issue you've described. I'll try to bump the priority for getting this resolved, but I'd first like to get a 0.7.1 bugfix release out so it may take a while to get resolved. Sorry! If you're comfortable with Java feel free to have a look at WikiHeadingTag.java as well as the parseSlice and parseSplice functions in JFlexParser and see if you've got any ideas. – [[User:wrh2|Ryan]] • ([[User comments:wrh2|comments]]) • 31-Mar-2009 08:38 PDT

        Show
        Ryan Holliday
        added a comment - From jamwiki.org: This appears to be a known issue (cp. [ [User:wrh2|here] ]): "Template inclusion breaks section edit links (numbering off). Update: for now I've disabled section editing on pages that use template inclusion. This isn't a long-term solution, but thus far I haven't come up with a good way to handle this issue." Not being able to edit individual sections created from templates renders the whole template concept unusable for us. We need something like a form which shall be used by many different (technically unexperienced) users; editing the entire page and using variables is a lot less intuitive than just clicking a section's "Edit" link. Disabling section editing for template generated pages entirely would be a (not too beautiful) workaround (cp. [ Feedback#<nowiki>__NOEDITSECTION__</nowiki> not working ]). --[ [User:tapaya|tapaya] ] 30-Mar-2009 02:36 PDT : This is actually a really tough bug to solve cleanly - the only workarounds I've come up with have been some pretty ugly hacks to the parsing code. The [ [Latest News] ] page on jamwiki.org suffers from the same issue you've described. I'll try to bump the priority for getting this resolved, but I'd first like to get a 0.7.1 bugfix release out so it may take a while to get resolved. Sorry! If you're comfortable with Java feel free to have a look at WikiHeadingTag.java as well as the parseSlice and parseSplice functions in JFlexParser and see if you've got any ideas. – [ [User:wrh2|Ryan] ] • ([ [User comments:wrh2|comments] ]) • 31-Mar-2009 08:38 PDT

          People

          • Assignee:
            Ryan Holliday
            Reporter:
            Ryan Holliday
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: