Reassigning field types
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team

    Hi devs,

    In preparing the Newscoop manual, I've run into a couple of undocumented
    features.

    In the Article type fields page, e.g.
    http://newscoop-dev.sourcefabric.org/master/admin/article_ty pes/fields/
    if I try to click on a Type of 'Multi-line Text with WYSIWYG' I get the
    message:

    Reassign a field type

    You cannot reassign this type.

    It's not really obvious why, because it seems I can reassign the other
    five types (for instance, single line text to multi-line text). Does
    anyone know the rationale for this?

    Also, there is a column for 'Is Content' with checkboxes for certain
    fields. Does this have to do with making content available to the Search
    feature?

    Cheers!

    Daniel
  • 5 Comments sorted by
  • Vote Up0Vote Down Sava TatićSava Tatić
    Posts: 113Member, Administrator, Sourcefabric Team
    Hi Daniel,

    Here are my quick anwers:

    On Fri, Jan 21, 2011 at 5:47 PM, Daniel James <
    newscoop-dev@lists.sourcefabric.org> wrote:

    > In the Article type fields page, e.g.
    > http://newscoop-dev.sourcefabric.org/master/admin/article_ty pes/fields/< http://newscoop-dev.sourcefabric.org/master/admin/article_ty pes/fields/>
    > if I try to click on a Type of 'Multi-line Text with WYSIWYG' I get the
    > message:
    >
    > Reassign a field type
    >
    > You cannot reassign this type.
    >
    > It's not really obvious why, because it seems I can reassign the other
    > five types (for instance, single line text to multi-line text). Does
    > anyone know the rationale for this?
    >

    As far as I remember (and it still makes sense to me) You can upgrade
    smaller fields to bigger, but not viceversa. You'd lose text in old articles
    that are using that article type.

    >
    > Also, there is a column for 'Is Content' with checkboxes for certain
    > fields. Does this have to do with making content available to the Search
    > feature?
    >

    I believe this was in the old manual. But what this means in its cryptical
    way is that Newscoop counts the article is read when this field is served.
    E.g. if you had an article type where text is broken into two fields, deck
    and body, you'd mark body as content.


    All the best,

    Sava

    >
    > Cheers!
    >
    > Daniel
    >
    >

  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team

    Hi Sava,

    > As far as I remember (and it still makes sense to me) You can upgrade
    > smaller fields to bigger, but not viceversa. You'd lose text in old articles
    > that are using that article type.

    That does indeed make sense. I've added a mention of this to the manual
    chapter on Article Types.

    > what this means in its cryptical
    > way is that Newscoop counts the article is read when this field is served.
    > E.g. if you had an article type where text is broken into two fields, deck
    > and body, you'd mark body as content.

    On the demo server, both lead/SMS and body are marked as content:

    http://newscoop-dev.sourcefabric.org/master/admin/article_ty pes/fields/?f_article_type=news_article

    I suppose that means if only the SMS field is served, it still counts as
    a read. But if both fields are served, does it count as two reads?

    Also, when creating a new Template Field Name, there is no option (that
    I can see) to mark this field as content. The new field defaults to N/A
    in the 'Is Content' column. Is that hard coded?

    Cheers!

    Daniel
  • "I suppose that means if only the SMS field is served, it still counts as
    a read. But if both fields are served, does it count as two reads?"
    No

    "Also, when creating a new Template Field Name, there is no option (that
    I can see) to mark this field as content. The new field defaults to N/A
    in the 'Is Content' column. Is that hard coded?"
    Only multi-line text fields can be marked "is content". Select "multiline
    text with wysiwyg" and you'll see that option.


    Mugur Rus
    Senior Software Developer, Sourcefabric
    mugur.rus@sourcefabric.org

    Cluj-Napoca, Romania
    +40 (0)720 528408
    Skype: mugur_rus

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric



    On Wed, Feb 2, 2011 at 2:32 PM, Daniel James <
    newscoop-dev@lists.sourcefabric.org> wrote:

    >
    > Hi Sava,
    >
    >
    > > As far as I remember (and it still makes sense to me) You can upgrade
    > > smaller fields to bigger, but not viceversa. You'd lose text in old
    > articles
    > > that are using that article type.
    >
    > That does indeed make sense. I've added a mention of this to the manual
    > chapter on Article Types.
    >
    >
    > > what this means in its cryptical
    > > way is that Newscoop counts the article is read when this field is
    > served.
    > > E.g. if you had an article type where text is broken into two fields,
    > deck
    > > and body, you'd mark body as content.
    >
    > On the demo server, both lead/SMS and body are marked as content:
    >
    > http://newscoop-dev.sourcefabric.org/master/admin/article_ty
    > pes/fields/?f_article_type=news_article< http://newscoop-dev.sourcefabric.org/master/admin/article_ty pes/fields/?f_article_type=news_article>
    >
    > I suppose that means if only the SMS field is served, it still counts as
    > a read. But if both fields are served, does it count as two reads?
    >
    > Also, when creating a new Template Field Name, there is no option (that
    > I can see) to mark this field as content. The new field defaults to N/A
    > in the 'Is Content' column. Is that hard coded?
    >
    > Cheers!
    >
    > Daniel
    >
    >

  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team

    Hi Mugur,

    > "Also, when creating a new Template Field Name, there is no option (that
    > I can see) to mark this field as content. The new field defaults to N/A
    > in the 'Is Content' column.

    > Only multi-line text fields can be marked "is content". Select "multiline
    > text with wysiwyg" and you'll see that option.

    Ah, I see that now - thanks! I have added an extra paragraph about this
    to the Article Types page of the manual.

    Cheers!

    Daniel
  • Vote Up0Vote Down Sava TatićSava Tatić
    Posts: 113Member, Administrator, Sourcefabric Team

    Finally documented, after all those years!

    :)

    Sava

    On Wednesday, February 02, 2011 14:24:17 you wrote:
    > Hi Mugur,
    >
    > > "Also, when creating a new Template Field Name, there is no option (that
    > > I can see) to mark this field as content. The new field defaults to N/A
    > > in the 'Is Content' column.
    > >
    > > Only multi-line text fields can be marked "is content". Select "multiline
    > > text with wysiwyg" and you'll see that option.
    >
    > Ah, I see that now - thanks! I have added an extra paragraph about this
    > to the Article Types page of the manual.
    >
    > Cheers!
    >
    > Daniel
    >
    >
    > To participate in the discussion, go here:
    > http://forum.sourcefabric.org/index.php?t=rview&frm_id=1 1

    --
    Sava Tatić
    Managing director, Sourcefabric o.p.s.
    sava.tatic@sourcefabric.org

    Salvátorská 10
    110 00 Praha 1, Czech Republic
    +420 2 22 36 25 40
    +1 647 889 2811 (Toronto)
    Skype: tictactatic

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric