Expand my Community achievements bar.

SOLVED

How to create a custom parsys with specialized styling per paragraph?

Avatar

Level 2

See the following question: http://stackoverflow.com/q/26170939/269061

I'm trying to create a custom parsys that flows paragraphs based on properties of each paragraph component (i.e. paragraph width = 100% | 50% | 33% | 25%). I'm also adding several classes to the decoration tag for styling purposes.

However, when I drag a new component into my custom parsys, it doesn't pick up any of the classes. If I refresh the pages and let my custom parsys component re-layout the components, it adds the classes appropriately. Is there some way I can get these css classes on components that are newly dropped onto my custom parsys?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi HarrisonReed,

   Create a listener with refresh in your component. http://helpx.adobe.com/experience-manager/kb/RefreshPageWhenModifyDialog.html

Thanks,
Sham
Tweet: @adobe_sham

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi HarrisonReed,

   Create a listener with refresh in your component. http://helpx.adobe.com/experience-manager/kb/RefreshPageWhenModifyDialog.html

Thanks,
Sham
Tweet: @adobe_sham

Avatar

Level 2

I have the listeners working, but for some reason, I can't get REFRESH_PARENT to work properly; instead of causing just the parent component to refresh via AJAX, it causes the entire page to reload.  Can this event somehow bubble up past the parent component?  Is there something obvious I should be doing to prevent this?