last day (15 days later) » 

2:25 PM
1
A: How to import a VS MasterPage in Ektron

fooserYou're probably using a Web Application project opposed to a Web Site. Because of this, the code for your MasterPages, ASPX templates, wireframes...etc. is compiled into a DLL (or DLLs) when you build the project. When you deploy your Web Application project to your Ektron site, in additional ...

 
Thanks for the feedback. I changed CodeBehind to CodeFile and I am able to see the site but none of the scripts are loading :/
 
OK, if you're now using CodeFile opposed to CodeBehind, you DO need to have your .cs files on the server with your .master, .aspx, .ascx...etc.
 
Yep, is it there and seems to be working :) Thanks.
 
How are your scripts getting added to the page? Can we see the code?
 
I updated my question with the entire HEAD section for the MasterPage. The scripts/styles are in the correct folder from ROOT directory of my site.
 
2:25 PM
Add a '/' to the beginning of your paths, aliased URLs will screw things up. Example: "/theScripts/pageScript.js" instead of "theScripts/pageScript.js"
hey
 
Thank you for helping me btw
I did that still nothing :/
 
np, is there a public facing URL i can see?
 
Still in development and not public as of yet :/
unfortunately
I wish there was something I can do to show
 
k, the head looks fine to me
 
It does to me as well
It was working just fine in VS
as soon as I imported to Ektron it has been nothing but a headache
 
2:27 PM
does the markup not render on the page, or is it that the script files are causing 404 errors?
or 500 errors...etc.
 
So with the way the files are loading
and I enter it in the browser: localhost:90/theScripts/jquery.webticker.js it shows up fine without adding the "/" as you suggested
I am able to view the code in the browser
WAIT A SECOND
HOLD UP
:D
 
something magic happened i hope
haha
 
Seems like IE is not working
no surprise
can you hang on :/
:P
 
yeah, i'll leave this open
in a meeting
goodluck
 
ok Great Thanks
 
3:04 PM
When you return, question for you.
 
k
ready
 
The MasterPage that I built is already responsive using Media queries through custom CSS that I created
now for the content page, let's say Default.aspx is the landing page
MasterPage has this:
<div class="bodyContent brClear"> <!-- BODY -->
<asp:ContentPlaceHolder ID="BodyPlaceHolder" runat="server">
</asp:ContentPlaceHolder>
</div> <!-- BODY -->
and in Default.aspx has this:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
<asp:Content ID="ContentHead" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="ContentBody" ContentPlaceHolderID="BodyPlaceHolder" runat="server">
<asp:Label ID="lblTest" runat="server" Text="Label" ClientIDMode="Static"></asp:Label>
</asp:Content>
How do I make the content page use different CSS to make it responsive?
 
You can place additional <link rel="stylesheet"... /> inside the <asp:Content ID="ContentHead" .... control on Default.aspx
that will add it to the <head>
 
I am not sure if you familiar with Ektron, I am thinking you are
 
yeah 5 years
 
3:09 PM
with the New 9.0 version I have to use DropZone
oh WOW nice...
I should stay in touch with you than :D
not that I will bother u... just once in a blue moon
 
np i try to help
 
hasanz83@gmail.com
my email address
so in order to add the DropZones I have add directives in each content page, correct?
 
Right, the DropZone is a UserControl in the /Workarea folder. To use it you have to register it under the Page directive.
<%@ Register Src="~/Workarea/PageBuilder/PageControls/DropZone.ascx" TagPrefix="pb" TagName="DropZone" %>
 
I changed my Default.aspx to this:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

<%@ Register Assembly="Ektron.Cms.Controls" Namespace="Ektron.Cms.Controls" TagPrefix="CMS" %>

<%@ Register Assembly="Ektron.Cms.Widget" Namespace="Ektron.Cms.PageBuilder" TagPrefix="PB" %>
<%@ Register Src="~/Workarea/PageBuilder/PageControls/PageHost.ascx" TagName="PageHost" TagPrefix="CMS" %>
<%@ Register Src="~/Workarea/PageBuilder/PageControls/DropZone.ascx" TagName="DropZone" TagPrefix="CMS" %>
Thanks...
 
looks good
 
3:13 PM
good so far?
 
yep
 
visual studio complaining about it?
 
I am not using VS anymore... Just using Notepad++, because when I run the site from VS I get like 100 errors :/
 
oh ok
 
3:15 PM
http : // svr2393:90/myPage.htm?aspxerrorpath=/Default.aspx
It throws an error but no idea what the error is :/
 
open your web.config and find <customErrors
make sure they are "Off"
 
It is in RemoteOnly
 
make that "Off" instead of "RemoteOnly", otherwise you have to be actually on svr2393 to see the error
 
Ok great, didn't know that
Ok Now I see the error :)
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
 
yeah, do either 1 or 2 that it suggests
you probably just want to do 2 while you're in development
 
