Rad Editor customization ,Generic Content list filtering,Dow

Posted by Community Admin on 03-Aug-2018 10:40

Rad Editor customization ,Generic Content list filtering,Download list not displaying thumb nails.

All Replies

Posted by Community Admin on 16-Nov-2010 00:00

Can you please help on these three questions.

1.) Download list control not displaying the thumb nails ,How can we display thumb nails.

2.) In Rad Editor I want insert some code snippets and some custom style elements,How can I do it in 4.0 beta.
Where is the config file located for RadEditor.?

3.) Using Generic Content List control,Can we Filter the content to displayed based on some category or some thing like that.Before when we have lists , we used to create different lists with dofferent collection of list items.

Thanks
Venkat

Posted by Community Admin on 16-Nov-2010 00:00

Hello Venkat,

1. DownloadList control shows thumbnails depending on the file extension.

2. You can set a custom ToolsFile for the RadEditor control as shown in this post or create  new EditorConfigurations from Administration >> Settings >> Appearance where you can use

MinimalEditorConfiguration or StandardEditorConfiguration a a key and the value should be the path to your tools xml file.

3. Filtering for this control could be done from the control definition when you open the control for editing go to Home > ControlDefinition > Views > GenericContentMasterView

where you should pass the taxon id

Category.Contains("A9F2C13A-9472-4BF6-AB3D-19B2EF05B043") AND Visible = true AND Status = Live AND PublicationDate <= DateTime.UtcNow AND (ExpirationDate = NULL OR ExpirationDate > DateTime.UtcNow)


Best wishes,
Ivan Dimitrov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 16-Nov-2010 00:00

Hi Ivan,

Thank you for you reply.

In our application we are having list of pdf documents with a thumb nail image (preview of the first page of the pdf).

We need to show the pdf documents as download links with associated thumb nail images.

As you said, sitefinity will show thumbnails depending up on the document type,but we want to show different thumb nail images for different pdf documents.

How can we achieve this using sitefinity.

Thanks
Venkat

Posted by Community Admin on 16-Nov-2010 00:00

Hello Venkat,

After the BETA2 we implemented a configuration which allows you to set your own FrontendMasterListView. In the RC you will be able to create a custom list view that inherits from DownloadMasterViewBase. Inside your view you can override DataBindDocumentList and set your custom image depending on the file type.

Kind regards,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 19-Nov-2010 00:00

Ivan,


I just dropped a Generic Content List on to a page and got teh following:

Error executing query: System.Data.SqlTypes.SqlTypeException: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.executeQuery() at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.executeQuery() at OpenAccessRuntime.Relational.fetch.FetchResultImp.execute() SQL: SELECT COUNT(a.[content_id]) AS EXPR1 FROM [sf_content_items] a WHERE a.[app_name] = ? AND a.[publication_date] >= ? AND a.[publication_date] <= ? AND a.[visible] = ? AND a.[status] = ? AND a.[publication_date] <= ? AND (a.[expiration_date] IS NULL OR a.[expiration_date] > ?) System.Data.SqlTypes.SqlTypeException: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.executeQuery() at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.executeQuery() at OpenAccessRuntime.Relational.fetch.FetchResultImp.execute()

Using 4.0 RC.
Many thanks,
Andrei
------------------------------------

IGNORE IT, I dropped it onto a Template not a page. Sorry.
Andrei

Posted by Community Admin on 19-Nov-2010 00:00

Hi Ivan

I have gone to Home > ControlDefinition > Views > GenericContentMasterView from the edit view of the generic content list widget but not sure in which field we need to write the taxon Id.

And there you have given a GUID A9F2C13A-9472-4BF6-AB3D-19B2EF05B043. Is this a GUID for the category we want to filter? How can we know the GUIDs of any entity (Category in this case) within the Sitefinity?

Thanks,
Kiran

Posted by Community Admin on 19-Nov-2010 00:00

Hi Kiran,

This is the guild of the taxon - category or tag. Currently we do not have a selector that returns the taxon ID and you should get it from the database or you should have a custom control with a selector that returns the id. Our control does not support this out of the box.

Best wishes,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 03-Feb-2011 00:00

So which table and column do you find this GUILD? The ones I've tried don't work...

Posted by Community Admin on 03-Feb-2011 00:00

Hi Stuart,

Please check [sf_taxa]

Greetings,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 03-Feb-2011 00:00

Well that's the table I thought you say. I assume as you've not said, the column ID?

Is there going to be a lookup in the GUI for this, you can't expect users to have access to the DB?

Posted by Community Admin on 03-Feb-2011 00:00

Hi Stuart,

Our idea is to provide selector for filtering the items. Currently you can filter by Category our News widget.

Best wishes,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed