How to create a custom parsys with specialized styling per paragraph? | Community
Skip to main content
Level 2
October 16, 2015
Solved

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

  • October 16, 2015
  • 2 replies
  • 909 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

Hi HarrisonReed,

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

Thanks,
Sham
Tweet: @adobe_sham

2 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

Hi HarrisonReed,

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

Thanks,
Sham
Tweet: @adobe_sham

Level 2
October 16, 2015

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?