I’m having trouble with the &cssTpl option - rather than simply inserting the code from the chunk, it inserts:
<link rel="stylesheet" type="text/css" href="MY CHUNK CONTENT">
I presume I’m doing something wrong, since I can’t find any other reports of this behaviour.
The documentation specifically says "name of chunk containing css you would like added to the page", not "name of chunk containing PATH TO css you would like added to the page"
Thanks for any help...
Hi, I just did the &cssTpl early in the morning, what I did is link my external style sheet like so in the chunk (css_menuTpl):
<link href="/css/menu.css" rel="stylesheet" type="text/css"/>
then in my Wayfinder call in the the template, I inserted this: "&cssTpl=`css_menuTp`
Note, it may not be the case for you but just in case: I first used the <link href="[(base_url)]css/menu.css" rel="stylesheet" type="text/css"/> but it didn’t pick up my menu style sheet, so I changed it to relative path. I am working from local server, so that maybe the reason it’s not picking the [(base_url).
yup, that’s it - if it’s surrounded by <style type="text/css"> and </style> it inserts it, otherwise treats it as a link to the stylesheet - not explained in the docs.
Thanks for the help!