Hi Ben,
Wow, great! I believe this is the first real-world usage that I've seen of
the new "section" feature in Semantic Forms. (It was added in version 2.6,
about a month ago.) Unfortunately, it's accompanied by the first-ever bug
report. :) Your diagnosis is correct - the subsections within that section
are messing up the parsing. I guess we didn't think about the possibility
of users adding subsections when we planned this feature. We'll look into
this - maybe there's an easy fix. If you want to look into it yourself, I
think the relevant code is around lines 1415-1450 of
/includes/SF_FormPrinter.php.
To answer your other question: you can make an output like that, via a
hack: make the top introductory text be another field within the main
template, and then have the template display that field by itself, above
the infobox table.
(You could also, in theory, take that same approach for all the page
sections below the infobox - and some people have done that - although
that's an even bigger hack, and it leads to various problems, most notably
that parsing gets messed up if there's a "|" anywhere in the text.)
-Yaron
On Wed, Nov 20, 2013 at 4:43 PM, Benjamin Pelletier <bjpcalt...@gmail.com>wrote:
> Issue 1:
> I have a category of pages called Canyons and I've designed my Semantic
> Form to allow entering a bunch of simple data followed by a number of
> pre-determined sections. This is great for creating pages, but SF seems to
> choke when parsing the page content back into the pre-determined sections
> if subsections (=== subsection ===) are used.
>
> For example, this page works fine -- view the form to see all the content
> placed into the correct section boxes:
> http://ropewiki.com/index.php/Test_Canyon_2
>
> But, this page is hopelessly mangled -- view the form to see content
> placed all over the place (and partially duplicated!):
> http://ropewiki.com/index.php/Test_Canyon
> As you can see, the Approach content is truncated at the subsection
> marker, the rest of the Approach content is put into Free text, the Descent
> section is also put into Free text (!) but also duplicated in Descent, the
> Exit info is appended to Descent, etc, etc
>
> Is there already a known bug for dealing with this problem? Is there
> anything I can do differently to get things to work properly (other than
> not using subsections -- that's not an acceptable solution)?
>
> Issue 2:
> What I'd really like to do is to not have a section header for
> Introduction so that the text in that box gets placed above the table of
> contents. Basically, I want the result to look like this:
> http://ropewiki.com/index.php/Eaton_Canyon
>
> Is it possible to define a section-headerless page section in a Semantic
> Form and also have Free text at the end (or where ever)?
>
> Where in the SF code should I go to find the routine that parses current
> page content into a form to see how it works?
>
> Thanks, and thanks for creating such a great product!
> --Ben
>
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up
> now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
>
--
WikiWorks · MediaWiki Consulting · http://wikiworks.com
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel