#177 ✓wontfix

Bug: Multi-action/single-view modules don't content display (view) names correctly

Reported by dleffler | May 5th, 2011 @ 02:23 PM | in 2.0.9 (closed)

This anomaly only appears in the create/edit module screen, the system displays the content and WORKS as expected!

In a module/controller (newly updated snippetController), if you have multiple actions (showall and highlight) that use the same (default) view 'showall', the action name appears correctly, but the available view name is 'highlight - Default'. Again, things work, but this list is poorly displayed (lowercase and underscores if method name contains them)

My work-around is to COPY the view template and give it the same name as the action. I also tried other approaches like using a different method name such as showall_highlight which appears in the list as 'showall_highlight - Default'. However, the end result is the same, the content is displayed as expected, but the 'content display' dropdown list in the module create/edit screen doesn't look nice.

Maybe I have the wrong concept of MVC, but if you can use the same view to display any data the controller or model spits, shouldn't you be able to use the same view?

Maybe this is a one-time scenario (two actions, single view) and may not be worth addressing.

Comments and changes to this ticket

  • dleffler

    dleffler May 5th, 2011 @ 02:42 PM

    Correction - If you don't have "showall" in the method name, the content is not displayed...therefore, the current interation of the controll uses the method name of 'showall_highlight' with NO assoc template, therefore it uses the default view (as expected)

    The name displayed in the Content Display drop-down list is 'showall_highlight - Default'

  • dleffler

    dleffler September 24th, 2011 @ 09:12 PM

    • Title changed from “?? Multi-action/single-view modules don't content display (view) names correctly” to “Bug: Multi-action/single-view modules don't content display (view) names correctly”
    • Assigned user cleared.
  • dleffler

    dleffler May 15th, 2012 @ 12:15 AM

    • State changed from “new” to “open”
  • dleffler

    dleffler September 17th, 2012 @ 01:35 PM

    • State changed from “open” to “wontfix”
    • Assigned user set to “dleffler”
    • Milestone set to 2.0.9
    • Milestone order changed from “59” to “0”

    The best solution is to have the logic within a single action to determine the view (variation?) and provide the appropriate output, OR output all variations and reference the appropriate variation/variable within that template.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket