Welcome, Guest
Username Password: Remember me

Parameters
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Parameters

Parameters 18 May 2010 14:14 #2160

  • memo
  • OFFLINE
  • Senior Boarder
  • Hi there !!
  • Posts: 75
Module 6.1.1 only counts with the module parameters but it doest have the Advanced parameters option as the old module and I need the "Module Class Suffix in order to work with my site's theme...

ex. of a module working right on my site

parameter.JPG


Any way to change /add this?
Last Edit: 18 May 2010 14:16 by memo.

Re:Parameters 19 May 2010 09:32 #2167

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Thanks for the suggestion.

Version 6.1x changed a lot in the component. Now the elements that appear on the screen are mostly created by helper files so that a view of the component or the module calls to one central location for information and styling, rather than having the same code repeated over and over.

This is good news for the stability of the component, but also creates some complexities for things like module class suffiixes.

In order to implement this we will have to go through every helper and add the parameter of the suffix to each css tag.

This is something we can do but there isn't an "easy" fix right now.

One thing you can do would be to create your own JBS css file, and then add in the specific css items from your template. There is a place in the Template Display Settings of JBS that you set the path to your own css file - this will load after all others so it will take precedence.

I can't offer any support in how to incorporate your site template's css into this file but it would be a work around for now.

I've entered this as a feature request. Once 6.2 stable has come out we'll start working on 6.3 and try to implement this.

Tom
"You shall know the truth and the truth shall set you free." JC

Re:Parameters 19 May 2010 13:00 #2168

  • memo
  • OFFLINE
  • Senior Boarder
  • Hi there !!
  • Posts: 75
Im not ant expert creating css files from scratch so... I just want to make sure I understand...


Tom wrote:


In order to implement this we will have to go through every helper and add the parameter of the suffix to each css tag.

There is a tab on the component "edit CSS" is it possible to just add the line of the suffix somewhere in here?

One thing you can do would be to create your own JBS css file, and then add in the specific css items from your template. There is a place in the Template Display Settings of JBS that you set the path to your own css file - this will load after all others so it will take precedence.

would this file affect the study list layout or the module, or both?
what items from my template's css file would I need to copy into this file?

Forgive me for having so many questions on the same post

Thanks!
Last Edit: 19 May 2010 13:00 by memo.

Re:Parameters 19 May 2010 13:31 #2169

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
My suggestion would be to use FireBug (available in FireFox) and look at the css of your site in action. What elements are not working right in the biblestudy component? You should be able to see those elements and then copy them from your template's css into the biblestudy css.
"You shall know the truth and the truth shall set you free." JC

Re:Parameters 20 May 2010 12:43 #2175

  • memo
  • OFFLINE
  • Senior Boarder
  • Hi there !!
  • Posts: 75
Thanks for the advice of using firebug.

I copied the whole module_s5 part from template.css (which is the syntax the other modules are using) but nothing happened.
(this is what I thought I had to do...I guess i was wrong)

I've been trying but I didn't have nay luck at this. Do you know if someone has actually used this "path to style-sheet" and got something? could you provide with an example? (only if possible and is not to much of a hassle)

And I'm sorry about the misunderstanding, there is nothing wrong on with the bible study component, its working very good.

Re:Parameters 20 May 2010 14:44 #2179

  • memo
  • OFFLINE
  • Senior Boarder
  • Hi there !!
  • Posts: 75
After a couple of Hours of head ache I got my solution, I dont know this would work for everyone or if will affect the "path to style sheet" option on the module parameters..

I added this line in file mod_biblestudy.xml
<params group="advanced">		
<param name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="PARAMMODULECLASSSUFFIX" />
</params>
 


and I get this
image1.JPG



you can change the _s5 to whatever option you have on your template.


Hope it helps somebody else.
Last Edit: 20 May 2010 14:44 by memo.
  • Page:
  • 1
  • 2
Time to create page: 0.68 seconds