Apps, template and resource library

Nov 23, 2014 at 5:54 PM
Hello,

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?

Christer
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,
Christer
Nov 24, 2014 at 9:58 AM
Hi

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 https://drive.google.com/file/d/0BxsvIrcjHaXEclEwVmw3Q1UyS00/view?usp=sharing

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 )

Armand
2DNN
Coordinator
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.
http://easygolfweb.com.dnnmax.com/MODULTEST/EasyContent/tabid/3276/Default.aspx

Please advise.

Kind regards,
Christer
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

//www.youtube.com/embed/L8GjwjGCVag

running on my machine

Image

Armand
2DNN
Nov 24, 2014 at 1:32 PM
OK
";" sign removed.

But still problem with YouTube. Error. Please see http://easygolfweb.com.dnnmax.com/MODULTEST/EasyContent/tabid/3276/Default.aspx
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,
Christer
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

//www.youtube.com/embed/L8GjwjGCVag

Armand
2DNN
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
Media: www.youtube.com/embed/L8GjwjGCVag

http://easygolfweb.com.dnnmax.com/MODULTEST/EasyContent/tabid/3276/Default.aspx

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

Sorry!
Best regards,
Christer
Nov 24, 2014 at 4:35 PM
hi

can you send me host login to nokiko @ gmail.com 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
Hi

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 :)

http://www.youtube.com/embed/L8GjwjGCVag


edited the url with devtools

Image


Armand ( Your friendly non official 2sxc support :)
2DNN
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,
Christer
Nov 24, 2014 at 9:51 PM
Hi

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

Armand
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.

Christer
Nov 24, 2014 at 10:32 PM
Hi

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