inherit
197814
0
Apr 14, 2016 22:43:41 GMT -8
mildred
-w-
91
August 2013
mildr34d
|
Post by mildred on Mar 27, 2014 12:12:09 GMT -8
I feel like I'm missing something simple, here, and I have a couple questions.
What does the "Board Header/Footer" section do, when adding it as a component in the Plugin builder? I would have thought that adding the name of the board you want these changes to be made in would make it so that information is added to the header and footer of that board, but as far as I can tell that's not the case. If it is, and I'm missing something here, how would you suggest I make a plugin only work in a certain board (selected by the plugin user in the user interface)? Should that be a basic if/else statement? Or am I making this way harder than it should be?
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 27, 2014 12:16:49 GMT -8
That's exactly how it works.
You can add content to the board header/footer component of the plugin and save it, then go to the plugin's manage page and edit its settings. The board(s) that the component is output in can be selected in the plugin's About tab.
|
|
inherit
197814
0
Apr 14, 2016 22:43:41 GMT -8
mildred
-w-
91
August 2013
mildr34d
|
Post by mildred on Mar 27, 2014 12:43:23 GMT -8
Ahhh, that's what I was missing. That makes much more sense! Thank you very much
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 27, 2014 13:09:12 GMT -8
also keep in mind that content added into board-header/footer sections is written to the page every pageload. if you have a javascript that you want to run, and a LOT of it, it woul dbe better to put a function in the JS section and put the call to it down in the h/f section. the JS sections get added to .js files that get cached on the viewers computer so they are retrieved faster each pageload. otherwise codes like chess or the monetary plugin would have additional overhead every time you went to a new page.
|
|
inherit
197814
0
Apr 14, 2016 22:43:41 GMT -8
mildred
-w-
91
August 2013
mildr34d
|
Post by mildred on Mar 27, 2014 15:51:56 GMT -8
Makes sense. Thanks for the advice. This specific use would just have a small html table added to the header, which would then get interacted with by the javascript which I'm storing in the javascript component.
|
|