Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: xmanhattan on March 01, 2013, 16:21:21
-
Hello all,
I added $eDoc->modules('search', 'none');
inside my index.php and I thought that the none
would stop the drop down.
How can I eliminate the drop down so that just a plain and simple search box appears?
Additionally, can css styles be added to module using the second parameter?, e.g. $eDoc->modules('search', 'style=color: red;');
The reason I ask is to see if it is able to apply a style that someone else has used in a template.
-
The second argument is not for CSS style but for module styles.
Elxis 2009.x used numeric styles (-2, -1, 0, 1), Elxis 4.x uses string styles and 3 styles are supported:
1. 'none': No surrounding div element around the module's content.
$eDoc->modules('xxx', 'none');
<h3>Module title</h3>
...module contents here...
2. 'round': Rounded corners method (old 2009.x method, we don't recommend this any more. It is mostly here for backwards compatibility)
$eDoc->modules('xxx', 'round');
<div class="moduleround">
<div>
<div>
<div>
<h3>Module title</h3>
...module contents here...
</div>
</div>
<div>
</div>
3. Nothing (default). A div surrounds the module with CSS class "module".
$eDoc->modules('xxx');
<div class="module">
<h3>Module title</h3>
...module contents here...
</div>
The search box loads the published search engines. Disable those you don't want to make them disappear from the module.
Elxis administration -> Extensions -> Search engines
-
Okay, very clear answer. Thank you