Needs work
Project:
Fieldable Panels Panes (FPP)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Dec 2012 at 20:16 UTC
Updated:
14 Mar 2017 at 17:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reid#1536944: Allow panes to be translated has been committed, so un-postponing this.
Comment #2
mrfelton commentedInitial patch that pulls the code out from the original patches in #1536944: Allow panes to be translated in order to handle conversion of the path property to a field, which can then be translated properly.
Comment #3
mrfelton commentedPatch updated to include (crappy) support for the title field from #1860484: Add support for Title module field. This needs work, but does the job for my current use case.
Comment #4
mrfelton commentedSeems none of the previous patches had the update or install hooks for some reason. Patch updated.
Comment #5
damienmckenna@Dave Reid: Given your experience with Pathauto and other path-related modules, do you think this is the correct approach?
Comment #6
damienmckennaComment #7
damienmckennaComment #8
damienmckennaTestbot, do your thing.
Comment #11
dsnopekLooking at the patch, the
hook_install()is creating the field and instance, but that only happens initially when the module is first installed. Thehook_update_N()is moving the data from the column on 'fieldable_panels_panes' to the new field, but it isn't creating the field and instance!Also, when users add a new FPP type via the UI, it doesn't appear to be creating the new instance (unless I'm missing it somewhere).
Marking as "Needs work"!
Comment #13
damienmckennaRemoving this from the schedule for 1.6.
Comment #14
t0xicCode commentedThe target of the link being saved as a property named
pathhas an unintended consequence when #936222: Merge in pathauto_persist module functionality to prevent losing manual aliases with node_save() calls is also applied: fieldable_panels_panes cannot load the value of the path property, as pathauto transforms it to an array and adds its own keys to it.This is because pathauto expects the
pathproperty of an instance to be the path to the instance, as defined in the core path module. However, FPP uses that property to signify the target of the link. Moving this to a field would prevent pathauto (with that patch) from clobbering the field on entity load.Comment #15
t0xicCode commentedI believe this patch properly sets up and converts the path property to a path field.
Comment #16
dave reidThe patch in #15 would be a lot easier to review without all the unnecessary whitespace and alignment changes.
Comment #17
lunazoid commentedThank you @t0xicCode!!! I spent more time than I care to admit digging through code to figure out why the links were getting messed up after our server upgraded to php 5.6. The patch in #15 took care of our problem. Since I've already invested so much time, I can probably put in a little more to clean up the alignment and whitespace issues.
Comment #18
lunazoid commentedHere's the patch from #15, with the unnecessary reformatting removed. I also noticed that while the patch referenced moving the path field to the link fold, it didn't actually implement this. My re-roll should take care of that as well.
Comment #19
t0xicCode commentedThanks @lunazoid. This issue queue fell through the cracks of my email.
Comment #20
lunazoid commentedJust realized that in the validation function, entity_language was sometimes returning nothing for me. This updated patch will cause it to default to LANGUAGE_NONE.
Comment #21
damienmckennaI'm tempted to mark this as "works as designed" because FPP objects are not really intended to be viewed on their own, they're really just intended to be an equivalent to fieldable blocks with extra Panels gravy..
Are people using FPP as standalone, end-user visible entities? If so, what was the rationale to do so instead of e.g. a content type?
Comment #22
chaps2 commentedWe're using FPP as intended but the incompatibility with pathauto described here #2494733: Incompatibility between Pathauto and Fieldable-Panels-Panes lead us to trying this patch.
I think @t0xicCode makes a very valid point in comment #14 that the FPP title link is not the same thing as the entity path so shouldn't be stored in the path property.
Patch in #20 works well. Existing content was successfully updated by the update hooks.
Comment #23
damienmckennaNeeds tests.
Comment #24
damienmckenna