Tuesday, January 26, 2010

How to use tables to add captions to images in the WYSIWYG editor

If you used the WYSIWYG editor of the CMS to add an image, and want to give that image a caption (some text about the image), it can be a pain to get the text nicely aligned with the image. And using a bunch of spaces is NOT a good idea!

Anyway, here is a quick tutorial on how to do it nicely, by using tables. In this example, we're going to add two pictures next to each other, with their captions below each image in the center.

So, to achieve this, we must first draw a table that will contain the actual pictures, as well as the captions. Since we want our captions to align up nicely next to each other, we're going to have them in their own ROW. So, the images will have a row, and the captions will have a row. Also, each image and caption will have their own CELL - in HTML we may refer to the Cell as the TD or Table Data...

Anyway, lets get our table in first by clicking the Insert/Edit Table button:

 


 This will bring up the Table Properties screen:

 
 
 It might be intimidating at first, but if you look closely, you'll see that is not! Anyway, for this table we want 2 rows and 2 columns. Also, I'm gonna leave the border size on 1, but feel free to make the value 0 if you don't want your table to display its border. Next, I'm making the width 100 PERCENT (not pixels), and the rest I'm leaving as is. The end result for this screen will look like this:

 

 Go ahead and click the OK button at the bottom, which will draw the table in your body copy:



Now, add the images in the first row, and lets center them as well (see here: http://rgcms.blogspot.com/2009/02/adding-image.html if you don't know how to add images yet...):


 Next, simply click in the cells underneath each image, then type in the caption you want, and remember to center the text as well:



 That is how easy it is! As always, remember to save the page. Till next time!

Sunday, January 17, 2010

Creating a Nav link that links to a custom url (like your blog)

If you would like to create a link in your navigation menu that links to an external website, like your blog for example, just follow these simple steps:

Firstly, create a new page as you would normally do, which will bring you to this screen:


Right at the top of the fields, you will see one labeled "Links to url", with a checkbox next to it:



Go ahead and tick this checkbox, which will change the screen to look like this:


As you can see, it now asks for you to Type in the URL, select the parent page (though this is not applicable to all CMS's...), specify whether it is in the menu or not, and Page Name. So, go ahead and type in the FULL url into the "Type in URL" field (be sure to include the http:// part as well - easiest way to ensure you do this right, is to copy and paste the address in the browser open on the website you want to link to...), and remember to give it a Name, otherwise it will not show in the menu.

Next, click on Save, and voila! You now have a navigation link linking to an outside URL.

Sunday, January 10, 2010

Making a link to another page in your cms

Here is how to make a link to one of your CMS pages:

It works almost exactly like normal links. Firstly, select the text you want to make the link, and click the Insert/Edit Link button:


 This will open up the Link Dialog box:


Here, we want to change the "Protocol" option to :



 Next, open up your website in a new window or tab, and go to the page you would like to link to. Once the page is open in front of you, select the part in the address bar after your websites url (url would be something like http://www.rgtwebhosting.com/ or http://www.rgcms.co.za/).

You want to select the part AFTER that. Say for example the address is http://www.rgtwebhosting.com/HostingPackages.html , then you ONLY want to select the "HostingPackages.html" part (in other words, the part AFTER the last forward slash "/"), and copy that by pressing Ctrl+C on your keyboard:


Once that is copied, paste it (Ctrl+V) into the Link Dialog, in the URL text box:


Now click the Ok button, and you've just created a link to one of your CMS pages. Once again, remember to save the page once you're done editing the page!

UPDATE

We've been battling for months and months for our WYSIWYG editor creators to make a more detailed help section on how to customize it - well, we've finally got it right to include a new option in the drop down box mentioned above - in the latest version of the RGCMS (contact your web designer about getting the upgraded version), you can now select a "RGCMS Page" option from the Link Type list, and then you'll see a list of all the pages in the CMS, and you can simply select which one you would like to link to.