Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Clearer Separation of Blocks? Feature Requests
By jonas , Section Code []
Posted on Mon Feb 11, 2002 at 12:00:00 PM PST
Ever since Kuro5hin started out, I've been amazed by a lot of Scoop:s features. So much in fact that i recently started GNU-Friends, after having tweaked a lot of things to my liking. One of the things I noticed was that I thought the difference between different "Blocks" was a little, well, weird. How can this be improved?

Take for example the Blocks that form templates for boxes. I still don't know what makes a Block a template, even after having tweaked Scoop quite a bit. If I wanted to make a new template, I wouldn't know where to begin. From the looks of it, a box template is any Block with the word "box" in it. And likewise, a page template is any block with "template" in it. And on top of this, we have these "Special Pages" which, I think, are just a fancy name for a block that can be requested in a special way.

So the question is of course, what do other Scoop hackers think of this? I thought it was weird and it made the process of getting Scoop up and running the way I wanted it to run harder. Perhaps that was just me :-)

On the bright side, I really, really enjoy boxes and I hope we'll see more of peoples homehacked boxes soon!

< Insid3r.org - Your investment and finance discussion site | my install story >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· Kuro5hin
· GNU-Friend s
· More on Feature Requests
· Also by jonas

Story Views
  52 Scoop users have viewed this story.

Display: Sort:
Clearer Separation of Blocks? | 7 comments (7 topical, 0 hidden)
100% agree (3.00 / 1) (#1)
by hurstdog on Mon Feb 11, 2002 at 12:37:36 PM PST

Vars used to be the same way. Then we replaced the interface with Site Controls which is much nicer :) We've been planning a rewrite of the Blocks inteface as well, mimiking Site Controls. We've got it all planned out, just not written down anywhere. Also, it will allow easy theming, and block categories.

So, yes, we've thought about it, no, we haven't started yet, and if you want to do it, email scoop-dev and we'll tell you our ideas :)



-hurstdog


Plans for block management redesign (4.00 / 1) (#2)
by hillct on Sun Feb 17, 2002 at 09:22:28 AM PST

Esentially, block types are differentiated based on the suffix of their name. This is of sourse, a poor long term strategy. In order to facilitate the (as yet undocumented) themeing strategy, we will need more clearly defined block types. My proposal is for the aspects of block management that I need and would be inclined to write myself if I had time. I believe they can easily be integrated with the themeing strategy as it has been described on several ocasions (none in writing unless someone has the IRC logs from #scoop).

I propose two interface elements be added to the block admin tool and one field be added to the blocks table.

First, add a pulldown menu to select block type, when creating or editing blocks, as well as a textbox to allow users to create new block types. The content of the textbox should be taken in preference to the content of the pulldown menu wren writing block records to the DB (where if the textbox is empty, then the selection from the the pulldown menu is used). The pulldown menu should be populated from the new field of the boxes table, for eample: SELECT boxtype FROM boxes GROUP BY boxtype ORDER BY boxtype.

Block Type should not be optional. There should be a default box type defined in the DB field 'General' or something similar. The initial box types that come to mind are: template, boxtemplate, General, System. the 'System' boxtype is intended for boxes containing data called from within the admin tools (and as such sohuldn't be modified generally) in order to facilitate migration of HTML out from within the codebase into blocks. Then, block types could be used as the determining factor in generating menus of templates, for ecample in the admin/templates interface, and so fourth.

I further propose a file upload interface be included in the block admin interface to alloww for more convenient creation/modification of blocks. Also, a block download/save function would allow for easy saving of blocks for editing outside of scoop. This download function would simply output the content of the block, setting a content type of 'application/octet-stream' and a reasonable filename, cauing the user to be prompted to save the block as a file. Alternatively, if might be useful to extend 'boxtool' to allow editing of blocks.

The comment that special pages were simply blocks that are just putput using a different template threw me for a moment until I thought about it but it makes sense upon reflection. Realistically, there is no need for a seperate 'Special Pages' interface. It would be a simple matter to move the content of the special pages table into the blocks table with a block ID of 'special' and to migrate the 'Special Pages' OP code out of the codebase into a (tremendously trivial) box that just checks the block type of the argument to the OP and just displays it. This both simplifies the interface, brings to the database closer to first normal form, as well as serves to clean up the codebase somewhat.

This all integrates nicely with the plans for themes which as i recall, involves addding another field in the blocks table 'theme' and modification of the primary key making it a dual key made up of both 'blockid' and 'theme' where theme would have a default value for all exissting blocks, and users would be able to select from the available themes and if there is not a specific block for a particular theme a user has selected, then the block belonging to the default theme will be selected.

--CTH


--
ScoopHost.com - Premier Scoop Hosting and custom development from the lead developers.


Capital Gains Tax Advice Accountants (none / 0) (#3)
by AnnaSally on Sat Oct 27, 2018 at 04:46:41 AM PST

i really like this article please keep it up. Capital Gains Tax Advice Accountants



Essay (none / 0) (#4)
by GageAmber on Mon Nov 12, 2018 at 06:01:54 AM PST

I want many blogposts, That i very seriously enjoyed reading, I'd like to see info on it all, seeing that it is quite terrific., Take care available for making. Mortgage Marketing



sad (none / 0) (#5)
by christiandouglas on Tue Nov 20, 2018 at 02:35:03 AM PST

Rapidly this kind of fantastic web site will surely irrefutably often be well-known amongst many creating any website people, due to the fact thorough articles along with testimonies. job coaching



best kitchen renovation near me (none / 0) (#6)
by Pervez on Sun Apr 07, 2019 at 05:07:01 AM PST

We've been written content hereafter immediately after looking at the next few paragraphs. Want to acknowledge the many wide range of occasion expended to discuss this approach all-around! Right now, comply with below best kitchen renovation near me I truly do would like to think about far more enhancements right from you can.



Clearer Separation of Blocks? | 7 comments (7 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search