tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/111-losing-asset-links-after-publishCascade CMS: Discussion 2018-10-18T20:36:00Ztag:help-archives.hannonhill.com,2010-02-09:Comment/25272742010-08-10T13:17:42Z2010-08-10T13:37:22ZLosing asset links after publish. <div><p>Hi Dan,</p>
<p>Try editing your comment, then find your code and use the <a href="http://help.hannonhill.com/formatting">formatting</a> available to you. You will need to indent any code sections with 4 spaces.</p>
<p><strong>EDIT</strong> Dan, I went ahead and modified your comment for you.</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/25272742010-08-10T14:08:26Z2010-08-10T14:08:26ZLosing asset links after publish. <div><p>Hey Dan,</p>
<p>I see a few possible issues here. But for clarification, I am assuming that the first code block provided is what you have in Cascade. The second code block is from pages after being published from your "base site". The third code block is from pages after being published from your "CMST1TEST" site.</p>
<p>I believe that for the first link, the URL in the Site Management section on your "base site" needs to be updated to "<a href="http://www.uwyo.edu">http://www.uwyo.edu</a>". If you are test publishing this to another location and need to test the cross site linking, you will need to temporarily change this field to that test path of where your Base Site contents is publishing. Be sure to put http:// if that is in the address bar. This field is used to append to any urls in a different site than the file.</p>
<p>On the second link, I am guessing the URL in the Site Management section for CMS-INCLUDES site is entered as "D:\Webservers\CMS-INCLUDES", this will need to be updated to the URL of where ever you are actually publishing these files <strong>if</strong> D:\Webservers\CMS-INCLUDES is not correct.</p>
<p>On the third link, you use the "system-asset:local" tags. This means that that particular file needs to be within each specific site. I am guessing that in CMST1TEST, that "/_files/css/uwScreen.css" does not exist. That is why Cascade would resolve the link to nothing in your CMST1TEST pages. I am guessing it exists in your "base site" only.</p>
<p>As for the fourth link, I think there may be a syntax error here. I have never seen a "CMS-INCLUDES" tag for Cascade.</p>
<p>I hope this helps. I would also suggest reviewing the following page in the knowledge base which deals with the system-asset:local tag: <a href="http://www.hannonhill.com/kb/Linking/">http://www.hannonhill.com/kb/Linking/</a></p></div>Pennytag:help-archives.hannonhill.com,2010-02-09:Comment/25272742010-08-11T19:52:31Z2010-08-11T19:52:33ZLosing asset links after publish. <div><p>Thank you for your reply. This is basically what we're trying to achieve:<br />
I have a base site where I created assets, templates and some test pages. When I publish any page from within this site, the assets are linked and everything looks as it should.</p>
<p>Client is creating hundreds of new sites and pages within those sites which are using my base site templates and assets. It looks fine to them in the CMS but upon publish, the assets disappear and aren't linked. I went through the help files and found no documentation directing me how to achieve this. I posted the several ways I've tested and the several outputs Cascade has appended my links.</p>
<p>The client is publishing to different servers for the testing. On these servers I have published the assets. We have even attempted a global assets site called CMS-INCLUDES to point to in hopes an asset link could be achieved. I have found that editing the link to the relative path, "/_files/css..." would work but every time I publish, Cascade prefixes with the base site "<a href="http://www.uwyo.edu">www.uwyo.edu</a>" and it fails.</p>
<p>Thoughts?</p></div>dburfieldtag:help-archives.hannonhill.com,2010-02-09:Comment/25272742010-08-11T20:31:18Z2010-08-11T20:31:18ZLosing asset links after publish. <div><p>If it works in Cascade and breaks on Publish there is an issue with the URL provided in the Site Management section to where you are publishing your "base site" and/or the file does not exist where the system is looking for it.</p>
<p>For the first scenario: the URL provided is pre-pended to links in your Additional sites that reference another Site's CSS and other files. That is why your 1st link is rewritten to "<a href="http://www.uwyo.edu/_files/css/uwScreen.css">www.uwyo.edu/_files/css/uwScreen.css</a>" in your additional Site. I just checked through my browser and your CSS is not located there. So you will need to update your URL from "<a href="http://www.uwyo.edu">www.uwyo.edu</a>" to whereever you are currently publishing it. We generally do this when publishing to a test site.</p>
<p>In order to change the URL being prepended, in the top left of Cascade, you should see a swirly icon button. Click on that - > Click on Site Management -> Click on the base site from the list - > Click Edit. Update the URL field to be where you are test publishing your base site. Click Submit.</p>
<p>Republish your Additional site. If you filled in "<a href="http://your/test/site/url">http://your/test/site/url</a>" to your URL field, the links should be rewritten something like "<a href="http://your/test/site/url/_files/css/uwScreen.css">http://your/test/site/url/_files/css/uwScreen.css</a>". Be sure to include the "<a href="http://">http://</a>" or "<a href="https://">https://</a>" part as necessary.</p>
<p>Once you get that 1st link rewritten properly, I think you will be on your way to having your published site working.</p>
<p>As for the 3rd link, it is disappearing most likely b/c it does not exist in your Additional site as implied by the system-asset:local tag. system-asset:local tags were meant so that a template can be used across multiple sites with multiple different CSS files named the same thing and relatively in each Site at the same location.</p>
<p>For instance:<br />
In Site A, you have a template and you have "/<em>files/css/uwScreen.css" . In Site B, you want the same basic layout but different banners and font colors. So you want to use the same template but would like to use Site B's css file that exists <strong>within Site B</strong> at relatively the same path "/</em>files/css/uwScreen.css". So to be able to use Site A's template in Site B without having to change anything, you would use the system-asset:local tag around the path to the CSS.</p>
<p>If all of your css files and images will be remaining inside your base site, then there is no need to use the system-asset:local tags. The 1st link should be sufficient.</p>
<p>I hope this helps and makes sense.</p></div>Pennytag:help-archives.hannonhill.com,2010-02-09:Comment/25272742010-08-12T13:55:01Z2010-08-12T13:55:01ZLosing asset links after publish. <div><p>Thank you! I set up my base site many weeks ago, forgot to go back and set the path in site management. That's all it took.</p></div>dburfield