since ‎24-06-2020
‎05-02-2021
SiriusRex
Level 1
Distinguishing between "view as published" and actually published for custom CSS
Avatar

SiriusRex

SiriusRex
- Adobe Experience Manager
We have a unique situation where our AEM content is reverse proxied into an HTML container. This outer container holds the tags for the page, as well as all the CSS and JS calls for the site. While authoring in AEM, I want to be able to use one of the CSS files to help authors see the final styling. I have a solution that is 90% of the way there, however, it fails when an author chooses the "View as published" option. I'm using this conditional statement: This works for editing and the preview ...

Views

107

Likes

0

Replies

2
Re: Applying CSS/Clientlib to content in editor
Avatar

SiriusRex

SiriusRex
- Adobe Experience Manager
Hello again, @Nupur_Jain, thanks for your original reply. It helped me greatly. Now, however, I've run into a new situation: I want to be able to have the clientlib available in AEM's "View as Published" mode, which appends "wcmmode=disabled" to the end of the authoring URL. I thought I could test for "wcmmode.disabled = 'true'" but it turns out that when you publish the page, the value for wcmmode.disabled is also true, and so the clientlib is getting included and published along with the page....

Views

36

Likes

0

Replies

0
Re: Can I generate and export a list of authors in AEM?
Avatar

SiriusRex

SiriusRex
- Adobe Experience Manager
The first method gave me (more than) what I need, thank you very much!

Views

158

Likes

0

Replies

0
Can I generate and export a list of authors in AEM?
Avatar

SiriusRex

SiriusRex
- Adobe Experience Manager
From time to time, I get requests for a list of authors in AEM who belong to a specific permissions group. We don't yet have an integrated sign-on solution set up (which would allow us to tie internal teams to permission groups), so I'm stuck manually assembling these lists. I know AEM has always been more page-oriented, but I'm wondering if there's a tool that I'm unaware of that would let me export an author list.

Views

170

Likes

0

Replies

2
Re: Modifying the link target options in rich text editor
Avatar

SiriusRex

SiriusRex
- Adobe Experience Manager
Hi Anudeep, thank you for this suggestion. I agree it seems simpler to hide the items rather than try to remove them from the DOM. I do have a question around the clientlib: I have an existing clientlibs folder, with a "clientlib-authoring" folder under that. I'd like to place this new clientlib there, but does that mean creating a folder inside "clientlib-authoring" with a name like "linktargetfix" (for example) and the creating the .content.xml file, js, and txt files there? The "clientlib-aut...

Views

163

Likes

0

Replies

0
Modifying the link target options in rich text editor
Avatar

SiriusRex

SiriusRex
- Adobe Experience Manager
I've been asked to modify the Link dialog in AEM's rich text editor to remove unneeded target options like "parent frame" and "top frame." I found this method of removing items, but it's giving me an "undefined" error when I try to use it. I've searched for any information on possibly modifying this in the component dialog's .content.xml file, but there doesn't seem to be anything out there. In other components, we just have a simple URL input field along with a checkbox for "open in a new tab."...

Views

204

Likes

0

Replies

2
Re: Adding rich text formatting to a title component
Avatar

SiriusRex

SiriusRex
- Adobe Experience Manager
Ultimately, all I needed to do was create a data-attribute on the richtext node that I could target with authoring-specific CSS. The answers below all point to that, but I think maybe went in a direction that was too complex for what I was trying to do.

Views

172

Likes

0

Replies

0
Re: Adding rich text formatting to a title component
Avatar

SiriusRex

SiriusRex
- Adobe Experience Manager
I'd like to use the RTE for a title component, which generally implies a limited number of characters. Titles rarely exceed more than a few words, and having the full RTE box might suggest to our authors that they can insert longer than normal titles. I don't think we're at the point of limiting characters through validation. We just want a visual reinforcement of the idea that titles should be kept short.

Views

193

Likes

0

Replies

0
Re: Adding rich text formatting to a title component
Avatar

SiriusRex

SiriusRex
- Adobe Experience Manager
Unfortunately, I don't think we have dialog markdown that I can modify. I've only ever built the dialog using nodes/XML. I'm assuming that maybe I can add a custom data variable that can be used for targeting by CSS.

Views

217

Likes

0

Replies

0
Adding rich text formatting to a title component
Avatar

SiriusRex

SiriusRex
- Adobe Experience Manager
A designer on our team is asking us to modify our Title component to allow the use of bold formatting on part or all of the title. Bolding the whole thing would be easy enough, but it's the partial bolding of text that I can't figure out. I've tried switching the field to richtext and then eliminating all plugins except the bold formatting. But the problem there is that now I have a huge text entry box and I can't figure out how to make it one line. I'm wondering if there's a different approach ...

Views

308

Likes

0

Replies

7
Applying CSS/Clientlib to content in editor
Avatar

SiriusRex

SiriusRex
- Adobe Experience Manager
TL;DR - I'm trying to apply a clientlib to the page content in editor.html without it being included in the published content. AEM has a clientlib for FontAwesome here: /etc/clientlibs/acs-commons/vendor/fontawesome/css/font-awesome.css.This is included in editor.html, but because the content of the page is actually in an iframe, the font-awesome styles don't apply to any of the components. I'm trying to figure out how I can either 1) use the existing CSS call to apply to the contents in the ifr...

Views

386

Likes

0

Replies

3