Hi,

I don't know how much I can help you, since you're using a modified version of an older version of SF. Hopefully one of the SMW+ people can assist here. I do have one question, though: why do you have both "Has default form" and "Creates pages with form" set for the same property? That shouldn't be done, as far as I know.

-Yaron

On Wed, Dec 8, 2010 at 6:49 PM, don undeen <donundeen@yahoo.com> wrote:
ok, so I ran a bunch of tests, and it seems like,
if I add a new "highlights object" object number, and that page doesn't exist yet, then the category for that page doesn't get registered, or disappears from the categorylinks table, and I don't get an "Edit with form" link.

that "Highlights Object" property is one that "creates pages with form" AND "has default form" so there's a lot going on there that could cause screwy behaviour, I bet.

However, once I do a runJobs, which automatically creates that page, and I re-save the original page, I get the categorylinks entry back.

this seems like a strange edge case, but still, it indicates some wierd interactions in the code...

Don


From: don undeen <donundeen@yahoo.com>
To: don undeen <donundeen@yahoo.com>; smw dev list <semediawiki-devel@lists.sourceforge.net>
Sent: Wed, December 8, 2010 6:01:51 PM
Subject: Re: [SMW-devel] Semantic forms not "Edit With Form"-ing?

to add a little more detail:
I was lookign at the categorylinks table, and noticed that the category information for the new article is dropped, after the page is saved again, or if I do a runJobs after editing the template (hence causing a SMWUpdatejob)

Any idea why that would happen? Maybe there's an erro in my template code? I can't figure it out.
Any and all help would be greatly appreciated.

Thanks very much!



From: don undeen <donundeen@yahoo.com>
To: smw dev list <semediawiki-devel@lists.sourceforge.net>
Sent: Wed, December 8, 2010 5:33:40 PM
Subject: [SMW-devel] Semantic forms not "Edit With Form"-ing?

Hey guys,
I've got a simple semantic form and template, which I can use successfully to create a new page.
Then, I can click "Edit With Form" and edit (or not) and re-save the page.
However, once I've done that, I can no longer "Edit with form"; the link isn't there, and when I try to just enter the original "edit form form" link, I'm told it's not a valid URL.

Any idea what could be going on?
Version Info (the latest supported by SMWHalo):
MW 1.15.3
SF 1.9.1_1 (w/ halo patches)
Header Table 0.6.6
SMW 1.5.1_1 (w/ halo patches)
SMWHalo Version 1.5.1_4-for-SMW-1.5.1 [B47]


My Form Code is:
<noinclude>
This is the "Thematic Tour" form.
To create a page with this form, enter the page name below;
if a page with that name already exists, you will be sent to a form to edit that page.


{{#forminput:form=Thematic Tour}}
</noinclude><includeonly>
{{{info|add title=Add a new Thematic Tour|page name=<Thematic Tour[Thematic Tour Name]>}}}

<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{{for template|Thematic Tour}}}
{| class="formtable"
! Thematic Tour Name:
| {{{field|Thematic Tour Name}}}
|-
! Highlights Objects:
| {{{field|Highlights Objects|autocomplete from url=met_objects}}}
|-
! Related Activities:
| {{{field|Related Activities|input type=textarea}}}
|}
{{{end template}}}

'''Free text:'''

{{{standard input|free text|rows=10}}}


{{{standard input|summary}}}

{{{standard input|minor edit}}} {{{standard input|watch}}}

{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
</includeonly>

And My template code is:
<noinclude>
This is the "Thematic Tour" template.
It should be called in the following format:
<pre>
{{Thematic Tour
|Thematic Tour Name=
|Highlights Objects=
}}
</pre>
Edit the page to see the template text.
</noinclude><includeonly>
__SHOWFACTBOX__

{| class="wikitable"
! Thematic Tour Name
| [[ThematicTourName::{{{Thematic Tour Name|}}}]]
|-
! Highlights Objects
| {{#arraymap:{{{Highlights Objects|}}}|,|x|[[HighlightsObject::x]]}}
|-
! Related Activities
| {{{Related Activities|}}}
|}

[[Category:Thematic Tour]]
</includeonly>

Any Ideas?

Thanks all!


------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel




--
WikiWorks MediaWiki Consulting http://wikiworks.com