+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Evaluation Questions

Evaluation Questions

5 posts, 0 answered
  1. Richard
    Richard avatar
    6 posts
    Registered:
    09 Aug 2007
    12 Mar 2009
    Link to this post
    Hello I am currently evaluating sitefinity for a client. I have a few questions...

    1 My first issue is that it seems to be TOO flexible in terms of page creation. It seems that in a master page/template you create your div/css layout and then put your <asp:contentplaceholder> controls in the bits you wish to be cms driven. Thats fine. But when you are in edit mode am I correct in saying the cms editor can drag ANY control into ANY placeholder? So I cannot lock down the contentplaceholder1 to only allow an image, contentplaceholder2 to only allow text which is 300 characters long, and contentplaceholder3 to hold a poll. I know that with my particular client they will make a mess of the pages in an instant. It really needs to be locked down so that certain placeholders only allow certain controls and then allow me to place some extra validation on it (even if its through an even on the API).

    2 My second issue is I cant see any way to be able create hidden data against a page? Have I missed something? For example when my client uploads content into a page, I may want them to upload a button image that is NOT displayed in the current page but actually in a navigation page beforehand? So in the navigation page I display a list of dynamically created images that link through to the main content pages. If I add a new content page I need to be able to at that point upload the navigation image that goes on the previous page, so it is all dynamic.

    3 My third issue is somewhat related to issue 2 in that there seems to be nowhere to create custom properties against a template. When a user creates a page based on a template I may want them to enter extra information (for example "PopupMessage=true")  that I would then interrogate from my code.
    You have your own properties for the cms editor to fill (metadata, link) but I dont know if I can create my own custom ones.

    PLease let me know if I just need to dig further for all these answers but after half a day, I can't see any way around these issues

    Thanks

    Richard
  2. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    12 Mar 2009
    Link to this post
    Hey Richard,

    #1  - Sitefinity 4.0 will introduce very granular permission control.  For now, however, you are correct that any ContentPlaceHolder can contain control. 

    #2 - Let me make sure I understand;  you want a way to associate an image with a page.  This image isn't displayed when viewing the page, but rather is displayed when another page links to this page. 

    If this description is correct, then you can create a custom User Control that allows your editors to select an image.  The User Control doesn't display the image (or anything) however.  I'll call this the Thumbnail User Control.

    Then you create another User Control that allows editors to link to pages.  This User Control looks at the linked page and attempts to find a Thumbnail User Control.  If this User Control exists then it gets the stored Image URL value and creates a link.

    I'm not sure any of this makes any sense.  It's hard to explain.  Let me know if this makes no sense.

    #3 - Extensible page properties are also coming in Sitefinity 4.0.  In the meantime I have compensated for this limitation by placing User Controls on the page and interrogating these UserControls to get extra details.

    Gabe Sumner
    http://www.sitefinitywatch.com/
  3. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    13 Mar 2009
    Link to this post
    Hey Richard,

    You inspired me to write an example demonstrating the technique I briefly described for #2:

    http://www.sitefinitywatch.com/blog/09-03-13/Hack_Adding_Properties_to_Sitefinity_Pages.aspx

    Let me know your thoughts on this technique!  Be brutal, be honest!

    Cheers,

    Gabe Sumner
    http://www.sitefinitywatch.com/
  4. Richard
    Richard avatar
    6 posts
    Registered:
    09 Aug 2007
    13 Mar 2009
    Link to this post
    Hi Gabe,

    Thanks so much for your reply and the sample code on your sitefinitywatch site- I don't think I've ever seen this level of support from a forum before!

    Regarding my issues #2 and #3 which involve a page creator being able to store data (such as images or custom properties) that is NOT shown on the screen - the user control stuff you have come up with is a workable (if a little messy) solution that I'd be happy to use until proper custom properties come in Sitefinity 4.0. Thanks for that solution.

    Issue #1 is still a biggie for me. The thought of allowing one of my clients the ability to drag a radmenu or radgrid or calendar into a placeholder that I have finely css styled to expect a page title wrapped in a <h1> is unbearable.

    I looked in another forum post at 
     http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-btmmca.aspx 
    which shows that you can actually "hardcode" the controls INTO the placeholder. I gave this a quick go and it seems ot work for things like calendars etc. but I don't know which control I need to hardcode into the placeholder for just a basic CMS Generic html container or Image. I've tried using the <telerik:GenericContainer> control but it just didnt display the placeholder in the page.

    Then from that forum post I found a KB article at
    http://www.sitefinity.com/support/knowledge-base/kb-article/b1154K-bcaa-b1154T-cgb.aspx

    which shows some code you can put into the global.asax and app_code directories which I believe would "hardcode" the controls in. But again it seems very messy as I would need to create a load of code in app_code every time I wished to put in a control. And would this stop the editors from dragging more controls into the placeholder afterwards?

    You say that in sitefinity 4, permissions will be more granular - do you know if this means that you can definitely force a cms editor to only enter html into placeholder1 and only an image into placeholder 2?

    Also I know people never commit to dates but do we have any idea when sitefinity 4 is coming out?

    Thanks again Gabe for your help. You are a star....

    Cheers

    Richard






  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Mar 2009
    Link to this post
    Hi Richard,

    "But again it seems very messy as I would need to create a load of code in app_code every time I wished to put in a control. And would this stop the editors from dragging more controls into the placeholder afterwards?"

    This will not prevent your users for adding new control to the template. The example is basic and demonstrate how you could implement templates with predefined controls - if you have 100 pages - which are very similar you do not need to drag and drop 10 controls over them 100 times, or make a copies of pages. However, your editors will be able to add new controls - you can just create a few content place holders that will be empty. As you see from the example you should specify a placeholder which will be used by a given control.

    "...do you know if this means that you can definitely force a cms editor to only enter html into placeholder1 and only an image into placeholder 2"

    I think that you can have 2 place holders - one with Generic content control - if you disabled all tools your editors will be able to enter HTML only. As for the picture you can use Image control with an property that will select images for a library of a given folder of projects root.
    As for permissions in 4.0 probably we will release in the middle of this year.

    I hope this helps.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
5 posts, 0 answered