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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing tab templates in module devolopmentUsing tab templates in module devolopment
Previous
 
Next
New Post
7/1/2011 8:58 AM
 

I've been asking the same question in the wrong forum. I'm so sorry.

Building a NewsDesk module, I am left with the question what the best way to populate a "tab view" of a news item with a tab template as produced by exporting a tab.

My module would have a "module view" and a "tab view" (next to the "edit view" and the "settings view")

I've peeked into the announcements source code and I've borrowed a lot of ideas and source fragments from there. But I need some help on the best procedure to populate an empty control with a tab template. I cannot think of any example that would use this procedure, but I believe it is the best way to give non-developer designers access to the ultimate design of the module. I would even imagine a "designer view" to separate the design settings settings from the administrative settings. It also provides This would also provide a basic flexibility in the display of banners. I'm also planning to review my dataprovider to include "override tab templates" on any news item.

Just one mystery: how to populate my tab with most settings (such as skin and other modules with their containers) from a template.

Wikis, blogs, open source examples, anything to help me on the way?

I'll publish the sources on the forge when finished.


____________________________________
The one-eyed in the land of the blind.
 
New Post
7/11/2011 1:17 AM
 
I've come at the point where the other parts are working. I now have to find a solution to create the "TabView" control.

The "View" control displays the information inside a module and can show many news items within one module. The "TabView" control then must display one mews item, but not inside the administrator skin. Rather, it must have a side pane on which the code-behind copies modules from another page (the "Marketing" page in my case)

I've given up the original idea of using templates created by the export module because it would be too research intensive. For what I came to understand, the solution lies in hijacking the Pre_Init event to change the skin but it is still a mystery how to achieve that without modifying Default.aspx

The module settings have a field to store information about the composition of the TabView (including skin) and in the database, every news item has a field where to store the same type of information that might override the information in the module settings.

____________________________________
The one-eyed in the land of the blind.
 
New Post
7/11/2011 2:32 AM
 
Anyone wanting to have a look at the development:
The original site is here: http://www.khmerscientific.com/
A demo of the DNN version is here: http://ksj.cup.edu.kh/

Originally, my new skin was an exact replica of the original skin (I lack the artistic talents required from a designer) but I then was instructed to widen the skin and to apply the theme of the university portal.

I've used a lot of ideas from the announcements modules, but I've changed a lot as well. Since now all modules display news items from the same news item base, I've modified the presentation, so that I can have one module for the editors (on a page only accessible to editors) from where they can add/modify an article, even when they are not in "edit mode". On the other hand, a module without "[EDIT]" in the template will no longer be force-fed a [EDIT] token.

I have more issues than the one I am struggling with now. First, there is a problem with accessing the taxonomy, then I failed to mahe the token replacements functions inside DNN work on my NewsDeskInfo object. I also have to take a deeper look at the caching routines. But those issues are not pressing.

I've written my own selection routines, so I do not need taxonomy. Yet, I will definitely try to solve this issue. I've noticed shortcommings at the current system, so I will rewrite that again anyway.

I've also written my own replacement routines, but the DNN routines should complementary to mine. I'm sure the issue is a minor one, but the system works (almost) perfectly without it.

Caching, I understands how it works in general, but I still must figure out how to implement it in DNN. It certainly is an important issue and I do not want to hastily implement it without in-depth understanding.

So, those issues are open but can be solved later. The pre_init event however is now a top-priority: finding a way to build complete pages on-the-fly. Add a skin to the tab and copy banners or modules from other places on panes in that tab and add one module for the news item to be displayed, that's the strategy I have in mind.

Would that work?

____________________________________
The one-eyed in the land of the blind.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing tab templates in module devolopmentUsing tab templates in module devolopment


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