Closed (fixed)
Project:
Fieldable Panels Panes (FPP)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 May 2014 at 20:02 UTC
Updated:
27 Jan 2015 at 16:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damienmckennaPer suggestion from indytechcook, this has been added to PanelsPaneController->buildContent(), which is called by PanelsPaneController->view().
Comment #2
damienmckennaWhile it may not be the best approach to hardcode the HTML tag that's used, I think it's reasonable to use H2 as that's what block.tpl.php uses.
Comment #4
damienmckennaWrong file. Doh.
Comment #5
damienmckennaComment #6
damienmckennaThis version makes the title a link, if requested.
Comment #7
damienmckennaForgot that the title field was optional, so only output it if it's not empty.
Comment #8
dsnopekThis patch works great! But, unfortunately, this will immediately cause the title to be displayed twice when using the FPP on a Panel (because it's already displaying it through Panels).
So, I think this needs two changes to make it really useful:
/admin/structure/fieldable-panels-panes/view/%) which DOES show the 'Title' field by defaultThis would then work great in combination with #1588882: Use title for entity label when admin_title isn't present, when you have both the 'admin_title' and 'title' set. Otherwise, you only get to see the 'title' after clicking the 'Edit' tab.
Comment #9
dsnopekHere is an updated version of this patch that makes the changes I described above in #8.
Please let me know what you think!
Comment #10
damienmckenna@dsnopek: FYI I've just committed #2092477: Make pane title use view mode, so is this issue still necessary?
Comment #11
damienmckennaThis adds a short note to the README.txt file about the new view mode being used for the full display.
Comment #12
damienmckennaRerolled.
Comment #15
damienmckennaComment #16
mglamanApplies clean, works as detailed in comments above. When viewing the entity directly I now see the set title, when it's embedded as a pane only the pane title displays.
Comment #17
damienmckennaThanks for the review, mglaman. Committed!
Comment #20
dsnopekHere is a backport of the patch which was committed to FPP 1.5. Feel free to ignore this! It's only useful if you want to include it in a .make file which uses FPP 1.5, rather than the latest -dev.