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.
More than 1 Text Block?
-
tremors834
- Newbie

- Posts: 5
- Joined: Sun Jan 07, 2018 8:43 pm
- Station model: Davis vantage Vue
- Software: Meteobridge
- Johnny
- 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?
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.
- Jachym
- 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?
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
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

- Posts: 5
- Joined: Sun Jan 07, 2018 8:43 pm
- Station model: Davis vantage Vue
- Software: Meteobridge
Re: More than 1 Text Block?
Looks to have worked like a charm, THANKS!!