Skip to main content

title in print template from site.xml

Comments

4 comments

  • Permanently deleted user

    Is it because you dont have the undescore in the Control dataField?

    You have MapTitle, when the other sections reference _MapTitle.

     

    Cathy

    0
  • Permanently deleted user

    Hi Cathy,

    I tried what you suggested, the title turned out empty instead of the error.

    What I think should happen is, in PrintTemplate.rpx, the control has a DataField="MapTitle" so it get's the data from the CalculatedField Name="MapTitle". That CalculatedField has a Formula="_MapTitle" which refers to the Site.xml which has a TextField with DataFieldName="MapTitle".

    Any other ideas?

     

    Thanks!

    0
  • Permanently deleted user

    Ok, this seems kind of quirky.

    What DOES work is this:

    In Site.xml:

    <TextField DataFieldName="_MapTitle" DisplayName="_MapTitle" MultiLine="false" Value="Map Title" />

    And in template.rpx:

    <Control Type="AR.Field" Name="_MapTitle" DataField="_MapTitle" Left="12330" Top="1890" Width="2520" Height="360" Style="text-align: center; font-weight: bold; font-size: 10pt; vertical-align: middle; " />

    (and no CalculatedField).

     

    The problem is, and perhaps all along, is that when I add Editable="false" to the TextField entry in site.xml then nothing gets displayed. I do not want the user to be able to change the map title.

    Any ideas? Is Editable="false" incorrect?

     

    Thanks!

    0
  • Permanently deleted user

    Unfortunately this seems to be a bug. You cannot currently have a configurable text field which is not user editable -- it just shows up blank, as you have experienced. I've filed this in our bug tracker so that it can be addressed in an upcoming release of Essentials.

    0

Please sign in to leave a comment.