I have duplicated my title field. Using a numeric suffix, Views Advanced help is not consistent whether there is no separator, or whether an underscore, or hyphen is used:

  • Advanced help tells me:
    "if there are two "title" fields in a view, one will be 'title' and the other will be 'title1'"
  • Theming information mentions:
    Field Node: Title (ID: title)
    Field Node: Title (ID: title_1)
  • Theming information template filenames mention:
    views-view-field--title.tpl.php, etc
    views-view-field--title-1.tpl.php

I think the Advanced help documentation just needs to mention that there will be a numeric suffix, and that

  • The field name uses an underscore as a separator
  • The field template filename uses a hyphen as a separator
CommentFileSizeAuthor
#3 998082-adv-help-1.patch2.02 KBiamjon
#2 998082-adv-help.patch2.91 KBiamjon

Comments

merlinofchaos’s picture

Component: Code » Documentation

Okay, so the advanced help is missing the separator, true.

It's standard across Drupal to try to avoid using underscores in template names, so all underscores are automatically converted to hyphens. This isn't just a Views convention. Plus, since it's giving you the precise filename, it's assumed that you will cut and paste it or use the theme: information page to verify.

iamjon’s picture

Version: 6.x-2.9 » 6.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new2.91 KB

Patch attached.

iamjon’s picture

StatusFileSize
new2.02 KB

stupid whitespace

tim.plunkett’s picture

Assigned: Unassigned » esmerel
Status: Needs review » Reviewed & tested by the community

Patch still applies, and the information is still correct.
And AFAIK, this is true in 7.x-3.x now? Since entity_id_N went away.

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Committed to all branches.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.