Mailing List Archive

[Cargo] editing class
Hi folks,

If I create a new class with Special:CreateClass, what is the procedure for
later editing the class? Do I need to edit the template and form separately
after their initial creation? Ideally, I'd like to develop my data model
iteratively. Any instances of a class would just have empty values for
parameters added later to the class. Is that possible? My classes look like

-david
Re: [Cargo] editing class [ In reply to ]
Hi David,

This is really a Page Forms, not Cargo, question, but yes, you do need to
modify both the template and form pages whenever you modify the data
structure. I'm working on simplifying form pages, with the eventual goal of
not requiring a form definition at all and just getting everything from the
template definition, but that might be a ways off.

There's also another option, which is to use the Page Schemas class, which
lets you define each "class" in just one place:

https://www.mediawiki.org/wiki/Extension:Page_Schemas

This might be overkill, though, depending on your needs.

-Yaron

On Sat, Aug 21, 2021 at 4:33 PM David Epstein <davideps@umich.edu> wrote:

> Hi folks,
>
> If I create a new class with Special:CreateClass, what is the procedure
> for later editing the class? Do I need to edit the template and form
> separately after their initial creation? Ideally, I'd like to develop my
> data model iteratively. Any instances of a class would just have empty
> values for parameters added later to the class. Is that possible? My
> classes look like
>
> -david
>
>
>
> _______________________________________________
> MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
> List information:
> https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
>


--
WikiWorks · MediaWiki Consulting · http://wikiworks.com
Re: [Cargo] editing class [ In reply to ]
I understand. thanks Yaron!

On Mon, Aug 23, 2021 at 10:20 AM Yaron Koren <yaron57@gmail.com> wrote:

> Hi David,
>
> This is really a Page Forms, not Cargo, question, but yes, you do need to
> modify both the template and form pages whenever you modify the data
> structure. I'm working on simplifying form pages, with the eventual goal of
> not requiring a form definition at all and just getting everything from the
> template definition, but that might be a ways off.
>
> There's also another option, which is to use the Page Schemas class, which
> lets you define each "class" in just one place:
>
> https://www.mediawiki.org/wiki/Extension:Page_Schemas
>
> This might be overkill, though, depending on your needs.
>
> -Yaron
>
> On Sat, Aug 21, 2021 at 4:33 PM David Epstein <davideps@umich.edu> wrote:
>
>> Hi folks,
>>
>> If I create a new class with Special:CreateClass, what is the procedure
>> for later editing the class? Do I need to edit the template and form
>> separately after their initial creation? Ideally, I'd like to develop my
>> data model iteratively. Any instances of a class would just have empty
>> values for parameters added later to the class. Is that possible? My
>> classes look like
>>
>> -david
>>
>>
>>
>> _______________________________________________
>> MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
>> List information:
>> https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
>>
>
>
> --
> WikiWorks · MediaWiki Consulting · http://wikiworks.com
> _______________________________________________
> MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
> List information:
> https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
>