How to add background image JM News Portal

More
5 years 1 month ago #8806 by artur
artur replied the topic: How to add background image JM News Portal
Well, modification is not correct ;)

Better way :
- remove width and background for jm-allpage
- add link inside jm-allpage (with position absolute)
- add position relative and z-index: 2 to .container-fluid
:-)

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #8807 by mickeyjoomla
mickeyjoomla replied the topic: How to add background image JM News Portal
Great, you are my heroes !! I follow your instructions all is ok, unique difference I don't add z-index: 2 in .container-fluid because in this way all sub-menus appear under the main page.

But now all seems to be perfect on desktop and mobile device, now remain only to make the link a parameter so I can use different link for different pages.

I think now we can change the title in : How to add clickable background image JM News Portal and put something like [SOLVED] ??

Thank you so much

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #8816 by mickeyjoomla
mickeyjoomla replied the topic: How to add background image JM News Portal
I have added this code in default.php to insert the link
<div id="jm-allpage">
<a id="skinlink" href=" www.link-sponsor.com " target="_blank">
<span>Skin ADV</span>
</a>

Now I must change this static link: www.link-sponsor.com into a variable , getting the value from table 'modules' reading the parameter that already exits.

Any suggestion ?

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #8820 by artur
artur replied the topic: How to add background image JM News Portal
Hello,
Well, I really do not understand what do you mean by table 'modules'.
But the best way in this case is to add module position instead link and span.
Then, you will be able to publish Custom HTML modules with link and span for each menu item.

Regards.

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago - 5 years 1 month ago #8838 by mickeyjoomla
mickeyjoomla replied the topic: How to add background image JM News Portal
Sorry for my bad english ! I try to explain again.

One of the standard table of joomla installation is 'modules' inside this table I have one row created by BackgroundStyler that contain the link information in the filed PARAMS.
I'm trying to retrieve this information from the table and insert it in this part of code
<div id="jm-allpage">
<a id="skinlink" href=" www.link-sponsor.com " target="_blank">
<span>Skin ADV</span>
</a>

instead of static link, but $params not work fine inside default.php page of the template.

I solved the problem in this way, insert this code in the default.php file:
<?php $module = JModuleHelper::getModule('mod_tuomodulo');
$moduleParams = new JRegistry();
$moduleParams->loadString($module->params);
$param = $moduleParams->get('tuoparametro', 'defaultValue');
?>

and after simply replace static link with <a id="skinlink" href="<?php echo $param; ?>" target="_blank">

Best regards,
Mickey
Last Edit: 5 years 1 month ago by mickeyjoomla.

Please Log in or Create an account to join the conversation.

Time to create page: 0.224 seconds

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2019 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.