Force Link from one Configuration to Another

jklingman's Avatar


16 Feb, 2011 04:09 PM

We have set up a content sharing method for a client so they could have one page (I'll name this Page A) feed its WYSIWYG content to several other pages. They do this by using an Asset Factory called "Shared Content". This page, which I'll name Page B, simply has a page selector on it, where they select which page's content to show.

The enhancement we did is that, in addition to publishing as a regular Web page, Page A also publishes out its WYSIWYG content as a .NET include file. This include file is then called into Page B. The purpose of this is to eliminate the need to publish all Page Bs when Page A's content changes.

This all works fine, except the problem is that since Page B is calling in Page A's content via this include, all links within the content want to link to other page's "Include" configuration set, not the default Configuration set. So all links have "-include.aspx" tacked onto the end of them, and we don't want that.

We've tried .NET solutions to avoid this, but for various reasons, they don't work. So my question is, is it possible tell all links in a configuration to always go to the "HTML" configuration of whatever page it's linked to? For obvious reasons, we can't expect the content contributors to know how to tell each link, "Go to the HTML configuration for this page". Thanks!

  1. 1 Posted by Lee Roberson (F... on 16 Feb, 2011 06:46 PM

    Lee Roberson (Function Digital LLC)'s Avatar

    You could attach a page-wide XSL to this configuration that can parse all the anchor tags in the document and string-replace out the -include part of each HREF attribute.

    We wrote an XSL to rewrite all links in a page for a different reason. I'll attach it here.

    Yours should be much, much simpler than this obviously. Ours rewrites CSS references, JS references, and image paths so we can publish templates that can be ingested into other content management systems (e.g. Wordpress). With some XSL hacking (or you could start fresh) this should be doable.

  2. 2 Posted by jklingman on 18 Feb, 2011 03:41 PM

    jklingman's Avatar

    Thanks Lee! I'll have my developer give this a shot.

  3. 3 Posted by jklingman on 03 Mar, 2011 05:22 AM

    jklingman's Avatar

    This worked perfectly, with some tweaking. Thank you again, Lee!

  4. jklingman closed this discussion on 03 Mar, 2011 05:22 AM.

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

Keyboard shortcuts


? 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