Skip to content

Commit

Permalink
Fix https links
Browse files Browse the repository at this point in the history
  • Loading branch information
kksidd committed Jan 26, 2023
1 parent dec953e commit 92be118
Show file tree
Hide file tree
Showing 20 changed files with 38 additions and 38 deletions.
6 changes: 3 additions & 3 deletions src/contents/concepts/databound-forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ This is where the new 'databound form' feature comes in.<br/>
You see, this simply connects an existing front-end form with existing back-end editable regions (in other words - 'binds' a Couch form with Couch database i.e. editable regions. This, incidentally, also explains why we chose to call this feaure 'DataBound Forms').

So, when working with databound forms, we always start off with two concepts that are already well known to us - [**form**](../forms.html) and [**editable regions**](../editable-regions.html).<br/>
This is the form we'll be working on (kindly provided by [@cheesypoof](http://www.couchcms.com/forum/memberlist.php?mode=viewprofile&u=11919)) -
This is the form we'll be working on (kindly provided by [@cheesypoof](https://www.couchcms.com/forum/memberlist.php?mode=viewprofile&u=11919)) -

![](../../assets/img/contents/databound-forms-1.png)

Expand Down Expand Up @@ -517,7 +517,7 @@ The onus of securing up the form lies squarely on our shoulders.

Since the form is Couch managed, the default security offered by the CMS against serious attacks like XSS, CSRF, SQL injection etc. covers the form as well. Nothing needs to be done on this front. Preventing spam submissions will require some work though.

