Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
Menu Links

bobh
Registered User
Quote
2022-11-02 09:33:57

I know I am new to this software but 20 years ago I once used Dreamweaver 4 & 8 when I had a PC.
So, I created a drop down menu of about 8 items on a page called gifts.html. I then created more copied pages based on gifts.html and renamed them. Then started to add hyperlinks to each item on gifts.html. Once I completed this I then realised that I had a page missing so I added another as a copy. All the links that I had made then disappeared! Should that have happened?


bobh
Registered User
Quote
2022-11-02 10:06:17

I have now re-entered the hyperlinks on two of my eight pages. Is there a method of copying the hyperlinks onto the other 6 pages without doing it manually? What would happen if I deleted the 6 pages and then copy one of the two already set up and named them accordingly.


micaelo
Registered User
Quote
2022-11-02 10:31:43

Why don't you put the menu on a masterpage? Then create your pages, name them, and set the links in the menu on the masterpage.
This way the menu would be on just one place and you would have to edit or make later changes only there.


bobh
Registered User
Quote
2022-11-02 12:10:48

Thank you for the reminder to use masterpage. Something I read but overlooked.
Just for clarification when I add new pages to the project that has a master page can the "Content Placeholder" go anywhere on the new page. Is it just a bit of code for RC to do its magic.


micaelo
Registered User
Quote
2022-11-02 12:35:25

The content placeholder goes on the masterpage, not on the individual pages. Once you have linked your individual pages to the masterpage, RC will merge the content of each individual page with the masterpage, putting the content of each individual page into the space reserved by the placeholder.

Here is an example of a website I recently made with RocketCake. The menu and the footer sit on a masterpage. All other content between menu and footer comes from the individual pages (and fills the space that the placeholder has reserved for it on the masterpage).
https://weingutschickjugenheim.d...


bobh
Registered User
Quote
2022-11-03 18:24:02

I have managed to get the masterpage idea to work now and while creating new pages from the masterpage.html I wondered if the following could be a possible enhancement.
On the Add Page pop up window you select the masterpage.html and it creates the new page masterpage1.html which can be renamed. If there was a new dropdown showing numbers say 1-20 then you could select a number and it would create a series of pages - masterpage1, masterpage2 etc etc. 1 would be the default number.


micaelo
Registered User
Quote
2022-11-03 19:14:35

I'm not sure I understand what you are after. In real life you would hardly need more than 1 masterpage in a project. The idea behind using masterpages is to outsource content from the individual pages so that you need to create this content only once. This typically applies to the menu, the footer, and maybe the pages' background color, watermark or whatever.

Edit: In real life you would hardly need more than 1 masterpage in a project.


bupp
Registered User
Quote
2022-11-04 11:23:03

in addition to micaelo:
bobh, please do not make a thinking error! You create a masterpage for all content that is the same on all pages.
In the pages themselves, this content is no longer used! This means that the way to copy the masterpage is the wrong one.

The single pages should only contain what should be displayed in the masterpage's placeholder.
Each individual page must be linked to the masterpage in the properties.

Translated with www.DeepL.com/Translator (free version)


bobh
Registered User
Quote
2022-11-04 11:48:43

Thanks to the last two posts I have a better understanding now how master pages are meant to work. Sorry for the confusion caused.


micaelo
Registered User
Quote
2022-11-04 12:25:30

@ bobh

I have made a quick masterpage demo. Download the rcd-file from here:
https://4hundert.de/public/maste...
When you open this in RocketCake you will find 1 masterpage containing the menu, the content placeholder, and the footer. Then there are 4 pages which don't have the menu and the footer. They don't need it because they are all linked to the masterpage and will get the menu and the footer from there. Click Preview to see in your browser how it looks like.


bobh
Registered User
Quote
2022-11-04 14:50:38

@ micaela

Thank you so much for the demo. This will save me so much work in the future.

I created my own project file demo to check I could do it!

https://www.bobhewitt.co.uk/Test/masterpageg4mhj.rcd


micaelo
Registered User
Quote
2022-11-04 16:07:41

Looks like you are on track now


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact