Link to content item
I am trying to link to a content item from inside a paragraph in the content editor. Is this possible in Beta2?
Thanks,
Ann
Hello Ann,
The Content block does not support an option to insert a content item. You could do this programmatically in a simple user or a custom control. You could expose a public string property where you enter the content item Title and then pass it to a method where you retrieve content data.
public
string
ItemTitle
get
;
set
;
....
....
var cntTitle = ItemTitle;
var item = App.WorkWith().ContentItems().Where(itm => itm.Title == cntTitle &&
itm.Status == ContentLifecycleStatus.Live).Get().SingleOrDefault();
Ivan,
Hi Matt,
This is a workaround - we do not have such selectors/web editors and this is the idea of the "custom selector". The WebEditor/Selector would allow you to pick a content item, link, page - any item you have in a custom datasource. The WebEditor/Selector provides you with a user friendly interface which does not require from business users to know HTML or do some simple coding. We will not be able to include content selectors in the RC release.
All the best,
Ivan Dimitrov
the Telerik team
Ivan,
I have a question. In build 4.0.941.0 I do not see the functionality where you can drag and drop a Generic Content onto a page and then define that generic content to be one from the generic content library.
In 3.7 you had a link type button where you could say - insert some generic content item from your library.
Am I missing something?
Many thanks,
Andrei
Hello Andrei,
This implementation will come in some of the first weeks after the official release.
It is with very high priority on our list of tasks.
Regards,
Kalina
the Telerik team
Thanks for the tips Ivan. I was looking at how I could create a snippet of html for navigation using a css sprite menu technique.
I created a usercontrol with a literal and the code you posted to output to the literal. Now I can display my custom menu and still have the option to edit it in one (generic content) place via the backend.