Can an object be designated as a "master" object so changes are global?
Autor: Adrian B.
Besucht 1449,
Followers 1,
Geteilt 0
Is there a way to make an object a "master" object?
For example, I have a text object that explains how to obtain help if stuck on a web cart purchase. That object is on every page that a web cart card is on.
But if I want to change the wording I have to change the wording on that object on every page. If it were a "master" object then I could make the change just once on the master object....
Thank you
Adrian
Gepostet am
Adrian, I do not know the layout of your website, but if the number of pages with webcart objects far outweighs the number of pages without you could build your standard pages without template and pages with a webcart object using the template. This way you could add your descriptive text object to the header where one change would change all pages on which the header was used.
We have found a solution for this:The "master object" is on a page without a template (properties of the page - graphics - create page without template + page width) and this page is displayed via iframe wherever it is needed.In this way, the content can be adjusted in one place for all display locations.
Restriction: The content must not be larger than the size specification for the iframe and there may be restrictions for responsive display.It can only be seen when the page with the master object is available on the server.Tested with text object, "dynamic content object" or html object.
An online customizable master object can also be created with dynamic content.
Example for iframe (for text-object or html-object):
<iframe width = "500 height =" 660 "src =" https: //www.domain.ext/inhalt-iframe.php "> </iframe>
In order to understand and master this functional concept, a few experiments should be made.
JJ.
Hello.Unfortunately, at the moment there is no such possibility.If This object is not located in the footer or header.
Aleksej and JJ, what if Adrian save the note as an image and saved it to the server with his website? He could then use an html object to display the image on any webpage. By changing the image and uploading same name and size image this would automatically change the note on any number of pages as well.
(just a thought)
I think that what is suggested by JJ is a good solution. If not JJ had suggested it - then I would
And the responsive could be solved by using some special code - it should test on the screen width. According to the width the size of the iframe could be specified, and also the content of the ifame could be set.
A piece of the code :
} else if (window.innerWidth > 720){ //narrow screen iFrame.style.height = '400px'; iFrame2.style.height = '400px';
The code used can be seen here : https://www.bramminginfo.dk/museet.html
Scroll to the bottom to the slideshow - and then try to change the screen size.
You can see the code used near the bottom when you use CTRL+U
I do not change the iFrame.src for each viewpoint, but this could have been done as well.
"He could then use an html object to display the image on any webpage. By changing the image and uploading same name and size image this would automatically change the note on any number of pages as well." - I think this is a good idea.
... so it becomes very easy to change the instructions in one go ...
... (the alternative is the IFRAME method which has already been anticipated)...
*
Autor
Thank you all for the ideas, Adrian