Apps, template and resource library

Nov 23, 2014 at 5:54 PM

Being a content editor, web producer/admin and superuser and not a webdesigner or developer the threshold to start using this promising module feels to big. My focus

I should be very useful with a more comprehensive library of ready ready to use Apps, Templates and Resources who has experience of making 2sxc implementations.

Right now I need a Content App/Template that is similar to the image / text content template but with video instead of image. Or maybe a development of the video content template where you can have the video to the right or left. My guess this is a quick fix for someone who know the module.

What do you think?

Nov 23, 2014 at 6:53 PM
Well the quickest way to do this is use the same content type but instead of image url past the youtube embed link there

now you can edit the template and then instead of the img src="@..... do an <iframe src="@... I can whip up something better but that will have to be around monday or tuesday
Nov 24, 2014 at 7:26 AM
Edited Nov 24, 2014 at 7:34 AM
Hi Nokiko,

Well I am not really sure how you suggest me to edit in the template. Made a try without success. This is what the template look like.

It would be great if you can whip up something better as you write.

<link rel="stylesheet" type="text/css" href="[Portal:HomeDirectory]2sexy/GettingStarted/assets/styles.css" data-enableoptimizations="true" />
<div class="co-simplecontent-imageright sc-element"> [Content:Toolbar] <[Presentation:Heading] class="co-[Presentation:Heading]-hide"> [Content:Title] </[Presentation:Heading]> <img class="co-image" src="[Content:Image]?w=600&h=450&mode=crop" alt="[Content:Title]" /> [Content:Content] </div> Kind regards,
Nov 24, 2014 at 9:58 AM

I made a very simple basic app "Html_media" with one c# razor template

you have the following fields title, media, content, location

media you can have image or your own url. for this setup i assume you have youtube links

download here

its a single level template where you can set the content, the location(left right ) and the medua url ( image or link to youtube video )

Nov 24, 2014 at 10:54 AM
awesome :)
Nov 24, 2014 at 12:34 PM
Thanks Armand,

Looks promising but I can´t get YouTube video to show.
And there is a " ; " character showing at the end of the text.
YouTube link added in Media field. Link works in other modules.

Link to page on my test site for viewing. Module on top.

Please advise.

Kind regards,
Nov 24, 2014 at 12:51 PM
Edited Nov 24, 2014 at 12:57 PM
Oh i see i removed the ; but forgot to export the app again

you ca go to edit template and remove the ; after @Html.Raw(Content.Content) also for the youtube link you need to have the embed version , so click the share button then the embed. You will see an iframe code now just copy the url from there


running on my machine


Nov 24, 2014 at 1:32 PM
";" sign removed.

But still problem with YouTube. Error. Please see
Do I understand it correct that the embedded code should go in the field Media: when editing?

YT embedded code works without problem in std HTML module. (On top of page)

Best regards,
Nov 24, 2014 at 1:39 PM
no you need to just copy the url from the full embed code

you just pasted the whole embed code

you only need to copy the url from the full iframe code so in your online example this will be


Nov 24, 2014 at 3:38 PM
I´m sorry Armand,

But now it shows the page it self in module instead of YouTube even if I have added

I tried with uninstalling and reinstalling 2sxc module and template but same problem.

Best regards,
Nov 24, 2014 at 4:35 PM

can you send me host login to nokiko @ and I will take a look to see whats going on
Nov 24, 2014 at 4:37 PM
Edited Nov 24, 2014 at 4:41 PM

I think i know what is going on

You need to have the full url including http ( looks like my paste of the url got lost in translation :)

edited the url with devtools


Armand ( Your friendly non official 2sxc support :)
Nov 24, 2014 at 9:24 PM
YES! That solved the issue.
Thanks a lot. Yes very friendly support :)
That makes lasting impression.
I will use the app/template and take notes for feedback to maybe enhance the template.
I guess a template with this function could be included in 2sxc library.

Best regards,
Nov 24, 2014 at 9:51 PM

Well the idea is to make your own templates and this is a very basic setup that could be enhanced a lot more so maybe get your hands dirty and try some razor coding, thats how i started as well

I see you are using bootstrap so maybe update it to a bootstrap version

Nov 24, 2014 at 10:22 PM
It is about having the skills and how to spend time effectively.
If there is market for themes (skins) and modules I believe there is a market for templates and apps.
Let´s keep in touch.

Nov 24, 2014 at 10:32 PM

You have a point there

I do have one theme allready with content templates on the dnn store ( Moose ) and I have another one im finalizing that will also include app and templates that should be done around december