A Way to Toggle Two Versions of a...

User 2689467 Photo


Registered User
4 posts

I have a web site built with VSD. It has a page that has 14 other pages linking to it. Let's call that page A. Periodically, I want to temporarily replace page A with page B, and then, at some later time, go back to page A. In other words, I want to toggle between the two pages every so often. I do not want to update all 14 links every time I do this, and I don't want to have to manually recreate the page on every flip. Can that be done?

I wanted to just rename file A as file X, and then rename file B as file A. Later, I would rename file B as file Y, and move file X back to file A. But VSD thwarts me on every turn. No matter which file I rename, VSD picks up the old file, apparently retrieving it from the .vnu file rather than any of the directories it maintains. I think I could go to the server and rename the files, but I'm afraid the next time I open VSD it will have reverted back to my old setup.

Any hope for me?

Bob Cuschleg
User 187934 Photo


Senior Advisor
20,190 posts
Online Now

This should work.:)
http://progrower.coffeecup.com/iframeswitch.html
Another way is to rename the pages
A rename to page A_holding
now name page B_holding to A.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2689467 Photo


Registered User
4 posts

Eric,

I have been trying to solve this problem by renaming files, but the only html files I can find on my computer are in "Documents and Settings" or a sub-directory of the directory containing the .vnu file. These appear to me to be output files from VSD. They are written only when you save, preview, or publish.

VSD seems to get its files from within the .vnu file. If I rename a file in VSD to "page_A_holding", all 14 links in the other pages are changed to point to "page_A_holding". I need them to point to the new "page_A", which you called "page_B_holding".

What am I missing?

Bob
User 2147626 Photo


Ambassador
2,958 posts

Simply create both pages in your VSD site that you want to flip back and forth. When you 'rename' the pages you do this within VSD. You don't have to search for or find any HTML files. Just go to the top menu and select 'Show Page' to display the page, then press the 'Page' button to display the properties. Here you can easily change the page name. Re-save then publish your site. :cool:
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 187934 Photo


Senior Advisor
20,190 posts
Online Now

Omgc wrote:
Eric,

I have been trying to solve this problem by renaming files, but the only html files I can find on my computer are in "Documents and Settings" or a sub-directory of the directory containing the .vnu file. These appear to me to be output files from VSD. They are written only when you save, preview, or publish.

VSD seems to get its files from within the .vnu file. If I rename a file in VSD to "page_A_holding", all 14 links in the other pages are changed to point to "page_A_holding". I need them to point to the new "page_A", which you called "page_B_holding".

What am I missing?

Bob

Don't alter any html files outside VSD. This is all done within VSD itself.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2689467 Photo


Registered User
4 posts

Eric,

I think you're missing my point.

1) I have 14 pages with links pointing to Page_A. I want them to point to Page_B, which is currently called Page_B_holding.

2) Within VSD, I rename Page_A to Page_A_holding, and then rename Page_B_holding to Page_B.

3) Now all 14 pages have links pointing to Page_A_holding. Not what I want. I want them to point to Page_B.

What I'm trying to say is that when I rename a page within VSD, all links pointing to that page are reset to the new page name. The only way I can see to get them to point to my alternate page is to manually reset all 14 links, which I am trying to avoid.

Bob
User 187934 Photo


Senior Advisor
20,190 posts
Online Now

The iframe switch would be the proper approach then.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 479750 Photo


Registered User
1 post

I am using images of text for my menu options (home, about...) I have 2 identical images for each menu option except that the text color is different. I named them aboutNORML.png and aboutHOVR.png etc. The problem is that I can't figure out how to get the mouse over image to be shown. Any ideas?

PS. This is done and works in the purchased web template called "My Magic Place".... I would prefer not to have to edit the HTML after I save my project.

Thanks,

Henri
User 104702 Photo


Registered User
293 posts

Hi Henri,

First, I assume the 2 images have exactly the same size. If so, place the 'front' image somewhere on your page with the 'add an image' tool. Then choose the 'mouseover' tool while this front image is active (it has blue borders). There choose 'create mouseover'. Now you're looking at the mouseover image. Then choose the 'fill' tool and fill the mouseover image with the 'back' image. Voila.

By the way, I don't know why you want to make/use PNG files for this (probably in a graphic editor). You could just as well use the 'shapes' tool to create the 'front' image and write a text inside it. Then create a mouseover image and change it's colors. It's as easy as that. The only reason for using 2 PNG files is that, except for the dimensions, the 2 images are completely different. I use this for instance to have a negative mouseover, and I create the negative image in a graphic editor (VSD can't do this). But most of the time I create the 'front' image in VSD first, load it into a graphic editor, make it negative and then do what I described above.

Success, John

John van Hulst

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.