#177 open
dleffler

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

Reported by dleffler | May 5th, 2011 @ 02:23 PM

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

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

Tags

Pages