1
wizanda
How to fix MultiMenu W3C Style in page errror?
  • 2006/12/21 12:34

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Does anyone know a fix for this....

As in....when you place Multimenu drop down navigation in your theme, you are also placing at the top of the template a CSS part that should not go there and instead should be placed at module header if possible...yet I am unsure how and have tried loads of things...as for it to work the Smarty variable is placed in the template for the menu number....

Yet then that after being completed through Smarty as it is set out to do, that whole bit of CSS in the template needs moving to the XOOPS module header...

is there away for Smarty to be told place something in template file into module header or does it need telling this in PHP?


any help would be much appreciated as we are nearly 100% W3C and then get this nasty red cross from Multimenu...

2
solo71
Re: How to fix MultiMenu W3C Style in page errror?
  • 2006/12/21 14:54

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


I'll probably looking for this in the next multiMenu version, but have no idea so far how to solve this.


3
skenow
Re: How to fix MultiMenu W3C Style in page errror?
  • 2006/12/21 15:15

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


It appears the only style that depends on the block settings is

width: <{$block.block_size}>px;

Making that an inline style should allow you to move the rest of the styles to an external stylesheet. The other classes that include the block variables do not have any dependence on the variable -

#dropmenudiv<{$block.mm}>

can be simplified to

#dropmenudiv

I'll be trying this myself -

The other challenge for validation will be to move the script to the header...

Good luck!

4
wizanda
Re: How to fix MultiMenu W3C Style in page errror?
  • 2006/12/21 17:00

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Thxz Tried it again, did try that before also my self, yet it appears not to place the desired style around where needed...really we need a way to make in Smarty this happen.....


<{$xoops_module_header = the style goes here }>


Been reading tons of Smarty guides on how to do this, yet still not found the correct way to do it yet, yet do believe it is possible just unsure on how....?


You can use <{capture}> I found something along the lines of adding a CSS file that way ....yet I couldn’t get it to work as the Smarty Idea had said...?

5
skenow
Re: How to fix MultiMenu W3C Style in page errror?
  • 2006/12/29 22:52

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


I've been playing with this, and I think I'm on the right track...

By editing multimenu.php and adding
$xoops_module_header .= '<link rel="stylesheet" type="text/css" href="newfile2.css" />';
      
$xoopsTpl->assign('xoops_module_header'$xoops_module_header);
before
include 'block.php';

the stylesheet link is placed in the head, like it should. You can also extend this to the script that needs to go in the head.

Victory is at hand!

p.s. you need to declare $xoopsTpl and $xoops_module_header as globals, too

Login

Who's Online

118 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 118


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits