Static Page customization- config.yml

29 views
Skip to first unread message

Jayachristrayar S

unread,
Jun 4, 2024, 5:14:28 AMJun 4
to AtoM Users
Even though I set the value in the config.yml file to htmlpurifier_enabled: false, I'm struggling to effectively customize my static page with CSS and HTML. I'm aiming for a layout featuring two columns and two rows, but my attempts haven't been successful. Could you provide a solution to achieve this?  

Dan Gillean

unread,
Jun 4, 2024, 8:17:41 AMJun 4
to ica-ato...@googlegroups.com
Hi there, 

There are some helpers on static pages that attempt to make it a bit like a WYSIWYG editor, so for example it will interpret carriage returns as line breaks, etc. This can break HTML, so what I have found works in the past is to remove all line breaks and indentation from your HTML in blocks when it's ready to go into the page. 

If you log in using the credentials on the homepage, you can enter edit mode and look at this Help page on the AtoM demo site as an example - there's a small table there for example. To get it to work, I had to remove all the linebreaks and indentation that normally makes HTML more human-readable - but this allowed it to bypass the formatting helpers that were preventing the HTML from working as expected. 

Hopefully experimenting with this a bit will help you - good luck! 


Dan Gillean, MAS, MLIS
Business & User Experience Analyst
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


On Tue, Jun 4, 2024 at 5:14 AM Jayachristrayar S <sjayachr...@gmail.com> wrote:
Even though I set the value in the config.yml file to htmlpurifier_enabled: false, I'm struggling to effectively customize my static page with CSS and HTML. I'm aiming for a layout featuring two columns and two rows, but my attempts haven't been successful. Could you provide a solution to achieve this?  

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/683c6a51-9a34-456d-979c-6eabea5ec779n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages