Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying concrete5 Beginner's Guide
  • Table Of Contents Toc
concrete5 Beginner's Guide

concrete5 Beginner's Guide

By : Remo Laubacher
4.1 (10)
close
close
concrete5 Beginner's Guide

concrete5 Beginner's Guide

4.1 (10)
By: Remo Laubacher

Overview of this book

Concrete5 is a content management system for PHP developers. It can be used to build a range of sites and is particularly optimized for creating marketing websites. The Concrete5 Beginner's Guide will show you how to get up and running with Concrete5 as quickly and painlessly as possible. Taking you from installation to deployment, this is the only reference that you will need for creating your new Concrete5 site. By using a number of real-world examples, as well as taking you through the set up of a sample site, this book will enable you to become familiar with all of Concrete5's features. Use add-ons, themes, and blocks to give your site the look-and-feel that you desire. Simple PHP will enable you to customize the layout and navigation options of your site, as well extend the dashboard giving you a fully functional, professional site in no time.
Table of Contents (19 chapters)
close
close
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
2
Index

Time for action – adding a second controller method


Carry out the following steps:

  1. Open the controller again packages/c5book/controllers/dashboard/reports/broken_links.php and put the preceding code in it. It's pretty much the same, except there's a second method in it to display all links.

  2. The output, our single page, needs to handle these two modes as well. We're going to display a different text and a different link to switch between the two modes. We're using the variable mode, which is set to a different value by the two controller methods. Open packages/c5book/single_pages/dashboard/reports/broken_links.php and alter the content to match the following:

    <?php  
    defined('C5_EXECUTE') or die(_("Access Denied."));
    ?>
    <h1><span><?php echo t('Broken Links')?></span></h1>
    <div class="ccm-dashboard-inner">
    
     <?php if ($mode == 'brokenLinks'): ?>
     <p><?php echo t('The following links didn\'t return 200 or 302 OK / Found. You should check...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
concrete5 Beginner's Guide
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon