Custom Links - CMS

Last post 02-09-2008, 3:00 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  02-08-2008, 3:47 PM 36896

    Custom Links - CMS

    Hi guys,
     
    We're looking into building a mini CMS for one of our sites. This site allows custom URLs (with URL rewriting) with the content and pages in a database. So the client can change a page's url from "/folder/page1.aspx" to "/otherfolder/page2.aspx" by simply using the interface in the admin section.

    Now, the problem is linking between pages. All the links in the HTML blocks are pretty much hardcoded. If the client renames a page we would have broken links, and we're trying to avoid that.

    As a solution we're looking at preventing direct links; so instead of href="http://cutesoft.net/folder/page1.aspx" we would have something like href="{{node:332}}". Then the parser would go through all the links in the page and replace those with actual URLs.
    Is it possible to do this with CuteEditor; I mean when the user clicks on the "Browse" button we would have a list of pages in the site (sitemap)? What would we need to change? Is there an example on how to do this?
     
    Thanks.
  •  02-09-2008, 3:00 AM 36901 in reply to 36896

    Re: Custom Links - CMS

    pzolja,
     
    Please check the following two examples, you can easily create your own internal links:
     
    dynamically populate the dropdown menu

    How to dynamically populate the dropdown menu?( C# | VB )

    This example demonstrates how to programmatically populate the Cute Editor dropdown menu.

    dynamically populate the tree view dropdown menu

    How to dynamically populate the tree view dropdown menu?( C# | VB )

    This example demonstrates how to programmatically populate the Cute Editor tree view dropdown menu.


    Hope it helps. let me know if you have any further questions.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML