More in this section

Forums / Developing with Sitefinity / How to create hyperlinks that navigate to details?

How to create hyperlinks that navigate to details?

8 posts, 0 answered
  1. Siva
    Siva avatar
    6 posts
    Registered:
    27 Sep 2012
    08 Apr 2009
    Link to this post
    Hi all,

    I am new to sitefinity. I am facing difficulty in creating hyperlinks that navigate to details on click. I tried AnchorLists and PageLists in the sitefinity, but in my scenario there are multiple content blocks(where as list support only one content or description). Someone please help me, how can i modify the default list to accept more than one description?

    In My scenario, I have list of diseases and on click of any disease name, I should navigate to a page where Description, symptoms and treatment for that disease are shown. I dont want user to add side-heading like description, treatment and then add the content for that section. Thats why I am thinking of having multiple content sections for each part. How can I achieve this? Also the solution should have a feasiblity to modify the content afterwards.

    Thanks in anticipation,
    Siva
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    10 Apr 2009
    Link to this post
    Hello Siva,

    The Lists module cannot be extended to have more than one field used for description. The reason for this is that we use key-value pairs.
    Thinking about a solution to this task, I think that it will be feasible for you to use the Generic Content module for example:
    1. Use a second provider for Generic Content. You will store your list items with that provider.
    2. Create as many metafields for this provider as you want. Adding Metafields is described in our User Manual.
    3. When creating your items, you could have the following structure
    - Title
    - Content - here goes your main description
    - Description one - additional metafield with type LongText
    - Description two - additional metafield with type LongText
    4. You could use the ContentView control for your front end.

    In version 4.0, all the modules will be based on Generic Content architecture, so the Lists module would be extensible in a easier way.

    I hope this helps.
    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. Siva
    Siva avatar
    6 posts
    Registered:
    27 Sep 2012
    14 Apr 2009
    Link to this post
    Hi Georgi ,

    Many thanks for your reply, I tried to modify the Generic Content as mentioned in the User manual, But I am not getting the desired results. I have added metafields and modified ~/Sitefinity/Admin/ControlTemplates/Generic_Content/ContentVersionView.aspx as per my requirement. But I dont get those added metafields in Generic Content. I even changed the visibility of default fields like author to false but they also not reflecting.

    Can you please tell me where I went wrong or send me some sample code or any Demo to add meta fields to Generic Content?

    Thanks in Anticipation,
    Siva.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    14 Apr 2009
    Link to this post
    Hello Siva,

    The Georgi suggestion is about editing ContorolPanelInsert and ControlPanelEdit template. The template you have edited is used for History tab of an Generic content item - the place from where you can rollback  to the previous version.

    Probably this is the problem why the metafields are not show.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  5. Siva
    Siva avatar
    6 posts
    Registered:
    27 Sep 2012
    14 Apr 2009
    Link to this post
    Hi Ivan,

    In the user manual I found a line If you want to add a mea field to a document or custom library, you need to edit the ~/Sitefinity/Admin/ControlTemplates/Libraries/ControlPanelEdit.ascx file. Also from your reply, I came to know that i have to modify the same file. But I havn't found the file in the mentioned hierarchy. I searched for the file and found at following two places,
    ~\Sitefinity\Admin\ControlTemplates\Showcases\ and
    ~\Sitefinity\Admin\ControlTemplates\Testimonials\.

    I dont find any relavance in the content in both the files. How can I solve this?

    P.S.: I am using Sitefinity 3.6 Community Addition.

    Thanks,
    Siva.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    14 Apr 2009
    Link to this post
    Hi Siva,

    From version 3.6 we use embedded templates. You need to download the package with external templates from MyClient.net and map those one you want to use.

    More information can be found at How to map a view to an external template, New architecture

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  7. Siva
    Siva avatar
    6 posts
    Registered:
    27 Sep 2012
    14 Apr 2009
    Link to this post
    Hi Ivan,

    Thanks again. With your information, I have successfully added the metafields, that I need in Generic Content module. The problems I am facing here are,
    1. 1) I am getting two Generic content Editors when I try to create an item of that kind, the one I newly added with the default one.
    2. 2) The data I entered is not displayed with the contentView control.

    I think the data not at all stored anywhere. how can I resolve this?

    Thanks,
    Siva.
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    14 Apr 2009
    Link to this post
    Hello Siva,

    Could you check whether you have added your control between ItemTemplate declaration of ContentMetaFields control and you have registtered this metafield in your web.config file.

    If the problem persists, send us the template you are modifying and your web.config file.

    Greetings,
    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
8 posts, 0 answered