Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIBETA TEST PROGRAM:  ClientAPI/WebControls - DawnTreader and CaspianBETA TEST PROGRAM: ClientAPI/WebControls - DawnTreader and Caspian
Previous
 
Next
New Post
1/9/2008 2:17 PM
 

It is a little more than the menus.  This contains a detailed list of the modifications.

It should work fine with 4.8.

 


 
New Post
2/20/2008 11:54 PM
 

Jon Henning wrote

It is a little more than the menus.  This contains a detailed list of the modifications.

It should work fine with 4.8.

 

do  we nee to change the DotNetNuke.DNNMenuNavigationProvider.dll to make it work well? Thanks a lot!  do you provider some sample about the dnnmenu  for the "Holy Grail" of Menu Item Customization.


sunblognuke v5 for dnn

Ultimate Blogging Module for DotNetNuke Platform
The professional provider of DotNetNuke support, skin design and custom module development.

 
New Post
2/25/2008 11:02 PM
 

Hi,

I want to share the method I found to minifier javascripts before embed they in dll.
This can be performed simply by adding the following task in DNNModule.target and call it in BeforeBuild target:

<Target Name="EmbedJavascripts">
<CallTarget Targets="EmbedCompressedJavaScript" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " />
<CallTarget Targets="EmbedDebugJavaScript" Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " />
</Target>
<Target Name="EmbedCompressedJavaScript">
<CreateItem Include="$(JavascriptSourceDir)\*.js">
<Output TaskParameter="Include" ItemName="JSSourceFiles" />
</CreateItem>
<Exec Command="java -jar yuicompressor-2.3.5.jar %(JSSourceFiles.Identity) -o $(JavascriptMinifiedDir)\%(JSSourceFiles.Filename).js )"
WorkingDirectory="$(YuiCompressorDir)" />
<CreateItem Include="$(JavascriptMinifiedDir)\*.js">
<Output TaskParameter="Include" ItemName="JSMinFiles" />
</CreateItem>
<CreateItem Include="@(JSMinFiles)">
<Output TaskParameter="Include" ItemName="EmbeddedResource" />
</CreateItem>
</Target>
<Target Name="EmbedDebugJavaScript">
<CreateItem Include="$(JavascriptSourceDir)\*.js">
<Output TaskParameter="Include" ItemName="JSSourceFiles" />
</CreateItem>
<CreateItem Include="@(JSSourceFiles)">
<Output TaskParameter="Include" ItemName="EmbeddedResource" />
</CreateItem>
</Target>

So when I build the project for release,all source javascript files are substituted by their minified version.
The yui compressor can be found here.

I hope this could be usefull.

Regards 
Manzoni Fausto

 
New Post
2/25/2008 11:17 PM
 

If your talking about the ClientAPI or WebControls, I already have code in their msbuild script to minimize the js (using the JSCompress task from the community tasks).  Not sure how it compares to the YUI tool.

If your referring to the AJAX Module Template, then yeah, this is on my to-do list, just haven't gotten around to it yet. 

Thanks for sharing!


 
New Post
2/25/2008 11:43 PM
 

I use this tool in my ajax modules based on your template.

The difference between JSCompress and Yui tool is quite simple:

JSCompress
"Compresses JavaScript source files by removing comments and unnecessary whitespace, which typically reduces the size by half and results in faster downloads and code that is harder to read."

Yui Compressor
"It starts by analyzing the source JavaScript file to understand how it is structured. It then prints out the token stream, replacing all local symbols by a 1 (or 2, or 3) letter symbol wherever such a substitution is appropriate ..."

For example:
_MyMethod: function(MyFirstLocal, MySecondLocal,MyThirdLocal){
MyFirstLocal = MyFirstLocal + 1;
MySecondLocal= MySecondLocal + 2;
MyThirdLocal= MyThirdLocal + 3;
}

Will become:
_MyMethod: function(a, b,c){
a= a+ 1;
b= b+ 2;
c= c+ 3;
}

naturally without withespaces and comments

Regards 
Manzoni Fausto

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIBETA TEST PROGRAM:  ClientAPI/WebControls - DawnTreader and CaspianBETA TEST PROGRAM: ClientAPI/WebControls - DawnTreader and Caspian


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out