As discussed elsewhere on our forum (Fighting Spam - [http&#58;//www.couchcms.com/forum/viewtopic.php?f=8&t=7047](http://www.couchcms.com/forum/viewtopic.php?f=8&t=7047)), Captcha has long lost its efficacy in stopping spam. We have to look at other measures now. As discussed in the mentioned thread, there are two main sources of spam to contend with -
As discussed elsewhere on our forum (Fighting Spam - [http&#58;//www.couchcms.com/forum/viewtopic.php?f=8&t=7047](https://www.couchcms.com/forum/viewtopic.php?f=8&t=7047)), Captcha has long lost its efficacy in stopping spam. We have to look at other measures now. As discussed in the mentioned thread, there are two main sources of spam to contend with -

1. Spambots
2. Human
Expand Down Expand Up @@ -880,4 +880,4 @@ So, in a sense, Couch then would become a 'CMS maker' instead of just a CMS.

Keeping my fingers crossed :)

#### [**Download Source Code**](http://www.couchcms.com/docs/code/db_code.zip)
#### [**Download Source Code**](https://www.couchcms.com/docs/code/db_code.zip)
2 changes: 1 addition & 1 deletion src/contents/concepts/events-calendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The following example will make the relationship clear where we are displaying a
</cms:calendar>
```

<p class="notice">For all the examples of calendar on this page, we'll use _calendar.css_ to format the display. You can use the same CSS for your work or create your own CSS \[[Download](http://www.couchcms.com/docs/code/calendar.css)\].</p>
<p class="notice">For all the examples of calendar on this page, we'll use _calendar.css_ to format the display. You can use the same CSS for your work or create your own CSS \[[Download](https://www.couchcms.com/docs/code/calendar.css)\].</p>

Executing the code given above should result in the following -

Expand Down
2 changes: 1 addition & 1 deletion src/contents/concepts/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,4 +506,4 @@ The code above results in the following form -

![](../../assets/img/contents/forms-3.png)

The form displayed above uses form .css for display \[[Download it](http://www.couchcms.com/docs/code/form.css)\].
The form displayed above uses form .css for display \[[Download it](https://www.couchcms.com/docs/code/form.css)\].
2 changes: 1 addition & 1 deletion src/contents/concepts/nested-pages-aka-menu-maker.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ We could code up all the CSS required to shape up a good-looking dropdown menu o
For our example, we'll make use of a jQuery plugin - [Superfish](http://users.tpg.com.au/j_birch/plugins/superfish/) (http&#58;//users.tpg.com.au/j\_birch/plugins/superfish/).

Superfish is a set of CSS and JavaScript files that need to be included within our templates.<br/>
You can choose to either download the files from Superfish's site or [use the slightly modified version that we used for this example](http://www.couchcms.com/docs/code/superfish.zip) - \[[Download superfish.zip](http://www.couchcms.com/docs/code/superfish.zip)\].<br/>
You can choose to either download the files from Superfish's site or [use the slightly modified version that we used for this example](https://www.couchcms.com/docs/code/superfish.zip) - \[[Download superfish.zip](https://www.couchcms.com/docs/code/superfish.zip)\].<br/>
For our example we have placed the Superfish folder within the site's root. If you choose to place the files elsewhere make sure to adjust the paths in the code that follows.

Since the menu is likely to be shown on all the templates of our website, instead of placing the menu related code in each of our site's templates, we'll put it in a single snippet (name it 'menu.html') and then embed the snippet in our templates.
Expand Down
6 changes: 3 additions & 3 deletions src/contents/concepts/on-page-editing.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Apart form the obvious disconnect between the place where change is required and

An alternative to the mentioned dedicated admin-panel paradigm could be where the user simply clicks right on the place that requires changes (or on a nearby link), edits the content on the page itself and saves. This is 'On Page' editing. Hardly a new concept really, and with the obvious benefits discussed so far you might well ask why most CMSes (including Couch) do not use it?

The reason is that implementing on-page editing entails some very sticky technical issues that, almost always, out-weigh the expected advantages. This issue has been [discussed before on our forums](http://www.couchcms.com/forum/viewtopic.php?p=10146#p10146) as has been [done by others elsewhere](http://allinthehead.com/retro/357/the-lure-of-on-page-editing).
The reason is that implementing on-page editing entails some very sticky technical issues that, almost always, out-weigh the expected advantages. This issue has been [discussed before on our forums](https://www.couchcms.com/forum/viewtopic.php?p=10146#p10146) as has been [done by others elsewhere](http://allinthehead.com/retro/357/the-lure-of-on-page-editing).

Broadly speaking, the challenges are two-fold:

Expand Down Expand Up @@ -45,7 +45,7 @@ To demonstrate how onpage editing works in Couch, I've gone ahead and completely

![](../../assets/img/contents/on-page-editing-1.png)

You can [**download the ported version**](http://www.couchcms.com/docs/code/miniport.zip) and take it for a spin to see for yourself how everything works.
You can [**download the ported version**](https://www.couchcms.com/docs/code/miniport.zip) and take it for a spin to see for yourself how everything works.

For this particular tutorial, I'll take you step-by-step through the process of adding onpage editing to only the first section of the template.<br/>
Following is the section we'll be working with.
Expand Down Expand Up @@ -421,4 +421,4 @@ Please see the 'custom\_styles' parameter of [Editable region type: richtext](..

This tag disables any of the three above-mentioned tags that come after it in a template.

#### [**Download Sample Template**](http://www.couchcms.com/docs/code/miniport.zip)
#### [**Download Sample Template**](https://www.couchcms.com/docs/code/miniport.zip)
6 changes: 3 additions & 3 deletions src/contents/concepts/photo-gallery.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ You'll see Couch uploading and processing the images one after another.
<p class="error">
You might receive errors at this point stating something like 'Access not allowed' or 'Failed to open stream' etc. This can happen if your server is running under **SAFE MODE restrictions** (this mode has been deprecated but you still might run into some paranoid hosts insisting on using it).<br/>
To by-pass these restrictions you'll have to lend a helping hand to PHP by creating some folders and setting their permissions manually.<br/>
This thread of our forum discusses the procedure in detail - [**http&#58;//www.couchcms.com/forum/viewtopic.php?f=4&t=6912&p=8703**](http://www.couchcms.com/forum/viewtopic.php?f=4&t=6912&p=8703).
This thread of our forum discusses the procedure in detail - [**http&#58;//www.couchcms.com/forum/viewtopic.php?f=4&t=6912&p=8703**](https://www.couchcms.com/forum/viewtopic.php?f=4&t=6912&p=8703).
</p>

Once all the images are successfully uploaded, the admin-panel you were on will refresh and there you have it -
Expand Down Expand Up @@ -261,8 +261,8 @@ As can be seen, the 'exif' tag makes available all the Exif data within its open

To jump-start your development, here is a complete sample gallery template that can be used as a guide (or even 'as-is' if you are in a hurry - the markup is neutral enough to go with almost any design).

[**Download the template here**](http://www.couchcms.com/docs/code/gallery.zip).<br/>
[**Download the Slimbox version here**](http://www.couchcms.com/docs/code/gallery_using_slimbox.zip) (this is another version of the same template using JavaScript (Slimbox) to display the images).
[**Download the template here**](https://www.couchcms.com/docs/code/gallery.zip).<br/>
[**Download the Slimbox version here**](https://www.couchcms.com/docs/code/gallery_using_slimbox.zip) (this is another version of the same template using JavaScript (Slimbox) to display the images).

![](../../assets/img/contents/photo-gallery-6.jpg)

Expand Down
4 changes: 2 additions & 2 deletions src/contents/concepts/pretty-urls.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Not only do they appear friendlier to the visitors but they also offer immense b

<p class="notice">
For Pretty URLS to work in Couch, the Apache server it is hosted on must have the 'mod\_rewrite' module enabled.<br/>
To make sure this module is indeed available at your server, [please use this utility available at our forums](http://www.couchcms.com/forum/viewtopic.php?p=11832#p11832).
To make sure this module is indeed available at your server, [please use this utility available at our forums](https://www.couchcms.com/forum/viewtopic.php?p=11832#p11832).
</p>

### ENABLING PRETTY URLS
Expand Down Expand Up @@ -84,7 +84,7 @@ There are two problems very commonly encountered once prettyURLs are turned on:

#### 1. The pages throw 'Internal Server Error'.

Please make sure that your server has the required *mod\_rewrite* module enabled. As mentioned above, [you can use this utility for testing it](http://www.couchcms.com/forum/viewtopic.php?p=11832#p11832).
Please make sure that your server has the required *mod\_rewrite* module enabled. As mentioned above, [you can use this utility for testing it](https://www.couchcms.com/forum/viewtopic.php?p=11832#p11832).

#### 2. The pages do come up but all the CSS, JS or image links are broken.

Expand Down
2 changes: 1 addition & 1 deletion src/contents/concepts/repeatable-regions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Each portfolio item will have, of other things, a number of images associated wi
We know that we can define an editable region of type 'image' for each image however the problem here is that **we cannot know beforehand exactly how many images any portfolio item might have**.<br/>
Some item might require only a single image while another one might require 20 images (or even more).

The solution used up till now ([http&#58;//www.couchcms.com/forum/viewtopic.php?p=790\#p790](http://www.couchcms.com/forum/viewtopic.php?p=790#p790)) has been to work out the maximum number of images an item could possibly have and then define as many editable regions.<br/>
The solution used up till now ([http&#58;//www.couchcms.com/forum/viewtopic.php?p=790\#p790](https://www.couchcms.com/forum/viewtopic.php?p=790#p790)) has been to work out the maximum number of images an item could possibly have and then define as many editable regions.<br/>
This works but it is far from perfect -

* It clutters up the admin panel. If suppose we define twenty regions for the images - while editing, every single portfolio page will display all the twenty regions even if the page requires only one image.
Expand Down
20 changes: 10 additions & 10 deletions src/contents/concepts/shopping-cart-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ CouchCMS now ships with a shopping cart component designed to fill this niche -

True to CouchCMS's philosophy where it is your design that always takes center-stage (the CMS always getting 'retrofitted' within the existing HTML markup), CouchCart simply provides a set of tags that can be added to any HTML shopping cart design to convert it into a fully functional e-store in no time.

To demonstrate the use of these tags, we'll take a sample HTML template (kindly provided by [@cheesypoof](http://www.couchcms.com/forum/memberlist.php?mode=viewprofile&u=11919)) and convert it into a working e-commerce site.
To demonstrate the use of these tags, we'll take a sample HTML template (kindly provided by [@cheesypoof](https://www.couchcms.com/forum/memberlist.php?mode=viewprofile&u=11919)) and convert it into a working e-commerce site.

[**Download original HTML version**](http://www.couchcms.com/docs/code/simple.zip)<br/>
[**Download couchified version**](http://www.couchcms.com/docs/code/simple-couchified.zip)
[**Download original HTML version**](https://www.couchcms.com/docs/code/simple.zip)<br/>
[**Download couchified version**](https://www.couchcms.com/docs/code/simple-couchified.zip)

Before commencing, you might want to take a look at what our finished site would look like - [**here is a demo of it**](http://www.couchcms.com/demo/simple/).<br/>
Before commencing, you might want to take a look at what our finished site would look like - [**here is a demo of it**](https://www.couchcms.com/demo/simple/).<br/>
Please keep in mind that the design has been kept intentionally simple to focus only on the specific functionality added by the cart component to CouchCMS. Coupled with the existing features of Couch (e.g. Categories, menus, Related Pages etc.) a much more full-featured site can easily be created.

<p class="notice">CouchCart builds upon the existing features of Couch, as such a basic familiarity with Couch's core concepts is assumed for one to understand fully the discussion that follows. If you are new to Couch, please first take some time to explore how things work in Couch. Our [**step-by-step tutorial**](../../tutorials/portfolio-site.html) showing how to build a site from scratch using Couch is a good place to begin with.</p>
Expand Down Expand Up @@ -69,7 +69,7 @@ If the templates you use have other names, please modify the config file to indi
<p class="error">Don't forget that a Couch template that is present in a subfolder will have the name of the subfolder appended to it. If in any doubt, hover your mouse over the template's entry in Couch admin-panel sidebar to see the template's name.</p>

With the caveats out of the way, we can get down to work now.<br/>
The original HTML design is [attached in zip form here](http://www.couchcms.com/docs/code/simple.zip). Extract all files and place them in your test site's root (or in a sub-folder if you so desire - just make sure to remember that the template names will now have the subfolder appended to them).
The original HTML design is [attached in zip form here](https://www.couchcms.com/docs/code/simple.zip). Extract all files and place them in your test site's root (or in a sub-folder if you so desire - just make sure to remember that the template names will now have the subfolder appended to them).

## Creating the products

Expand All @@ -87,15 +87,15 @@ That is totally for you to decide and will really depend on the kind of products
**One editable region is mandatory**, though. It is the one that is used to input the product's price and **has to be named '*pp\_price*'**.<br/>
There are two other editable regions that, while not being mandatory (i.e. you can skip defining them if not required), carry special significance for CouchCart. The first amongst them is '*pp\_options*'. A region by this name is used with products that support 'variants' or 'options' e.g. colors, sizes etc. The other is '*pp\_requires\_shipping*'. This is used for physical products that need to be taken into account while calculating the shipping charges.

In the couchified version of this site ([attached below in zip form](http://www.couchcms.com/docs/code/simple-couchified.zip)), you'll find the index.php containing definitions for a set of editable regions. You can use that as a starting point for defining your own. For now let us just copy/paste the entire _&lt;cms:template&gt;_ block containing the full set of definitions. This what the edit-panel for the products looks like once the regions have been defined:
In the couchified version of this site ([attached below in zip form](https://www.couchcms.com/docs/code/simple-couchified.zip)), you'll find the index.php containing definitions for a set of editable regions. You can use that as a starting point for defining your own. For now let us just copy/paste the entire _&lt;cms:template&gt;_ block containing the full set of definitions. This what the edit-panel for the products looks like once the regions have been defined:

![](../../assets/img/contents/shopping-cart-1.png)

As you can see, there are a few groups of editable regions that we've not talked about yet. We'll come to those when we discuss 'Shipping' and 'Discounts' later but for now it is only the 'Variants' section that needs some explanation as we begin entering data for the products listed on the site.

## Product Options (or Variants)

Take a look at the products listed on the [demo site](http://www.couchcms.com/demo/simple/).<br/>
Take a look at the products listed on the [demo site](https://www.couchcms.com/demo/simple/).<br/>
There are only three of them but each is available in several variants or options e.g. The 'Paper Clips' come in three different sizes - Large, Medium and Small.

![](../../assets/img/contents/shopping-cart-2.png)
Expand Down Expand Up @@ -902,14 +902,14 @@ These basically are the core steps. Notice that every action requires two Ajax c
Rest of the functions in there simply serve auxiliary roles e.g. to show or hide the pop-up window etc.

The JS file is there for you to see and it shouldn't be difficult to modify it to suit your design's need.<br/>
As for the 'cart-modal.php', please take a look at it in the [couchified version](http://www.couchcms.com/docs/code/simple-couchified.zip) of our site and you'll find that it is almost an exact copy of 'cart.php' (with only the now not-required HTML elements like HEAD and BODY removed).
As for the 'cart-modal.php', please take a look at it in the [couchified version](https://www.couchcms.com/docs/code/simple-couchified.zip) of our site and you'll find that it is almost an exact copy of 'cart.php' (with only the now not-required HTML elements like HEAD and BODY removed).

## A little break...

So, there we have it. A fully functional shopping cart that required only minimal changes to our static HTML design.

[**Download original HTML version**](http://www.couchcms.com/docs/code/simple.zip)<br/>
[**Download couchified version**](http://www.couchcms.com/docs/code/simple-couchified.zip)
[**Download original HTML version**](https://www.couchcms.com/docs/code/simple.zip)<br/>
[**Download couchified version**](https://www.couchcms.com/docs/code/simple-couchified.zip)

Of course, there is more to an e-commerce site than just a shopping cart :)<br/>
No e-commerce site can do without functions like discounts, shipping charges and taxes.<br/>
Expand Down
2 changes: 1 addition & 1 deletion src/contents/concepts/shopping-cart-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ Coupons can be used to provide **cart level discount** and/or **free shipping**
This simple implementation of the coupon feature is an example of using Couch's cloned pages in tandem with CouchCart to add features not originally available.<br/>
The finished version of our sample site contains a template named '_coupons.php'_. It is a regular Couch template defining a set of editable regions. Execute it as super-admin to register it with Couch. In the admin-panel, we can now create coupons as cloned pages of this template.

<p class="notice">**NOTE:** The '_End Date_' field defined by this template makes use of the [**Date-Picker addon**](http://www.couchcms.com/forum/viewtopic.php?f=8&t=7126) for ease in inputting dates. If you don't wish to use the addon, you may safely remove the _editable name='datepicker'_ region from the template.</p>
<p class="notice">**NOTE:** The '_End Date_' field defined by this template makes use of the [**Date-Picker addon**](https://www.couchcms.com/forum/viewtopic.php?f=8&t=7126) for ease in inputting dates. If you don't wish to use the addon, you may safely remove the _editable name='datepicker'_ region from the template.</p>

### Creating coupons

Expand Down
Loading

0 comments on commit 92be118

Please sign in to comment.