More in this section

Forums / Developing with Sitefinity / Generic information in post for GC Modules

Generic information in post for GC Modules

4 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    08 Dec 2008
    Link to this post
    Hi,

    Someone has found a way to add Generic information ( repeating info like address, Geopoints, descriptions) that are common to many items and need to be added inside the posts without typing all every time during Edit/Insert process. I would use Category to create new projects ( as project name) and Post for contents but I don't have the sol. to the repeating information and passing the info. Exist one way to add complementary information linked to categories and use in new post?. Is like Ivan adding Images from Gallery inside the news but no images but other post linked or cross providers one for step1 and another for step2.
    I dreaming?
    Regards
  2. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    11 Dec 2008
    Link to this post
    Hi Pierre,

    this is very simple to develop. There are actually many controls that already use this principle. Like you've correctly pointed out, my sample with Image galleries is one of them.

    Here is the high level overview of the steps you would need to perform to achieve desired functionality:
    1. Add new command and view to your module. Let's call this view and command "Customer info"
    2. In this view provide User interface (form) and functionality for managing customer info (e.g. customer name, address, phone number, id and so on)
    4. Add meta field named CustomerID to the GC module for which this functionality will be implemented
    3. Create a new control which will implement ITextControl interface. Set it's ID to "CustomerID" (same as the key of meta field). In this control provide drop down list from which user can choose a customer (drop down list will be bound to the data managed by the UI created in step 2)
    4. For the mandated Text property of ITextControl use id of the customer.
    5. Now you have the id of the associated customer with each content and will be able to easily pull all additional data you may need.

    I hope this helps. Let us know if there is anything else we can do for you.

    Kind regards,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    11 Dec 2008
    Link to this post
    Hi Ivan,

    Thanks. Could us imagine one future dev post implementing one solution like that. Personally I have tried adding to categories one external database, but is less elegant that your solution. Romi.
  4. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    11 Dec 2008
    Link to this post
    Hello Pierre,

    I am very busy at the moment, but I'll see what I can do. I can always help you with an advice though, if you start implementing this on your own.

    Best wishes,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered