ASPX templates
Version 7.x > ASPX templates > User editable URL View modes: 
User avatar
Member
Member
btagis - 12/6/2013 6:30:39 AM
   
User editable URL
Hi all,

Hopefully this is a simple question, and I'm just not reading the right things. I need a user-editable URL and can't fathom how to accomplish it...

* For each page created from a template, I need a URL link within the document.
* The URL varies for each created page.
* I need to provide a way of the user editing only the href attribute of this given <a> tag, which is placed within the template.
* I don't want the user to be entering HTML directly, just a URL.

I've built a basic web part with just the URL as a defined property, but if I add it to a webpartzone within one page (which has been created from the template), it appears on all other pages created from this template, with the same properties.

Any suggestions gratefully received.

User avatar
Kentico MVP
Kentico MVP
Brenden Kehren - 12/8/2013 9:09:09 PM
   
RE:User editable URL
Sounds like you need to create a custom document type. This will allow you to add those URLs with ease and control where and when they are displayed. Your template will have a repeater webpart on it and a transformation that displays the data from the document type. Pretty easy and can all be done within the Portal if you're using portal and aspx.