3:20 PM
I will do step 2, it was already on False, so I set it to True.
refreshing the page
Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
PageHost.Page_Init(Object sender, EventArgs e) +969
System.Web.UI.Control.InitRecursive(Control namingContainer) +185
System.Web.UI.Control.InitRecursive(Control namingContainer) +313
System.Web.UI.Control.InitRecursive(Control namingContainer) +313
System.Web.UI.Control.InitRecursive(Control namingContainer) +313
System.Web.UI.Control.InitRecursive(Control namingContainer) +313
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2097
any idea?
What if I don't see a PageBuilder Option
in my site?
 
not sure if these are case sensitive but try changing
<cms:pagehost id="pageHost" runat="server" />
<cms:dropzone id="dz" runat="server" allowcolumnresize="true" allowaddcolumn="true"></cms:dropzone>
to
<CMS:PageHost id="pageHost" runat="server" />
<CMS:DropZone id="dz" runat="server" allowcolumnresize="true" allowaddcolumn="true"></CMS:DropZone>
 
What is your email in case :)
I copied it from a sample code I downloaded from Ektron site... but sure thing Thanks
 
if you don't see a PageBuilder option. You may need to inherit from Ektron.Cms.PageBuilder.PageBuilder instead of System.Web.UI.Page
public class Default : Page { change to
public class Default : Ektron.Cms.PageBuilder.PageBuilder {
If you had to make the above change, you likely need to add the following methods to your page class.
public override void Error(string message)
{
}

public override void Notify(string message)
{
}
errors otherwise
 
You are right... one second :)
YOU ARE THE MAN!!!!
So far so good...
 
B)
 
3:29 PM
let me know wen you are busy
so I wait to ask
:)
 
ask away, i'm working but multitasking
 
ok Thanks
I see the menu on top now...
How do I start adding content block on the DropZone?
 
so you have your "wireframe template" added to the workarea i take it.
If you see the menu, select New Page Layout (or something along those lines)
i don't really have this in front of me so i might be off base here.
 
No you are right... they are there
File > {everything is disabled for me }
 
Try adding a new page layout in one of your workarea content folders and selecting Default.aspx as the wireframe template. This should bring you to the page in Edit mode automatically.
 
3:43 PM
Ok let me try it out Thanks
I only have option to NEW > folder...
 
k, yeah poke around a bit. I feel like I know what you're seeing, but it gets a little goofy sometimes.
hmm... ok, try creating a new folder
call it "test" or something :)
 
Yeah I was able to come so far by poking around and of course with your help :)
Thanks
 
in the Templates tab, make sure your wireframe template is available.
 
Ok let me try it
 
when creating the folder
k
 
3:49 PM
I already have a folder which has all the contents
hey rtf_wilson
rf_wilson
As you can see there is no place to ADD A PAGE
I got it... I have to choose PAGE LAYOUT
So far so good :)
 
nice
 
4:12 PM
I Must SAY
i am starting to like it lol
using Ektron I mean
:D
 
ha
well thats good to hear
it can be a headache at times, but cool when things are working
 
Yes it sure is
Btw what I was doing kept the url myserver:90/Default.aspx the same
but added Page ID at the end
so instead of Page Layout I decided to add HTML Content
So I changed my Default.aspx to this:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

<%@ Register Assembly="Ektron.Cms.Controls" Namespace="Ektron.Cms.Controls" TagPrefix="CMS" %>

<%@ Register Assembly="Ektron.Cms.Widget" Namespace="Ektron.Cms.PageBuilder" TagPrefix="PB" %>
<%@ Register Src="~/Workarea/PageBuilder/PageControls/PageHost.ascx" TagName="PageHost" TagPrefix="CMS" %>
<%@ Register Src="~/Workarea/PageBuilder/PageControls/DropZone.ascx" TagName="DropZone" TagPrefix="CMS" %>
I am getting this error:
Parser Error Message: Type 'ASP.workarea_pagebuilder_pagecontrols_dropzone_ascx' does not have a public property named 'ContentBlock'.

Source Error:


Line 14: <CMS:PageHost id="pageHost" runat="server" />
Line 15: <CMS:DropZone id="dz" runat="server" allowcolumnresize="true" allowaddcolumn="true">
Line 16: <CMS:ContentBlock ID="ContentBlock9" runat="server" DefaultContentID="2768" />
Line 17: </CMS:DropZone>
Line 18: </asp:Content>
 
4:32 PM
can't do it that way, put the <CMS:ContentBlock .../> control outside of the DropZone control.
either that or you have to drag a ContentBlock Widget into the DropZone while editing your PageLayout (you'll have a pageid=XXX in the querystring), and then select contentblock 2768 inside the ContentBlock widget.
Typically a PageBuilder site's Workarea has a content folder structure like so:
- Root
---- Content // This is regular (HTML, Smartform, Formblock) content that will be added to PageBuilder wireframes when new Page Layouts are created.
---- Pages // This is where new Page Layouts are created. These will be referencing content that exists in the Content folder.
im heading out
good luck with the site
glad to help
 

last day (15 days later) »