Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hello,
We had a stylesheet created for our company. Due to recent changes to our formatting requirements, one of two published pages in our book needs to display different content. It seemed the best approach was to copy an existing ufe (_ufe:SignatureBlock). I was able to do so in Styler, and rename the copy as desired (_ufe:SignatureLOEPBlock).
However, I can't find anyway to properly edit the markup to point at the new ufe. I checked in the forums and on the web, but couldn't locate a solution. Thanks for any help,
Jeff
Solved! Go to Solution.
How are you editing the stylesheet? If you use the Styler UI, it should be pretty easy, open the Generated Content item you want to modify and choose from the menus Insert->User Formatting Element->_ufe:LOEPSignatureBlock.
From your screenshot, it looks like you might be simply opening the stylesheet in Arbortext Editor as a generic XML file and trying to modify it that way. That's not recommended, since the regular editor won't understand a lot of the semantics of stylesheet markup when editing that way. Also, elements like UFEs won't appear in the usual "insert element" UI widgets, so you would have to resort to using an "insert tag" command or something similar, which may be why you are getting unexpected results. Everything will be easier if you edit in Styler:
Hi Jeff--
It's not 100% clear what you are trying to accomplish here. I guess you have one page where you want the old UFE to apply, and another similar page, where you want a similar but modified UFE to apply instead. Is that right? If so, there are a couple of ways you could approach it:
except you would have _ufe:SignatureBlock with conditions for something like "_ufe:SignatureBlock in toc" and "_ufe:SignatureBlock in loep" or whatever markup context determines which variant you want to use.
Hi Clay,
Yes, you are correct as to my intent. I believe the first method you suggest would work, but we have pursued something more like your second method, I created a copied/renamed Element ("LOEPSignatureBlock"), PageRegion ("LOEP_Signature_Block"), GeneratedContent ("LOEP_Signature_Block") and changed the PageRegionReference. to "LOEP_Signature_Block".
Unfortunately, I can't figure out how to add "_ufe:SignatureLOEPBlock" to the stylesheet to replace "_ufe:SignatureBlock". I attached a screenshot with some comments.
Thanks for your help! Please let me know if there are any other details I can provide.
Regards,
Jeff
How are you editing the stylesheet? If you use the Styler UI, it should be pretty easy, open the Generated Content item you want to modify and choose from the menus Insert->User Formatting Element->_ufe:LOEPSignatureBlock.
From your screenshot, it looks like you might be simply opening the stylesheet in Arbortext Editor as a generic XML file and trying to modify it that way. That's not recommended, since the regular editor won't understand a lot of the semantics of stylesheet markup when editing that way. Also, elements like UFEs won't appear in the usual "insert element" UI widgets, so you would have to resort to using an "insert tag" command or something similar, which may be why you are getting unexpected results. Everything will be easier if you edit in Styler:
Ah, I see! The problem I had while in Styler was I didn't know how to select the Generated Content view.
Once that list populated, I was easily able to add the new _ufe element to my markup.
I still have a lot to learn, but this makes sense to me now. Thank you so much for your help!
Regards,
Jeff
You're welcome, I'm glad it helped!