[system-asset] is not working
I'm trying to add some glyphicons. I have gone into the css and add the the [system-asset]...[/system-asset] and corrected the path to the font file but it is not out putting the /renderfile/ in the urls.
I have attached the css file and the exciting bootstrap min file that already exists and works?
- glyphicons-filetypes-with-system-asset.css 9.04 KB
- bootstrap.min.css 120 KB
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Wing Ming Chan on 14 Sep, 2015 02:12 PM
Hi,
Would you please confirm that the checkbox
Rewrite links in file
(Edit -> System) is checked?Wing
2 Posted by Ryan Griffith on 14 Sep, 2015 03:38 PM
Also, if these files are within a different Site, make sure you prefix the paths with
site://SITE_NAME
to tell Cascade which Site the assets can be found in.3 Posted by ellen.donovan on 14 Sep, 2015 06:17 PM
Closer.
The rewrite links in file was not checked.
They still are not displaying?
Here is a link to the page:
http://cmstst.slcc.edu/accounting/index.aspx
It is set up the same way as my bootstrap.min file?
4 Posted by Ryan Griffith on 15 Sep, 2015 01:09 PM
Hi Ellen,
When viewing your page, I am seeing 404 errors when the browser attempts to load the files (see attached screenshot). Looks like the generated path looks something like the following:
One thing you could try is to check the Maintain absolute links when rewriting and re-publish the file to see if perhaps the issue is related to the sub-domain preventing the relative link from mapping to the correct directory.
Please let me know if you have any questions.
Thanks!
5 Posted by Ryan Griffith on 15 Sep, 2015 01:09 PM
Whoops, forgot to attach the screenshot.
6 Posted by ellen.donovan on 15 Sep, 2015 06:15 PM
Can you do a screen share with me for a minute?
7 Posted by ellen.donovan on 15 Sep, 2015 06:42 PM
I figured out that I was getting an error because of Smart Pubishing it was checked, I unchecked it and published them.
Skipped Jobs (10): [Top]
[Destination: newtemplate-cmstst] redesign common: redesign/_files/fonts/glyphicons-filetypes-regular.woff2 (Skipped due to smart publishing) [Destination: newtemplate-cmstst] redesign common: _redesign/_files/fonts/glyphicons-filetypes-regular.eot (Skipped due to smart publishing) [Destination: newtemplate-cmstst] _redesign common: _redesign/files/fonts/glyphicons-halflings-regular.ttf (Skipped due to smart publishing) [Destination: newtemplate-cmstst] _redesign common: _redesign/files/fonts/glyphicons-filetypes-regular.svg (Skipped due to smart publishing) [Destination: newtemplate-cmstst] _redesign common: _redesign/_files/fonts/glyphicons-halflings-regular.woff (Skipped due to smart publishing) [Destination: newtemplate-cmstst] _redesign common: _redesign/files/fonts/glyphicons-halflings-regular.eot (Skipped due to smart publishing) [Destination: newtemplate-cmstst] redesign common: redesign/_files/fonts/glyphicons-filetypes-regular.ttf (Skipped due to smart publishing) [Destination: newtemplate-cmstst] _redesign common: _redesign/files/fonts/glyphicons-halflings-regular.svg (Skipped due to smart publishing) [Destination: newtemplate-cmstst] _redesign common: _redesign/files/fonts/glyphicons-halflings-regular.woff2 (Skipped due to smart publishing) [Destination: newtemplate-cmstst] _redesign common: _redesign/_files/fonts/glyphicons-filetypes-regular.woff (Skipped due to smart publishing)
Successful Jobs (10): [Top]
[Destination: newtemplate-cmstst] redesign common: redesign/_files/fonts/glyphicons-filetypes-regular.eot [Destination: newtemplate-cmstst] redesign common: _redesign/_files/fonts/glyphicons-filetypes-regular.svg [Destination: newtemplate-cmstst] _redesign common: _redesign/files/fonts/glyphicons-halflings-regular.woff2 [Destination: newtemplate-cmstst] _redesign common: _redesign/files/fonts/glyphicons-halflings-regular.woff [Destination: newtemplate-cmstst] _redesign common: _redesign/_files/fonts/glyphicons-halflings-regular.svg [Destination: newtemplate-cmstst] _redesign common: _redesign/files/fonts/glyphicons-filetypes-regular.woff [Destination: newtemplate-cmstst] redesign common: redesign/_files/fonts/glyphicons-halflings-regular.eot [Destination: newtemplate-cmstst] _redesign common: _redesign/files/fonts/glyphicons-filetypes-regular.ttf [Destination: newtemplate-cmstst] _redesign common: _redesign/files/fonts/glyphicons-filetypes-regular.woff2 [Destination: newtemplate-cmstst] _redesign common: _redesign/_files/fonts/glyphicons-halflings-regular.ttf
8 Posted by Ryan Griffith on 15 Sep, 2015 07:06 PM
Thank you for following up, Ellen. This sort of makes sense since you were making changes to the Destinations and not the File, so Cascade was assuming nothing needed to be done there.
I would suggest turning this back on; however, since it helps cut down on publish times by skipping files that have not been modified recently.
I'm going to go ahead and close this discussion, please feel free to comment or reply to re-open if you have any additional questions.
Have a great day!
Ryan Griffith closed this discussion on 15 Sep, 2015 07:06 PM.
ellen.donovan re-opened this discussion on 15 Sep, 2015 07:14 PM
9 Posted by ellen.donovan on 15 Sep, 2015 07:14 PM
Yes but the icons are still not showing up?
10 Posted by Ryan Griffith on 15 Sep, 2015 07:20 PM
Oh, sorry about that, didn't realize those URLs are still 404'ing.
Seems odd the other files are publishing just fine, but those two are not. Did you try temporarily disabling smart publishing and re-publishing those two files? Also, you could try un-publishing those two files and re-publish them again.
Please let me know if you have any questions.
Thanks!
11 Posted by ellen.donovan on 15 Sep, 2015 07:29 PM
How do you write the path if I'm going to another site within cascade
I moved the fonts to SLCC site.
so would it be?
site::SLCC/_common/_files/fonts/glyphicons-halflings-regular.woff
12 Posted by ellen.donovan on 15 Sep, 2015 07:29 PM
site://SLCC/_common/_files/fonts/glyphicons-halflings-regular.woff
Sorry typo
13 Posted by Ryan Griffith on 15 Sep, 2015 07:31 PM
Ah, that will do it. You are correct, use the
site://SITE_NAME
prefix before the path so Cascade knows what Site the asset is in. Then, re-publish the file and see if that addresses things.14 Posted by ellen.donovan on 15 Sep, 2015 07:36 PM
url() format('woff')
The URL doesn't show up?
15 Posted by Ryan Griffith on 15 Sep, 2015 07:46 PM
Looks like the path isn't being rewritten on publish. Are you surrounding the link with
[system-asset]
still?16 Posted by ellen.donovan on 15 Sep, 2015 07:52 PM
I took that off and it was correct but still the icons are not showing up
http://www.slcc.edu/_files/fonts/glyphicons-halflings-regular.woff (Does show up)
http://www.slcc.edu/_files/fonts/glyphicons-halflings-regular.woff2 (Doesn't show up)
17 Posted by ellen.donovan on 15 Sep, 2015 07:53 PM
Does it has something to do with the preferences? See screenshoot
18 Posted by ellen.donovan on 15 Sep, 2015 08:18 PM
OK now none of my icons are showing up. Help!
http://cmstst.slcc.edu/accounting/index.aspx
19 Posted by ellen.donovan on 15 Sep, 2015 08:53 PM
Ok, I reverted the
/_redesign/_files/css/glyphicons-filetypes.css and they came back.
20 Posted by Ryan Griffith on 16 Sep, 2015 01:08 PM
Hi Ellen,
Link rewriting would not be affected by your system preferences, it's all about the path you use when linking to the asset, if you use
[system-asset]
, and whether or not your File has the Rewrite Links in File option enabled.Based on this, it sounds like your files are not within a different Site, so you won't need the
site://
prefix. That being said, using thesite://
prefix shouldn't hurt anything as long as you are linking to the correct Site. Sounds like you might not be, which is why the path was never rewritten in the published file.Please let me know if you have any questions.
Thanks!
21 Posted by Ryan Griffith on 24 Sep, 2015 12:51 PM
Hi Ellen,
It was a pleasure meeting you at the conference this year!
Just wanted to follow up here since we looked into this during the conference. Were you able to speak with your system administrator to see if those files are being published to the web server and/or if the server is able to handle those file types?
Please let me know if you have any questions.
Thanks!
Tim closed this discussion on 08 Oct, 2015 07:52 PM.