![]() Let us make it appear as About Us.Ĭouch has a tag named template. The name of the template appears as about.php in the admin panel. To further refine the experience for your client, a few minor enhancements can be made. This is all that is needed to make a single page editable. Please consult the documentation for details. The editable tag, particularly the richtext type, has a plethora of options that you can set to tailor the created editable region to your client's need. Your changes should now appear on the website. Try editing the contents in them and revisit about.php after saving your changes. The right panel should now display the following -Īs you can see, Couch has now created the two editable regions for you. Go to the admin section and click on about.php in the list on the left. Refresh about.php by revisiting it in your browser. Similarly find the content in the sidebar. With about.php open in the text editor, find the HTML block representing the main content region -Īnd surround it with Couch's editable tags as follows - original content Looking at about.php in the browser, it appears that these two regions are the ones that the client will want to edit. With Couch now hooked into about.php, let us now decide which regions within the template should be editable by the client. These steps are all that you need to take in order to port any template to Couch. Notice how about.php now appears in the list of templates in the sidebar on the left and how the right panel informs you that about.php has no editable regions defined yet. Refresh the template within your browser by revisiting about.php and now visit the admin section once again. #About us sample page code#These two boilerplate lines of code are the only PHP that you should ever need to write to work with Couch. Thus if the new name of the folder was myadmin, the line to be pasted will become -Īs the final step, paste the following to about.php as the last line of the file (i.e. If you had chosen to rename the default admin folder from couch to something else, make sure the line pasted above also reflects the change. Open up about.php in your favorite text editor and paste the following line to the very top of the file. php is necessary before Couch can be retrofitted into a template. The same About Us page should appear as did when the file's extension was html. php so that about.html now becomes about.php. The About Us page will serve our purpose.īefore proceeding further, make sure that you are logged into Couch using the super-admin account that got created during installation.Īccess about.html in your browser by visiting Ĭhange the extension of the template from. For now let us begin with a simpler section that doesn't require cloning. We'll tackle the cloned pages in the next chapter. About-Us, Portfolio, Blog, Contact-Us and Home), the Portfolio and Blog sections will need the 'cloned pages' feature of Couch because they consist of multiple pages each cloned out of the same template. Of all the five sections that Aurelius has (i.e. Starting off simple - the About-Us page. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |