More than 1 Text Block?

Post Reply
tremors834
Newbie
Newbie
Posts: 5
Joined: Sun Jan 07, 2018 8:43 pm
Station model: Davis vantage Vue
Software: Meteobridge

More than 1 Text Block?

Post by tremors834 » Mon Jan 08, 2018 8:39 pm

Is there a way to add more than 1 of the same block?
Specifically, I am trying to add a 2nd simple text block with different text from the 1st.

User avatar
Johnny
Developer
Developer
Posts: 313
Joined: Sat Aug 19, 2017 10:16 pm
Location: Watford, Hertfordshire, England
Station model: Davis Vantage Pro2 Plus
Software: Meteobridge
Contact:

Re: More than 1 Text Block?

Post by Johnny » Mon Jan 08, 2018 8:52 pm

Alas, no, you cannot repeat any block. You could try adding a second 'text' block folder and renaming 'textA' and rename the files within it in a similar fashion. I've done this before with another block and it worked. In most cases though this will not work and will cause your home page to go wrong.
Last edited by Johnny on Tue Jan 09, 2018 9:13 am, edited 1 time in total.
Image
Davis Vantage Pro2 Plus: http://www.watfordweather.uk

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: More than 1 Text Block?

Post by Jachym » Mon Jan 08, 2018 10:26 pm

Depends which one.
Sometimes renaming will do, in more complicated blocks you would also need to modify the Javascript otherwise they will both crash.
In case of Text block renaming should work.

Rename the folder to text2 and then also rename textBlock to text2Block and text2BlockConfig and inside the "config" change the namespace to text2

tremors834
Newbie
Newbie
Posts: 5
Joined: Sun Jan 07, 2018 8:43 pm
Station model: Davis vantage Vue
Software: Meteobridge

Re: More than 1 Text Block?

Post by tremors834 » Tue Jan 09, 2018 4:21 pm

Looks to have worked like a charm, THANKS!!

Post Reply