Ok its been a few days I looked over the intro and I went through the Tutorial. I also found the #catalyst and #tt chans on "MAGnet". I have been thinking about my design and wondering how catalyst fits into it all.

I want to keep most of the site static (everything but archives) but I also need to generate the side bars for the other top links. Right now I have the side bars defined in a .tt lib that every page links to. So for example Interlinear used the lib interlinear.tt which has Introduction Matthew on and on in a manually defined AoH. This is fine for my little test however I want to have the side links generated from the file name.

Then I need to somehow figure out how to sort the links. First of all the first part of every file name is a book of the bible the books need to be in order and a non-link title needs to be on the bar for every book there is content in. Then the 2nd part of the file name is the chapter and verse so that needs to be sorted within the correct book. Then for the name of the link the . should be replaced with : and last of all this link needs to be indented. This will be slightly different for every section under the top bar. I guess catalyst does not need to know about all this going on. Somehow though I have got to cram all that logic into tt.

Or I should make a controller for catalyst with that logic built in then after letting you approve its bars (I want to have every change approved before it goes live anyway) catalyst could shove a config::general config file tt`s way and call ttree. That is if tt can use a config::general config file.

Now back to archives and my, about to be started, catalyst app. I am thinking of a DBIC DB like in the Tutorial using mysql (I used mysql in the tutorial because thats whats on my server) that has a table with "id(auto incrementing, Primary key) file (the actual file on the file system) date (the first part of the file name) name (the rest of the file name)". I will have part one of my app that, checks for new files in the file drop, converts any new ones to html, adds them to the table, gets verification for its changes, has login (though a client side Certificates would be REALLY cool), and last but not least moves everything from its testground server to the production server. The hard part about this is going to be getting the testground mysql table synced with the production one. Then on the production server would be a striped down version with no login that just displays the file list has searching (sorting would be awesome) and links to the files and possible links to downloadable pdf/odf/doc files.

Does this sound reasonable to you or have I made some bad design flaw that I should fix before making all this?

Thanks!


In reply to Re^8: tt2 with perl cgi and a csv file by Gokee2
in thread tt2 with perl cgi and a csv file by Gokee2

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.