You are here:   Support > User Forum
Register   |  Login

Invenmanager User Forum

Minimize
CSS CLASSES IN TEMPLATE
Last Post 19 Jan 2012 02:17 AM by Inven Manager. 7 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Salem Khalidi
Basic Member
Basic Member
Posts:142
Avatar

--
06 Jan 2012 03:12 PM  
I have been using my own custom CSS classes in the template and module.css.

It works great but once in a while, especially after recompiling, the article content reverts back to the simple template (i.e. with no css classes in it), on some of the installed modules.

I have some 50 instances (main and satellite) installed on my web port.

I work around it by going to the view options and applying my customized template again.

I do remember you once mentioned DNN breaks css classes in the template. that is way back with the early versions.

My templates are mainly table based, using the AA version 5 and DNN 5.6.5 CE.

Would converting the table to divs or remove all css class in the template and use htmtl tags for styling in the templates resolve the issue?


Appreciate you insight
Inven Manager
Senior Member
Senior Member
Posts:7145
Avatar

--
07 Jan 2012 03:00 AM  
Hi,

Does it mean it reverts back to the default template?

Or just removing the css?

Also, what you mean by "recompiliing"? do you mean you modified the source codes and recompiled the module?
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Salem Khalidi
Basic Member
Basic Member
Posts:142
Avatar

--
08 Jan 2012 04:11 PM  
Sorry for not being clear

Your reply sometime ago, may refer to the same issue.

http://www.invenmanager.com/Support/UserForum/tabid/705/aff/7/aft/3099/afv/topic/Default.aspx


The situation is as follows:

Recompile refers to the web application (and not the source code), when i restart the IIS or install/remove a module (the dll reference in the db are updated)

In my customized template: I use my own css classes and the attributes are in the css file.

here is an example:
============
<table class="DetailTemplate">
<tr>
<td class="ArticleStyle2" colspan="2">
<div>
[EDIT]<b class="ArticleTitle">[TITLE]</b></div>
<span>[FRIENDLYPUBLISHDATE|dddd, MMMM dd yyyy] </span>
</td>
</tr>
<tr>
<td class="ArticleStyle1" colspan="2">
</td>
</tr>
<tr>
<td class="ArticleBody" colspan="2">
[PICTURESRC|<img align="right" hspace="10" src="{0}" vspace="10" />| ] [DESCRIPTION]
</td>
</tr>
<tr>
<td class="ArticleStyle3" colspan="2">
<a href="#" onclick="history.go(-1);return false;">««« Return</a>
</td>
</tr>
<tr>
<td class="ArticleStyle3" colspan="2">
</td>
</tr>
</table>

============


After I restart the IIS, all the class="***" are removed.

This happens not on all installed instances at once, but randomly, but at least on a couple of the installed instances (from the 50 plus ones).

I will then go to view options, and apply my customized template and it is back to normal.






Inven Manager
Senior Member
Senior Member
Posts:7145
Avatar

--
09 Jan 2012 01:00 AM  
Salem,

This should be fixed, and it is not designed to be working this way. Please help us to provide more info, as we are not able to simulate the case.

Question:
Does it revert back to default template? or just your template and remove the class name?

Can you provide a copy of the modified template?
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Salem Khalidi
Basic Member
Basic Member
Posts:142
Avatar

--
09 Jan 2012 02:39 AM  
Thanks for your feedback

It reverts back to the original default template, my customized template is labeled "default".

I know this because it adds the author's token, which I removed from the customized template, plus all the css class disappears. the separators are dotted lines, same as original.

Have send you by email the customized template.

the website is hosted on my dedicated server, 1GB RAM, windows 2008 std with ms sql 2008 express.

and dnn 5.6.5 ce


Inven Manager
Senior Member
Senior Member
Posts:7145
Avatar

--
09 Jan 2012 12:53 PM  
Hi,

It looks like it is not getting from the database, or it is always loading the default template.

For a temporary fix, you can do one thing:

Go to the template folder, and change the default template to your desired template. (/desktopmodules/advancedarticles/templates)
========================================
Delivering high value DotnetNuke Modules to save your time and resources
Salem Khalidi
Basic Member
Basic Member
Posts:142
Avatar

--
17 Jan 2012 06:06 PM  
I think the Module for whatever reason under specific conditions is not loading the template,


In fact most of my modules are using a the default template but customized, hence the temp fix will not work. Feel it is a DB issue.

Have left a broken module (failed to load all the template) to reviewe, in this case it partially failed

It has some articles loaded with the default template while other articles are not (all on the same one installed module).

I removed the AUTHOR token from the customiuzed default template, while if it fails to load the template it loads the author token.


please check it here:

http://arabaviation.com/CountryBriefs/UAE/DubaiAerospaceEnterprise.aspx

Inven Manager
Senior Member
Senior Member
Posts:7145
Avatar

--
19 Jan 2012 02:17 AM  
Salem,

The problem is most likely due to the Hyper.Modules.Settings that is taking the template from database.

We had corrected this error for ECR module that uses the same Settings sub module.

We shall update the AA module to use the latest Settings module and it should fix this problem once and for all.

You should expect an update by end of Feb.
========================================
Delivering high value DotnetNuke Modules to save your time and resources
You are not authorized to post a reply.

Active Forums 4.1