[system-asset] is not working

ellen.donovan's Avatar

ellen.donovan

12 Sep, 2015 06:44 PM

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?

  1. 1 Posted by Wing Ming Chan on 14 Sep, 2015 02:12 PM

    Wing Ming Chan's Avatar

    Hi,

    Would you please confirm that the checkbox Rewrite links in file (Edit -> System) is checked?

    Wing

  2. 2 Posted by Ryan Griffith on 14 Sep, 2015 03:38 PM

    Ryan Griffith's Avatar

    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. 3 Posted by ellen.donovan on 14 Sep, 2015 06:17 PM

    ellen.donovan's Avatar

    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. 4 Posted by Ryan Griffith on 15 Sep, 2015 01:09 PM

    Ryan Griffith's Avatar

    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:

    http://cmstst.slcc.edu/_redesign/_files/fonts/glyphicons-halflings-regular.woff
    

    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. 5 Posted by Ryan Griffith on 15 Sep, 2015 01:09 PM

    Ryan Griffith's Avatar

    Whoops, forgot to attach the screenshot.

  6. 6 Posted by ellen.donovan on 15 Sep, 2015 06:15 PM

    ellen.donovan's Avatar

    Can you do a screen share with me for a minute?

  7. 7 Posted by ellen.donovan on 15 Sep, 2015 06:42 PM

    ellen.donovan's Avatar

    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. 8 Posted by Ryan Griffith on 15 Sep, 2015 07:06 PM

    Ryan Griffith's Avatar

    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!

  9. Ryan Griffith closed this discussion on 15 Sep, 2015 07:06 PM.

  10. ellen.donovan re-opened this discussion on 15 Sep, 2015 07:14 PM

  11. 9 Posted by ellen.donovan on 15 Sep, 2015 07:14 PM

    ellen.donovan's Avatar

    Yes but the icons are still not showing up?

  12. 10 Posted by Ryan Griffith on 15 Sep, 2015 07:20 PM

    Ryan Griffith's Avatar

    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!

  13. 11 Posted by ellen.donovan on 15 Sep, 2015 07:29 PM

    ellen.donovan's Avatar

    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

  14. 12 Posted by ellen.donovan on 15 Sep, 2015 07:29 PM

    ellen.donovan's Avatar
  15. 13 Posted by Ryan Griffith on 15 Sep, 2015 07:31 PM

    Ryan Griffith's Avatar

    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.

  16. 14 Posted by ellen.donovan on 15 Sep, 2015 07:36 PM

    ellen.donovan's Avatar

    url() format('woff')

    The URL doesn't show up?

  17. 15 Posted by Ryan Griffith on 15 Sep, 2015 07:46 PM

    Ryan Griffith's Avatar

    Looks like the path isn't being rewritten on publish. Are you surrounding the link with [system-asset] still?

  18. 16 Posted by ellen.donovan on 15 Sep, 2015 07:52 PM

    ellen.donovan's Avatar
  19. 17 Posted by ellen.donovan on 15 Sep, 2015 07:53 PM

    ellen.donovan's Avatar

    Does it has something to do with the preferences? See screenshoot

  20. 18 Posted by ellen.donovan on 15 Sep, 2015 08:18 PM

    ellen.donovan's Avatar

    OK now none of my icons are showing up. Help!
    http://cmstst.slcc.edu/accounting/index.aspx

  21. 19 Posted by ellen.donovan on 15 Sep, 2015 08:53 PM

    ellen.donovan's Avatar

    Ok, I reverted the
    /_redesign/_files/css/glyphicons-filetypes.css and they came back.

  22. 20 Posted by Ryan Griffith on 16 Sep, 2015 01:08 PM

    Ryan Griffith's Avatar

    Hi Ellen,

    Does it has something to do with the preferences?

    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.

    Ok, I reverted the /_redesign/_files/css/glyphicons-filetypes.css and they came back.

    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 the site:// 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!

  23. 21 Posted by Ryan Griffith on 24 Sep, 2015 12:51 PM

    Ryan Griffith's Avatar

    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!

  24. Tim closed this discussion on 08 Oct, 2015 07:52 PM.

Comments are currently closed for this discussion. You can start a new one.

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