Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  HTML / Text Mo...  Improvements to TextHTML
Previous Previous
 
Next Next
New Post 3/15/2006 7:40 AM
User is offline Paul Cotter
42 posts
www.paulcotter.com
10th Ranked


Improvements to TextHTML 

Hello SuperSka - thanks for your help the other day.

This message is a spin off from a thread concerning tokenising of HTML output and a request for amendments to the module in Bo Norgaards blog.

My preference for a tokenizing system would not be at the module level, but at the rendering stage for all modules. As that will not happen then I am happy that this feature is embedded in the most flexible module.

The syntax is irrelevant but I will assume this

{dnn:(optional if clause) value[;default]}

Type 1 System Data

{dnn:portal} would be replaced by the portal name. This is a system value for which there would be no default as a value would always be returned. Suitable tokens are

date/time, moduletitle/name, pagetitle/name, sitetitle/name, domain, adminemail , hostemail 

Type 2 User Data

{dnn:username;Visitor} = Replace token with account user name. Not logged on use the default string Visitor.

 userfirstname, userlastname,username,useremail

(and maybe all other account data although I cannot see the use of the rest)

A more complex example

{dnn: if(loggedin) } Hello {dnn: userfirstname} {dnn:endif }

Type 3 Simple Database Data

I can add a token to my site's list of tokens via TextHtml maintenance. It will be replaced at run-time in ALL TextHTML modules that refer to that token. Examples of when I might use this facility could be:

{dnn:webmaster}   I can universally replace the web master email address if I start getting spam 

{dnn:MaintenanceMessage} - normally empty unless you are doing something.

Type 4 User-based Database data

This is where the data is dependent on the user, but is not stored in the standard account. This is probably too complex to implement as it would need the user to supply the values and probably needs implementing in another module.

Type 5 TextHTML instructions

{dnn:cease}  Stop outputting. Allows me to work on a new block of text which will not display until we reach

{dnn:resume}

And a few other thoughts...

{dnn:if (culture==xxx)}  Some stuff {dnn:endif}

{dnn:if(culture!=xxx)} iets anders , quelque chose, {dnn:end if}

Good {dnn:if (time < 12:00) } morning {dnn:else} afternoon {dnn:end if}

And finally - I really would like it if TextHTML did not reformat my native HTML.

 

 
New Post 3/15/2006 1:05 PM
User is offline Bo Norgaard
79 posts
www.bonosoft.dk
10th Ranked


Re: Improvements to TextHTML 

Thanks for your input,

This is much aligned with what we have planned (type 1-3), even though we might start with a more simple set of possibilities in the first implementation. The scripting functionality in your type 5 is new and sounds interesting, nice idea. I have previously implemented something similar with if, loops and foreach tags.

The reformatting is not done in the module but in the edit provider, and it's something that is being worked on.

 


/Bo Nørgaard ( www.dotnetnuke.dk )
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  HTML / Text Mo...  Improvements to TextHTML
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca
Icthus Technologies
Building Faith on the Internet
www.icthustech.com
Efficion Consulting
A premier DotNetNuke consulting firm providing complete DNN services including: custom module development, skinning and design, installation and integration services.
www.efficionconsulting.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP