media 65
Home | Login | Register | Password Reset |

Media 65 Technologies | Beta 0.6 |
User Name:   Password: 

Password Reset
Close


Go Back   Media 65 Forums > Joomla > Joomla Templates

 
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-11-2007, 11:47 AM
Junior Member
 
Join Date: Jan 2007
Posts: 2
Default suffix dont work

hi,
i started yesterday using the template kit
and i made simple layout
where i wanted to make a custom looking polls
so as usual i put"<?php if (mosCountModules('right')>0) mosLoadModules('right',-2); ?>"
to be a XHTML valid, then i made the following custom css in css file

/* Add here Custom Modules */

table.moduletable-mypoll {
width: 100%;
padding: 0px;
margin: 0px;

}

table.moduletable-mypoll th {
background:#FF6600;
height: 18px;

}

table.moduletable-mypoll td {height: 18px;background:#FF6600;}
/* End Custom Modules */


and then in joomla adminstration i gave the polls module suffix -mypoll.
but al what i get is transperant background
now the strange thing is if i change the line

"<?php if (mosCountModules('right')>0) mosLoadModules('right',-2); ?>"
to
"<?php if (mosCountModules('right')>0) mosLoadModules('right',0); ?>"
it works fine.
what am i missing here ?
thx in advanced
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old 02-11-2007, 02:01 PM
Administrator
 
Join Date: Sep 2006
Posts: 331
Default

Hi joomlaman,

There are a few issues with the polls module.

This module has a component for polls.
That has its own hard coded CSS style calls plus it’s a table.

As may know that doc type will affect a valid xhtml layout
There are a lot of factors that play into this.
Just name a few the

Wizywyg editor & content.
Your template can render and validate just fine in DW but once template meets the malformed content
your going to get errors.

The module is wrapping the content from the poll.
You’re trying to add table element formatting via your styles.
But you need to div formatting.

You added a -2 module style call which outputs

This wrapper

<div>
<h3>Title</h3>
Module Data
</div>

You would have need to add formatting for div element first

div.moduletable-mypoll{}

See this link:
http://www.m65.net/cms/articles/joom...nce-1.0.x.html

See: What is a Module?
Read this section this will give a insight into module wrappers.


Reference and Examples.
Any Standard Joomla Class can have:
| Optional HTML Element | CMS-CORE-CLASS | Optional HTML Element | .suffix or -suffix


Also see this link
http://www.m65.net/cms/dreamweaver-joomla-template-kit.html

Click the “Module Menu Screen Shots” tab:
Scroll to the bottom of the page see the module output via module styles
I don’t use the negative values but you will the point of the output.

You can find this info in your help file of the extension and “css_ref” folder in the download file.

Also it possible to have both a

table.moduletable-mypoll{}
div.moduletable-mypoll{}

To cover any component table formatting

Let me Know

Cheers
Brian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old 02-12-2007, 02:31 AM
Junior Member
 
Join Date: Jan 2007
Posts: 2
Default

thx alot bro for the fast and detailed reply,
i will work on it to see what it gets :0
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 04:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0