We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Module: Documentation

Development and Programming

Brian Litzinger's avatar
Brian Litzinger
693 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

This is a simple module that does lets you display the contents of a directory inside the control panel, and link to it by creating a new control panel tab. A client of mine needed some documentation on how to use the site, and I wanted to make it easily accessible.

There is an accompanying extension that lets you set the directory in which your documentation resides. The module itself just displays the contents of said directory. For example, I set my directory to /path/to/my/site/documentation, and the module looks for an index.php file within that directory. From there you can do anything you want.

http://brianlitzinger.com/assets/downloads/ee/documentation_1.1.zip

       
smartpill's avatar
smartpill
456 posts
16 years ago
smartpill's avatar smartpill

Thanks! Certainly looks more professional than using the Bulletin Board.

I’ve installed it and tossed in a few different pages. I noticed “index.php” works, “index.html” doesn’t. Also, I guess it would be helpful to note that the CSS on the page is overridden by the control panel CSS. I haven’t tried linking to other pages within the directory. Does the content have to be contained within one page? Certainly doable, just want to know what the restrictions are. I’m assuming this would also use the scripts loaded in the control panel.

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

I defaulted it to index.php, so you can use the $site_url variable in your page, and so you can use any other PHP to include a navigation to link to other documentation pages. I’m only using one page, but I’m guessing that if you want multiple pages you’ll need to append the CP url (C=modules&M=Documentation) to each nav link, and possibly add your own parameter, e.g C=modules&M=Documentation&DocPage=foo. It’s just doing file include with the output buffer… so any PHP is acceptable within your index.php file.

And yes, it will inherit the CP styles. I had to create a small <style> block at the top of my page to tweak some things.

       
smartpill's avatar
smartpill
456 posts
16 years ago
smartpill's avatar smartpill

Good to know. I’ll just use jquery dynamic includes or tabs if need be. :coolsmile:

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

Bug fix. v1.1 is available for download at the URL in the original post.

       
NKT com's avatar
NKT com
124 posts
15 years ago
NKT com's avatar NKT com

Can I use an EE template for my documentation? I’d rather not FTP as i’ll be changing it a lot.

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
15 years ago
Brian Litzinger's avatar Brian Litzinger

No, it’s just setup to read an index.php file with HTML. $site_url is available in the index file so you can include images or documents with a proper link.

       
lebisol's avatar
lebisol
2,234 posts
15 years ago
lebisol's avatar lebisol
Can I use an EE template for my documentation? I’d rather not FTP as i’ll be changing it a lot.

You can always up a ‘read only’ weblog and calling it documentation…but then you would loose this module’s ease of use.

       
Fred Carlsen's avatar
Fred Carlsen
42 posts
15 years ago
Fred Carlsen's avatar Fred Carlsen

Is this module retired?

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
15 years ago
Brian Litzinger's avatar Brian Litzinger

It isn’t retired. I haven’t used it or heard much feedback on it in a long time and kind of forgot about it :D

I added the download link back to the original post.

       
smartpill's avatar
smartpill
456 posts
15 years ago
smartpill's avatar smartpill

I still use it. It was mentioned in the latest EE Podcast so you may have more interest. I’ve attached a screenshot of it in use. I’ve set it up with tabs from jQuery Tools to make it easier to navigate.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.