Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Allow users to embed custom tags in CMS system and have them parsed -- how?

Reply
Thread Tools

Allow users to embed custom tags in CMS system and have them parsed -- how?

 
 
Guest
Posts: n/a
 
      03-18-2005
I'm interested in allowing users of a CMS system to be able to embed custom
tags/calls to user controls in the content areas of their articles. This
would allow folks to call advanced bits of functionality and feed the
controls parameters using the CMS.

In classic ASP, you could parse out the tags and have them interpreted at
runtime if you were clever about it.

What's the general approach to making this "go" in ASP.NET? Surely this
capability was anticipated....

Thanks,
-KF


 
Reply With Quote
 
 
 
 
darrel
Guest
Posts: n/a
 
      03-18-2005
> What's the general approach to making this "go" in ASP.NET? Surely this
> capability was anticipated....


I am *no* expert on .net by any means, but I've been working on something
similiar, though perhaps not quite as robust as yours. What I've done is
this:

page.aspx
- contentControl.ascx
- customControl.ascx

contentControl loads the text for that page (if applicable). The
customControl will load another control specified by the editor from the
CMS. For instance, they may want to have the contact directory loaded on
that page.

So, they are distinct, which is different than what you are asking, but
maybe that's an option.

Just a thought...perhaps have the CMS text editor insert an empty SPAN tag
in the content. Parse the content for the specific span tag (ie <span
id="contactDirectory.aspx></span>) and, if it exists, then have the page
load that control, and then use innerhtml to send the output of the control
to that specific place on the page.

-Darrel


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do my photos come out sidewards when I play them on my DVD eventhough I have rotated them on my PC tapyeno Digital Photography 3 08-27-2009 12:25 AM
JSP Custom Tags as attribute values for other custom tags Dave Java 0 08-14-2006 02:21 PM
Location element in the Web.config file. Allow System Admin whole directory, allow others specific page Ryan Taylor ASP .Net Security 1 09-09-2004 06:52 PM
Custom Tags within Custom Tags. Ranganath Java 2 10-21-2003 06:14 AM
How to embed html in xml (i.e. prevent the html from being parsed)? Failure XML 1 09-07-2003 09:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57