Web Analytics Made Easy -
StatCounter PHP and Joomla help needed! Modules and Div output -Help! - CodingForum

Announcement

Collapse
No announcement yet.

PHP and Joomla help needed! Modules and Div output -Help!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP and Joomla help needed! Modules and Div output -Help!

    Here is a question for anyone with PHP and Joomla module knowledge please -

    Is is possible to alter the output of a module based on which position the module is displaying in?

    For example, I am using the module called GK News Show3 in my "middle" position. It outputs 1 main
    div without rounded corner support enabled -
    Code:
    <div id="gknews">
    output code here
    </div>
    , and output 4 divs if rounded corner support is enabled -
    Code:
    <div class="gk_round">
    <div>
    <div>
    <div>
    output code here
    </div>
    </div>
    </div>
    </div>
    What I want to do is this - If I position the module in the "right" joomla module position, I want it to output either 1 div as above, or 2 divs for rounded corners instead of 4 divs- just for the "right" position only. If it is in any other position, I want it to output either 1 or 4 divs as shown above.

    Can anyone help as I keep asking in various forums but am getting no responses. I have the ouputted code for rounded (4 divs) and squared (1div) output, but I dont know how to alter it to check for wether the module is running in the "right" position - and output either (2divs) rounded or (1div) squared
    Last edited by moss2076; Apr 7, 2009, 04:46 PM.
Working...
X