More in this section

Forums / Developing with Sitefinity / Adding Properties to Pages

Adding Properties to Pages

8 posts, 0 answered
  1. Brett Whittington
    Brett Whittington avatar
    89 posts
    Registered:
    10 Aug 2012
    20 Jun 2012
    Link to this post
    I have a request that is kind of out there and I've tried searching the forums for some help but and nothing seems to be what I want or I am not using good search terms.  I am using the Sitefinity 5 SP1.

    Problem 1)  I'd like to add two custom properties to the Page Properties.  One needs to be a checkbox and the other needs to be a textbox.  I'd like these properties to be stored with the page in the database if possible. Is this possible?  Where is some documentation on how to do this?

    Problem 2)  I want to write a handler that takes the request and then calls the page service to find the page requested so I can read the two properties on the page and then do something before the page is actually loaded.  I know this is doable but is it really recommended.

    Thanks for any input that can be given.
  2. Mike
    Mike avatar
    11 posts
    Registered:
    03 May 2012
    31 Jul 2012
    Link to this post
    Hi Brett,

    Did you get anywhere with this? I have the same requirement!

    Andy
  3. MB
    MB avatar
    302 posts
    Registered:
    09 Jan 2005
    31 Jul 2012
    Link to this post
    Is this what you are after ?
    http://www.telerik.com/support/pits.aspx#/details/Issue=5449
    It still seems to be under consideration.

    As for an API solution, see if this threads helps
    http://www.sitefinity.com/devnet/forums/sitefinity/developing-with-sitefinity/custom-fields-in-pages-futureproof.aspx

  4. Mike
    Mike avatar
    11 posts
    Registered:
    03 May 2012
    31 Jul 2012
    Link to this post
    Thanks MB. Yes that's what I'm after.
    Looks like it's been in consideration since 2011 so I won't hold my breath.

    I'll have a look at the API solution, thanks.
  5. Brett Whittington
    Brett Whittington avatar
    89 posts
    Registered:
    10 Aug 2012
    31 Jul 2012
    Link to this post
    Yes, I am still in the same boat and I have read the links that MB has sent to you.  I've been working with SF for about 8 months and it seems like they are more focused on adding new stuff to the product (which is great) but not focused so much on bugs or fleshing out old features (which is not so good).

    In the meantime, I have to come up with a convoluted solution to handle what could have been easily done if this method is available.
  6. Mike
    Mike avatar
    11 posts
    Registered:
    03 May 2012
    31 Jul 2012
    Link to this post
    Hi Brett,



    I'm working on this now but would be very appreciative if you can share any code or details on your work around?



    Many thanks,



    Andy
  7. Brett Whittington
    Brett Whittington avatar
    89 posts
    Registered:
    10 Aug 2012
    31 Jul 2012
    Link to this post
    My client has a separate mobile site and there are certain pages in SF they want to automatically redirect to the mobile equivalent.  I wanted to add a checkbox so that the user can indicate the SF site has a mobile page and then open a textbox so they could put the redirect URL.

    What I have to do instead now, is create module that does the exact same thing but it isn't associated with  the page.  In the module, the Content Managers have to put in the SF URL and the Mobile URL.  Then I have have a handler that checks to see if the request is a mobile UserAgent.  If it is, I see if the address in SF matches any of the URL's in the module.  If they do, I then redirect them to the Mobile URL in the module.

    If this is something similar to what you are doing, I could post some code to help you.
  8. Mike
    Mike avatar
    11 posts
    Registered:
    03 May 2012
    31 Jul 2012
    Link to this post
    Thanks Brett for the info.

    We need to have pages show in a list (like a blog roll) but to include an Icon and Summary text for the page. I think I'm going to have to create a new module that wraps the Page functionality, but I'm not sure how this will be available through the admin as we need to be able to click & drag modules on to it etc like is possible with Pages.

    Andy
8 posts, 0 answered